|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.management.DefaultInstrumentationAgent
public class DefaultInstrumentationAgent
Default implementation of the Camel JMX service agent
Field Summary | |
---|---|
static int |
DEFAULT_CONNECTION_PORT
|
static String |
DEFAULT_DOMAIN
|
static String |
DEFAULT_HOST
|
static int |
DEFAULT_REGISTRY_PORT
|
static String |
DEFAULT_SERVICE_URL_PATH
|
Constructor Summary | |
---|---|
DefaultInstrumentationAgent()
|
Method Summary | |
---|---|
protected void |
createJmxConnector(String host)
|
protected void |
createMBeanServer()
|
protected void |
doStart()
|
protected void |
doStop()
|
protected void |
finalizeSettings()
|
protected MBeanServer |
findOrCreateMBeanServer()
|
String |
getMBeanObjectDomainName()
Get domain name for Camel MBeans. |
MBeanServer |
getMBeanServer()
Get the MBeanServer which hosts managed objects. |
void |
register(Object obj,
ObjectName name)
Registers object with management infrastructure with a specific name. |
void |
register(Object obj,
ObjectName name,
boolean forceRegistration)
Registers object with management infrastructure with a specific name. |
void |
setConnectorPort(Integer value)
|
void |
setCreateConnector(Boolean flag)
|
void |
setMBeanObjectDomainName(String value)
|
void |
setMBeanServerDefaultDomain(String value)
|
void |
setRegistryPort(Integer value)
|
void |
setServer(MBeanServer value)
|
void |
setServiceUrlPath(String value)
|
void |
setUsePlatformMBeanServer(Boolean flag)
|
void |
unregister(ObjectName name)
Unregisters object based upon registered name |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
---|
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.camel.Service |
---|
start, stop |
Field Detail |
---|
public static final String DEFAULT_DOMAIN
public static final String DEFAULT_HOST
public static final int DEFAULT_REGISTRY_PORT
public static final int DEFAULT_CONNECTION_PORT
public static final String DEFAULT_SERVICE_URL_PATH
Constructor Detail |
---|
public DefaultInstrumentationAgent()
Method Detail |
---|
protected void finalizeSettings()
public void setRegistryPort(Integer value)
public void setConnectorPort(Integer value)
public void setMBeanServerDefaultDomain(String value)
public void setMBeanObjectDomainName(String value)
public void setServiceUrlPath(String value)
public void setCreateConnector(Boolean flag)
public void setUsePlatformMBeanServer(Boolean flag)
public MBeanServer getMBeanServer()
InstrumentationAgent
getMBeanServer
in interface InstrumentationAgent
public void register(Object obj, ObjectName name) throws JMException
InstrumentationAgent
register
in interface InstrumentationAgent
obj
- the object to registername
- the name
JMException
- is thrown if the registration failedpublic void register(Object obj, ObjectName name, boolean forceRegistration) throws JMException
InstrumentationAgent
register
in interface InstrumentationAgent
obj
- the object to registername
- the nameforceRegistration
- if set to true, then object will be registered despite
existing object is already registered with the name.
JMException
- is thrown if the registration failedpublic void unregister(ObjectName name) throws JMException
InstrumentationAgent
unregister
in interface InstrumentationAgent
name
- the name
JMException
- is thrown if the unregistration failedprotected void doStart() throws Exception
doStart
in class ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class ServiceSupport
Exception
protected void createMBeanServer()
protected MBeanServer findOrCreateMBeanServer()
protected void createJmxConnector(String host) throws IOException
IOException
public String getMBeanObjectDomainName()
InstrumentationAgent
getMBeanObjectDomainName
in interface InstrumentationAgent
public void setServer(MBeanServer value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |