Tabnine Logo
ManageableComponentMetadata.getJmxObjectName
Code IndexAdd Tabnine to your IDE (free)

How to use
getJmxObjectName
method
in
org.infinispan.factories.components.ManageableComponentMetadata

Best Java code snippets using org.infinispan.factories.components.ManageableComponentMetadata.getJmxObjectName (Showing top 4 results out of 315)

origin: org.infinispan/infinispan-cli-interpreter

private void printComponentStats(PrintWriter pw, Cache<?, ?> cache, Object component) {
 if (component == null) {
   return;
 }
 ComponentMetadataRepo mr = cache.getAdvancedCache().getComponentRegistry().getComponentMetadataRepo();
 ComponentMetadata cm = mr.findComponentMetadata(component.getClass().getName());
 if (cm == null || !(cm instanceof ManageableComponentMetadata)) {
   return;
 }
 ManageableComponentMetadata mcm = cm.toManageableComponentMetadata();
 pw.printf("%s: {\n", mcm.getJmxObjectName());
 List<JmxAttributeMetadata> attrs = new ArrayList<>(mcm.getAttributeMetadata());
 Collections.sort(attrs, Comparator.comparing(JmxAttributeMetadata::getName));
 for (JmxAttributeMetadata s : attrs) {
   pw.printf("  %s: %s\n", s.getName(), getAttributeValue(component, s));
 }
 pw.println("}");
}
origin: org.infinispan/infinispan-cli-server

private void printComponentStats(PrintWriter pw, Cache<?, ?> cache, Object component) {
 if (component == null) {
   return;
 }
 ComponentMetadataRepo mr = cache.getAdvancedCache().getComponentRegistry().getComponentMetadataRepo();
 ComponentMetadata cm = mr.findComponentMetadata(component.getClass().getName());
 if (cm == null || !(cm instanceof ManageableComponentMetadata)) {
   return;
 }
 ManageableComponentMetadata mcm = cm.toManageableComponentMetadata();
 pw.printf("%s: {\n", mcm.getJmxObjectName());
 for (JmxAttributeMetadata s : mcm.getAttributeMetadata()) {
   pw.printf("  %s: %s\n", s.getName(), getAttributeValue(component, s));
 }
 pw.println("}");
}
origin: org.infinispan/infinispan-embedded-query

  ResourceDMBean mbean = new ResourceDMBean(massIndexer, massIndexerCompMetadata);
  ObjectName massIndexerObjName = new ObjectName(jmxDomain + ":"
     + queryGroupName + ",component=" + massIndexerCompMetadata.getJmxObjectName());
  JmxUtil.registerMBean(mbean, massIndexerObjName, mbeanServer);
} catch (Exception e) {
origin: org.infinispan/infinispan-query

  ResourceDMBean mbean = new ResourceDMBean(massIndexer, massIndexerCompMetadata);
  ObjectName massIndexerObjName = new ObjectName(jmxDomain + ":"
     + queryGroupName + ",component=" + massIndexerCompMetadata.getJmxObjectName());
  JmxUtil.registerMBean(mbean, massIndexerObjName, mbeanServer);
} catch (Exception e) {
org.infinispan.factories.componentsManageableComponentMetadatagetJmxObjectName

Popular methods of ManageableComponentMetadata

  • getAttributeMetadata

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • Kernel (java.awt.image)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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