@Override
   void processModelNode(OperationContext context, ModelNode counter,
         CounterConfiguration.Builder builder) throws OperationFailedException {
      super.processModelNode(context, counter, builder);

      ModelNode upperBoundModel = counter.get(ModelKeys.UPPER_BOUND);
      ModelNode lowerBoundModel = counter.get(ModelKeys.LOWER_BOUND);
      if (lowerBoundModel.isDefined()) {
          Long lowerBound = StrongCounterResource.LOWER_BOUND.resolveModelAttribute(context, counter).asLong();
          builder.lowerBound(lowerBound);
      }
      if (upperBoundModel.isDefined()) {
          Long upperBound = StrongCounterResource.UPPER_BOUND.resolveModelAttribute(context, counter).asLong();
          builder.upperBound(upperBound);
      }
   }
@ Override void processModelNode ( OperationContext context , ModelNode counter , CounterConfiguration . Builder builder ) throws OperationFailedException { super . processModelNode ( context , counter , builder ) ; ModelNode upperBoundModel = counter . get ( ModelKeys . UPPER_BOUND ) ; ModelNode lowerBoundModel = counter . get ( ModelKeys . LOWER_BOUND ) ; if ( lowerBoundModel . isDefined ( ) ) { Long lowerBound = StrongCounterResource . LOWER_BOUND . resolveModelAttribute ( context , counter ) . asLong ( ) ; builder . lowerBound ( lowerBound ) ; } if ( upperBoundModel . isDefined ( ) ) { Long upperBound = StrongCounterResource . UPPER_BOUND . resolveModelAttribute ( context , counter ) . asLong ( ) ; builder . upperBound ( upperBound ) ; } }
Implementation of abstract method processModelNode