@Override protected void executeWriteAttribute(OperationContext context, ModelNode operation) throws OperationFailedException { // Shouldn't happen; the global handler should reject throw unknownAttribute(operation); } }
@Override protected void executeWriteAttribute(OperationContext context, ModelNode operation) throws OperationFailedException { // Shouldn't happen; the global handler should reject throw unknownAttribute(operation); }
@Override protected void executeWriteAttribute(OperationContext context, ModelNode operation) throws OperationFailedException { // Shouldn't happen; the global handler should reject throw unknownAttribute(operation); } }
@Override protected void executeReadAttribute(OperationContext context, ModelNode operation) throws OperationFailedException { final String name = operation.require(ModelDescriptionConstants.NAME).asString(); try { if ((PlatformMBeanUtil.JVM_MAJOR_VERSION > 6 && PlatformMBeanConstants.OBJECT_NAME.equals(name)) || PlatformMBeanConstants.COMPILATION_READ_ATTRIBUTES.contains(name) || PlatformMBeanConstants.COMPILATION_METRICS.contains(name)) { storeResult(name, context.getResult()); } else { // Shouldn't happen; the global handler should reject throw unknownAttribute(operation); } } catch (UnsupportedOperationException e) { throw new OperationFailedException(new ModelNode().set(e.toString())); } }
@Override protected void executeReadAttribute(OperationContext context, ModelNode operation) throws OperationFailedException { final String name = operation.require(ModelDescriptionConstants.NAME).asString(); try { if ((PlatformMBeanConstants.OBJECT_NAME.getName().equals(name)) || COMPILATION_READ_ATTRIBUTES.contains(name) || COMPILATION_METRICS.contains(name)) { storeResult(name, context.getResult()); } else { // Shouldn't happen; the global handler should reject throw unknownAttribute(operation); } } catch (UnsupportedOperationException e) { throw new OperationFailedException(e.toString()); } }
@Override protected void executeReadAttribute(OperationContext context, ModelNode operation) throws OperationFailedException { final String name = operation.require(ModelDescriptionConstants.NAME).asString(); try { if ((PlatformMBeanConstants.OBJECT_NAME.getName().equals(name)) || COMPILATION_READ_ATTRIBUTES.contains(name) || COMPILATION_METRICS.contains(name)) { storeResult(name, context.getResult()); } else { // Shouldn't happen; the global handler should reject throw unknownAttribute(operation); } } catch (UnsupportedOperationException e) { throw new OperationFailedException(e.toString()); } }