public class Jmx2CarbonBridge
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
protected class |
Jmx2CarbonBridge.Worker |
| Modifier and Type | Field and Description |
|---|---|
protected static javax.management.MBeanServer |
SERVER |
| Constructor and Description |
|---|
Jmx2CarbonBridge(CarbonWriter carbonWriter) |
Jmx2CarbonBridge(JmxRegistry jmxRegistry,
CarbonWriter carbonWriter) |
Jmx2CarbonBridge(javax.management.MBeanServer server,
CarbonWriter carbonWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected AttributeDefinition |
findDefinitionFor(javax.management.ObjectName objectName,
javax.management.MBeanAttributeInfo info) |
protected AttributeDefinition |
findDefinitionFor(javax.management.ObjectName objectName,
javax.management.MBeanAttributeInfo info,
java.lang.String name,
javax.management.openmbean.CompositeType compositeType) |
protected AttributeDefinition |
findDefinitionFor(javax.management.ObjectName objectName,
javax.management.MBeanAttributeInfo info,
java.lang.String name,
javax.management.openmbean.OpenType<?> openType) |
protected AttributeDefinition |
findDefinitionFor(javax.management.ObjectName objectName,
java.lang.String name,
javax.management.openmbean.SimpleType<?> simpleType) |
CarbonWriter |
getCarbonWriter() |
java.lang.ClassLoader |
getClassLoader() |
Configuration |
getConfiguration() |
protected static java.lang.String |
getLocalhost() |
java.lang.String |
getPathPrefix() |
void |
init() |
void |
setClassLoader(java.lang.ClassLoader classLoader) |
void |
setConfiguration(Configuration configuration) |
void |
setPathPrefix(java.lang.String pathPrefix) |
protected void |
startThreads(Configuration configuration,
java.util.Map<Rule,java.util.Set<AttributeDefinitions>> ruleToAttributeNames) |
protected void |
stopThread(java.lang.Thread thread) |
protected void |
stopThreads() |
protected java.lang.Class<?> |
tryLoadClassBy(java.lang.String className) |
protected java.lang.Class<?> |
tryLoadClassFor(javax.management.openmbean.SimpleType<?> simpleType) |
void |
updateMBeanIndex() |
public Jmx2CarbonBridge(@Nonnull
CarbonWriter carbonWriter)
public Jmx2CarbonBridge(@Nonnull
JmxRegistry jmxRegistry,
@Nonnull
CarbonWriter carbonWriter)
public Jmx2CarbonBridge(@Nonnull
javax.management.MBeanServer server,
@Nonnull
CarbonWriter carbonWriter)
@Nonnull protected static java.lang.String getLocalhost()
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
public java.lang.String getPathPrefix()
public void setPathPrefix(java.lang.String pathPrefix)
@Nonnull public CarbonWriter getCarbonWriter()
@PostConstruct
public void init()
throws java.lang.Exception
java.lang.Exceptionpublic void updateMBeanIndex()
throws java.lang.Exception
java.lang.Exception@Nullable protected AttributeDefinition findDefinitionFor(@Nonnull javax.management.ObjectName objectName, @Nonnull javax.management.MBeanAttributeInfo info)
@Nullable protected AttributeDefinition findDefinitionFor(@Nonnull javax.management.ObjectName objectName, @Nonnull javax.management.MBeanAttributeInfo info, @Nonnull java.lang.String name, @Nullable javax.management.openmbean.OpenType<?> openType)
@Nullable protected AttributeDefinition findDefinitionFor(@Nonnull javax.management.ObjectName objectName, @Nonnull java.lang.String name, @Nonnull javax.management.openmbean.SimpleType<?> simpleType)
@Nullable protected AttributeDefinition findDefinitionFor(@Nonnull javax.management.ObjectName objectName, @Nonnull javax.management.MBeanAttributeInfo info, @Nonnull java.lang.String name, @Nonnull javax.management.openmbean.CompositeType compositeType)
@Nullable
protected java.lang.Class<?> tryLoadClassFor(@Nullable
javax.management.openmbean.SimpleType<?> simpleType)
@Nullable
protected java.lang.Class<?> tryLoadClassBy(@Nullable
java.lang.String className)
protected void startThreads(@Nonnull
Configuration configuration,
@Nonnull
java.util.Map<Rule,java.util.Set<AttributeDefinitions>> ruleToAttributeNames)
protected void stopThreads()
protected void stopThread(@Nullable
java.lang.Thread thread)
@PreDestroy
public void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.ExceptionCopyright © 2016 echocat. All Rights Reserved.