public class JmxRemoteComponent extends MgmtComponentImpl
ManagementComponent
interface for JSR160.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFG_KEY_JMX_SERVICE_URL_OBJECT_NAME
Bootstrap property key that defines the optional object name
If "jmxserviceurl.objectname" is not defined then the default object name will be used, otherwise the value of the property key will be used as
the objectname, so make it conforms to the standard
ObjectName specification. |
static java.lang.String |
DEFAULT_JMX_OBJECT_NAME
The default object name "com.adaptris:type=JmxConnectorServer"
|
static java.lang.String |
JMX_JMXMP_SASL_PASSWORD
Bootstrap property that controls the password required for connecting to this
JMXConnectorServer if the JMXServiceURL indicates the jmxmp protocol. |
static java.lang.String |
JMX_JMXMP_SASL_USERNAME
Bootstrap property that controls the username required for connecting to this
JMXConnectorServer if the JMXServiceURL indicates the jmxmp protocol. |
static java.lang.String |
JMX_SERVICE_URL_ENV_PREFIX
Bootstrap property key prefix that controls what environment is passed through to the JMXConnectorServer.
|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
JmxRemoteComponent() |
Modifier and Type | Method and Description |
---|---|
protected com.adaptris.core.management.jmx.JmxComponentImpl.JmxComponent |
createJmxWrapper(java.util.Properties config)
Create a JMX wrapper.
|
void |
destroy()
Destroy the management component making it require re-initialisation.
|
void |
init(java.util.Properties p)
Initialise the management component.
|
boolean |
isStarted() |
void |
start()
Start the management component.
|
void |
stop()
Stop the management component.
|
setClassLoader
public static final java.lang.String CFG_KEY_JMX_SERVICE_URL_OBJECT_NAME
If "jmxserviceurl.objectname" is not defined then the default object name will be used, otherwise the value of the property key will be used as
the objectname, so make it conforms to the standard ObjectName
specification.
DEFAULT_JMX_OBJECT_NAME
,
Constant Field Valuespublic static final java.lang.String JMX_SERVICE_URL_ENV_PREFIX
Each property that matches the prefix of "jmxserviceurl.env." is passed through to the JMXConnectorServer as part of its environment (minus
the prefix); if you need specific configuration for the JMXConnectorServer then this is how you would do it. e.g. The presence
of the property jmxserviceurl.env.myEnvironment=ABCDE
would cause an environment containing
myEnvironment=ABCDE
to be passed through to
JMXConnectorServerFactory.newJMXConnectorServer(JMXServiceURL, Map, MBeanServer)
. Obviously due to the inherent
restrictions on properties, the environment will be the equivalent to a Map
JMXConnectorServerFactory.newJMXConnectorServer(JMXServiceURL, Map, MBeanServer)
,
Constant Field Valuespublic static final java.lang.String JMX_JMXMP_SASL_USERNAME
JMXConnectorServer
if the JMXServiceURL
indicates the jmxmp protocol.
If no jmx.remote.profiles
setting is specified then SASL/PLAIN
is used. Different profiles may be specified
according to the Oracle JDMK tutorial.
Specifying a profile of TLS may require additional javax.net.ssl.*
system properties.
public static final java.lang.String JMX_JMXMP_SASL_PASSWORD
JMXConnectorServer
if the JMXServiceURL
indicates the jmxmp protocol.
If no jmx.remote.profiles
setting is specified then SASL/PLAIN
is used. Different profiles may be specified
according to the Oracle JDMK tutorial.
Specifying a profile of TLS may require additional javax.net.ssl.*
system properties.
public static final java.lang.String DEFAULT_JMX_OBJECT_NAME
protected transient org.slf4j.Logger log
protected com.adaptris.core.management.jmx.JmxComponentImpl.JmxComponent createJmxWrapper(java.util.Properties config) throws java.lang.Exception
config
- the propertiesjava.lang.Exception
public final void init(java.util.Properties p) throws java.lang.Exception
ManagementComponent
p
- configuration properties that have been built during bootstrap.java.lang.Exception
- if initialisation fails.public final void start() throws java.lang.Exception
ManagementComponent
java.lang.Exception
public final void stop() throws java.lang.Exception
ManagementComponent
java.lang.Exception
public final void destroy() throws java.lang.Exception
ManagementComponent
java.lang.Exception
public boolean isStarted()
Copyright Adaptris