Tabnine Logo
CompilationMXBeanAttributeHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
CompilationMXBeanAttributeHandler
in
org.jboss.as.platform.mbean

Best Java code snippets using org.jboss.as.platform.mbean.CompilationMXBeanAttributeHandler (Showing top 10 results out of 315)

origin: org.wildfly.core/wildfly-platform-mbean

  @Override
  protected void executeWriteAttribute(OperationContext context, ModelNode operation) throws OperationFailedException {

    // Shouldn't happen; the global handler should reject
    throw unknownAttribute(operation);

  }
}
origin: org.jboss.as/jboss-as-platform-mbean

@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()));
  }
}
origin: org.jboss.as/jboss-as-platform-mbean

final ModelNode store = result.get(attribute);
try {
  CompilationMXBeanAttributeHandler.storeResult(attribute, store);
} catch (UnsupportedOperationException ignored) {
final ModelNode store = result.get(attribute);
try {
  CompilationMXBeanAttributeHandler.storeResult(attribute, store);
} catch (UnsupportedOperationException ignored) {
CompilationMXBeanAttributeHandler.storeResult(PlatformMBeanConstants.OBJECT_NAME, store);
origin: org.jboss.as/jboss-as-platform-mbean

CompilationMXBeanAttributeHandler.INSTANCE.register(compilation);
origin: org.wildfly.core/wildfly-platform-mbean

@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());
  }
}
origin: org.wildfly.core/wildfly-platform-mbean

  @Override
  public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {

    final ModelNode result = context.getResult();

    for (String attribute : CompilationResourceDefinition.COMPILATION_READ_ATTRIBUTES) {
      final ModelNode store = result.get(attribute);
      try {
        CompilationMXBeanAttributeHandler.storeResult(attribute, store);
      } catch (UnsupportedOperationException ignored) {
        // just leave it undefined
      }
    }

    for (String attribute : CompilationResourceDefinition.COMPILATION_METRICS) {
      final ModelNode store = result.get(attribute);
      try {
        CompilationMXBeanAttributeHandler.storeResult(attribute, store);
      } catch (UnsupportedOperationException ignored) {
        // just leave it undefined
      }
    }

    final ModelNode store = result.get(PlatformMBeanConstants.OBJECT_NAME.getName());
    CompilationMXBeanAttributeHandler.storeResult(PlatformMBeanConstants.OBJECT_NAME.getName(), store);
  }
}
origin: wildfly/wildfly-core

@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());
  }
}
origin: org.jboss.as/jboss-as-platform-mbean

@Override
protected void executeWriteAttribute(OperationContext context, ModelNode operation) throws OperationFailedException {
  // Shouldn't happen; the global handler should reject
  throw unknownAttribute(operation);
}
origin: wildfly/wildfly-core

  @Override
  public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {

    final ModelNode result = context.getResult();

    for (String attribute : CompilationResourceDefinition.COMPILATION_READ_ATTRIBUTES) {
      final ModelNode store = result.get(attribute);
      try {
        CompilationMXBeanAttributeHandler.storeResult(attribute, store);
      } catch (UnsupportedOperationException ignored) {
        // just leave it undefined
      }
    }

    for (String attribute : CompilationResourceDefinition.COMPILATION_METRICS) {
      final ModelNode store = result.get(attribute);
      try {
        CompilationMXBeanAttributeHandler.storeResult(attribute, store);
      } catch (UnsupportedOperationException ignored) {
        // just leave it undefined
      }
    }

    final ModelNode store = result.get(PlatformMBeanConstants.OBJECT_NAME.getName());
    CompilationMXBeanAttributeHandler.storeResult(PlatformMBeanConstants.OBJECT_NAME.getName(), store);
  }
}
origin: wildfly/wildfly-core

  @Override
  protected void executeWriteAttribute(OperationContext context, ModelNode operation) throws OperationFailedException {

    // Shouldn't happen; the global handler should reject
    throw unknownAttribute(operation);

  }
}
org.jboss.as.platform.mbeanCompilationMXBeanAttributeHandler

Javadoc

Handles read-attribute and write-attribute for the resource representing java.lang.management.CompilationMXBean.

Most used methods

  • storeResult
  • unknownAttribute
  • register

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • setContentView (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Menu (java.awt)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Collectors (java.util.stream)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now