Class JmxRemoteComponent
- All Implemented Interfaces:
ManagementComponent
ManagementComponent
interface for JSR160.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Bootstrap property key that defines the optional object namestatic final String
The default object name "com.adaptris:type=JmxConnectorServer"static final String
Bootstrap property that controls the password required for connecting to thisJMXConnectorServer
if theJMXServiceURL
indicates the jmxmp protocol.static final String
Bootstrap property that controls the username required for connecting to thisJMXConnectorServer
if theJMXServiceURL
indicates the jmxmp protocol.static final String
Bootstrap property key prefix that controls what environment is passed through to the JMXConnectorServer.Fields inherited from class com.adaptris.core.management.MgmtComponentImpl
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.adaptris.core.management.jmx.JmxComponentImpl.JmxComponent
createJmxWrapper
(Properties config) Create a JMX wrapper.final void
destroy()
Destroy the management component making it require re-initialisation.final void
init
(Properties p) Initialise the management component.boolean
final void
start()
Start the management component.final void
stop()
Stop the management component.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.adaptris.core.management.ManagementComponent
setClassLoader
-
Field Details
-
CFG_KEY_JMX_SERVICE_URL_OBJECT_NAME
Bootstrap property key that defines the optional object nameIf "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.- See Also:
-
JMX_SERVICE_URL_ENV_PREFIX
Bootstrap property key prefix that controls what environment is passed through to the JMXConnectorServer.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 containingmyEnvironment=ABCDE
to be passed through toJMXConnectorServerFactory.newJMXConnectorServer(JMXServiceURL, Map, MBeanServer)
. Obviously due to the inherent restrictions on properties, the environment will be the equivalent to aMap<String, String>
-
JMX_JMXMP_SASL_USERNAME
Bootstrap property that controls the username required for connecting to thisJMXConnectorServer
if theJMXServiceURL
indicates the jmxmp protocol.If no
jmx.remote.profiles
setting is specified thenSASL/PLAIN
is used. Different profiles may be specified according to the Oracle JDMK tutorial. Specifying a profile of TLS may require additionaljavax.net.ssl.*
system properties.- See Also:
-
JMX_JMXMP_SASL_PASSWORD
Bootstrap property that controls the password required for connecting to thisJMXConnectorServer
if theJMXServiceURL
indicates the jmxmp protocol.If no
jmx.remote.profiles
setting is specified thenSASL/PLAIN
is used. Different profiles may be specified according to the Oracle JDMK tutorial. Specifying a profile of TLS may require additionaljavax.net.ssl.*
system properties.- See Also:
-
DEFAULT_JMX_OBJECT_NAME
The default object name "com.adaptris:type=JmxConnectorServer"- See Also:
-
-
Constructor Details
-
JmxRemoteComponent
public JmxRemoteComponent()
-
-
Method Details
-
createJmxWrapper
protected com.adaptris.core.management.jmx.JmxComponentImpl.JmxComponent createJmxWrapper(Properties config) throws Exception Create a JMX wrapper.- Parameters:
config
- the properties- Returns:
- null or something that can start/stop/register itself.
- Throws:
Exception
-
init
Description copied from interface:ManagementComponent
Initialise the management component.- Parameters:
p
- configuration properties that have been built during bootstrap.- Throws:
Exception
- if initialisation fails.
-
start
Description copied from interface:ManagementComponent
Start the management component.- Throws:
Exception
-
stop
Description copied from interface:ManagementComponent
Stop the management component.- Throws:
Exception
-
destroy
Description copied from interface:ManagementComponent
Destroy the management component making it require re-initialisation.- Throws:
Exception
-
isStarted
public boolean isStarted()
-