Interface ManagementConfig
- All Superinterfaces:
Config
Management Configuration. Enable remote JMX access.
- Since:
- 4.4
-
Method Summary
Modifier and TypeMethodDescriptionintGets the JMX service port.getHost()Gets the host.intGets the RMI registry port.booleanWhether or not the external JMX Connector is enabled or not.voidsetConnectionPort(int port) Sets the JMX service port.voidsetEnabled(boolean enabled) Sets whether or not a remote JMX Connector is enabled or not.voidSet the host.voidsetKeystoreConfig(KeyStoreConfig keystoreConfig) Sets the keystore configuration.voidsetRegistryPort(int port) Sets the RMI registry port.
-
Method Details
-
setHost
Set the host. This determines the local interface used for the RMI registry and the JMX service.By default this is "localhost".
- Parameters:
host- the host name or IP address.- Throws:
ConfigException- if unable to set the property
-
getHost
String getHost()Gets the host.- Returns:
- host name or IP address.
-
setRegistryPort
Sets the RMI registry port.By default this is set to 1099.
- Parameters:
port- RMI registry port- Throws:
ConfigException- if unable to set the property
-
getRegistryPort
int getRegistryPort()Gets the RMI registry port.- Returns:
- port number
-
setConnectionPort
Sets the JMX service port.By default this is 1100. If desired, it can be set to the same port number as the RMI registry port.
- Parameters:
port- the connection port- Throws:
ConfigException- if unable to set the property
-
getConnectionPort
int getConnectionPort()Gets the JMX service port.- Returns:
- connection port
-
setKeystoreConfig
Sets the keystore configuration.- Throws:
ConfigException
-
getKeystoreConfig
KeyStoreConfig getKeystoreConfig()- Returns:
- the keystore configuration
-
setEnabled
Sets whether or not a remote JMX Connector is enabled or not. If not enabled, the JMX MBeans will still be created against the Platform MBean server, but only local process access will be supported.By default this is set to false.
- Parameters:
enabled- true to enable JMX management- Throws:
ConfigException- if unable to set the property
-
isEnabled
boolean isEnabled()Whether or not the external JMX Connector is enabled or not.- Returns:
- true if enabled
-