class JmxServerConnectorFactory
extends AbstractFactory
This is the server connector factory used for node JmxBuilder.connectorServer(). A call to this node returns an instance of JMXConnectorServer interface (rmi default).
Possible syntax:
JmxBuilder.connectorServer(
protocol:"rmi",
host:"...",
port:1099,
url:"...",
properties:[
"authenticate":true|false,
"passwordFile":"...",
"accessFile":"...",
"loginConfig":"...",
"sslEnabled" : true | false
...
]
)
When authenticate is true a source of credentials must be supplied, being one of
passwordFile, loginConfig, or a jmx.remote.authenticator entry
holding a JMXAuthenticator. A connector which was asked to
authenticate but has none of these would start open, so that combination is rejected rather
than accepted silently. Any other entry in properties is passed to the connector
environment unaltered.
An RMI connector listens on host, which is localhost unless given, so by
default only clients on the same machine can reach it. Pass a wildcard address to listen on
every interface. A connector exposes the MBean server to whoever can reach it and
authenticates nobody unless configured to, so widening the host warrants authentication.
| Constructor and description |
|---|
JmxServerConnectorFactory() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
isLeaf()Indicates that the connector server node may contain children. |
|
Object |
newInstance(FactoryBuilderSupport builder, Object nodeName, Object nodeArgs, Map nodeAttribs)Creates a server connector for the supplied connection settings. |
|
boolean |
onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map nodeAttribs)Consumes node attributes without additional processing. |
|
void |
onNodeCompleted(FactoryBuilderSupport builder, Object parentNode, Object thisNode)Completes connector server node creation. |
| Methods inherited from class | Name |
|---|---|
class AbstractFactory |
isHandlesNodeChildren, isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, onNodeCompleted, setChild, setParent |
Indicates that the connector server node may contain children.
falseCreates a server connector for the supplied connection settings.
builder - the active buildernodeName - the node namenodeArgs - positional node argumentsnodeAttribs - named node attributesConsumes node attributes without additional processing.
builder - the active buildernode - the current nodenodeAttribs - remaining node attributestrueCompletes connector server node creation.
builder - the active builderparentNode - the parent nodethisNode - the created connector serverCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.