Package org.apache.catalina.mbeans
Class JmxRemoteLifecycleListener
java.lang.Object
org.apache.tomcat.util.net.SSLHostConfig
org.apache.catalina.mbeans.JmxRemoteLifecycleListener
- All Implemented Interfaces:
Serializable,LifecycleListener
@Deprecated
public class JmxRemoteLifecycleListener
extends SSLHostConfig
implements LifecycleListener
Deprecated.
The features provided by this listener are now available in the
remote JMX capability included with the JRE.
This listener will be removed in Tomcat 10 and may be removed
from Tomcat 9.0.x some time after 2020-12-31.
This listener fixes the port used by JMX/RMI Server making things much
simpler if you need to connect jconsole or similar to a remote Tomcat
instance that is running behind a firewall. Only the ports are configured via
the listener. The remainder of the configuration is via the standard system
properties for configuring JMX.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.static classDeprecated.static classDeprecated.Nested classes/interfaces inherited from class org.apache.tomcat.util.net.SSLHostConfig
SSLHostConfig.CertificateVerification, SSLHostConfig.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDeprecated.protected booleanDeprecated.protected JMXConnectorServerDeprecated.protected StringDeprecated.protected StringDeprecated.protected StringDeprecated.protected intDeprecated.protected booleanDeprecated.protected intDeprecated.protected booleanDeprecated.protected static final StringManagerDeprecated.protected booleanDeprecated.Fields inherited from class org.apache.tomcat.util.net.SSLHostConfig
DEFAULT_SSL_HOST_NAME, SSL_PROTO_ALL_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Get the inet address on which the Platform RMI server is exported.intDeprecated.Get the port on which the Platform RMI registry is exported.intDeprecated.Get the port on which the Platform RMI server is exported.booleanDeprecated.Get the flag that indicates that local ports should be used for all connections.protected voidinit()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.voidlifecycleEvent(LifecycleEvent event) Deprecated.Acknowledge the occurrence of the specified event.voidsetAccessFile(String accessFile) Deprecated.voidsetAuthenticate(boolean authenticate) Deprecated.voidsetLoginModuleName(String loginModuleName) Deprecated.voidsetPasswordFile(String passwordFile) Deprecated.voidsetRmiBindAddress(String theRmiBindAddress) Deprecated.Set the inet address on which the Platform RMI server is exported.voidsetRmiRegistryPortPlatform(int theRmiRegistryPortPlatform) Deprecated.Set the port on which the Platform RMI registry is exported.voidsetRmiRegistrySSL(boolean rmiRegistrySSL) Deprecated.voidsetRmiServerPortPlatform(int theRmiServerPortPlatform) Deprecated.Set the port on which the Platform RMI server is exported.voidsetRmiServerSSL(boolean rmiServerSSL) Deprecated.voidsetUseLocalPorts(boolean useLocalPorts) Deprecated.Set the flag that indicates that local ports should be used for all connections.Methods inherited from class org.apache.tomcat.util.net.SSLHostConfig
addCertificate, adjustRelativePath, getCaCertificateFile, getCaCertificatePath, getCertificateChainFile, getCertificateFile, getCertificateKeyAlias, getCertificateKeyFile, getCertificateKeyPassword, getCertificateKeystoreFile, getCertificateKeystorePassword, getCertificateKeystoreProvider, getCertificateKeystoreType, getCertificateRevocationListFile, getCertificateRevocationListPath, getCertificates, getCertificates, getCertificateVerification, getCertificateVerificationAsString, getCertificateVerificationDepth, getCipherList, getCiphers, getConfigType, getDisableCompression, getDisableSessionTickets, getEnabledCiphers, getEnabledProtocols, getHonorCipherOrder, getHostName, getInsecureRenegotiation, getJsseCipherNames, getKeyManagerAlgorithm, getObjectName, getOpenSslConf, getOpenSslConfContext, getOpenSslContext, getProtocols, getRevocationEnabled, getSessionCacheSize, getSessionTimeout, getSslProtocol, getTrustManagerClassName, getTruststore, getTruststoreAlgorithm, getTruststoreFile, getTruststorePassword, getTruststoreProvider, getTruststoreType, isCertificateVerificationDepthConfigured, setCaCertificateFile, setCaCertificatePath, setCertificateChainFile, setCertificateFile, setCertificateKeyAlias, setCertificateKeyFile, setCertificateKeyPassword, setCertificateKeystoreFile, setCertificateKeystorePassword, setCertificateKeystoreProvider, setCertificateKeystoreType, setCertificateRevocationListFile, setCertificateRevocationListPath, setCertificateVerification, setCertificateVerificationAsString, setCertificateVerificationDepth, setCiphers, setDisableCompression, setDisableSessionTickets, setEnabledCiphers, setEnabledProtocols, setHonorCipherOrder, setHostName, setInsecureRenegotiation, setKeyManagerAlgorithm, setObjectName, setOpenSslConf, setOpenSslConfContext, setOpenSslContext, setProtocols, setRevocationEnabled, setSessionCacheSize, setSessionTimeout, setSslProtocol, setTrustManagerClassName, setTrustStore, setTruststoreAlgorithm, setTruststoreFile, setTruststorePassword, setTruststoreProvider, setTruststoreType
-
Field Details
-
sm
Deprecated. -
rmiBindAddress
Deprecated. -
rmiRegistryPortPlatform
protected int rmiRegistryPortPlatformDeprecated. -
rmiServerPortPlatform
protected int rmiServerPortPlatformDeprecated. -
rmiRegistrySSL
protected boolean rmiRegistrySSLDeprecated. -
rmiServerSSL
protected boolean rmiServerSSLDeprecated. -
authenticate
protected boolean authenticateDeprecated. -
passwordFile
Deprecated. -
loginModuleName
Deprecated. -
accessFile
Deprecated. -
useLocalPorts
protected boolean useLocalPortsDeprecated. -
csPlatform
Deprecated.
-
-
Constructor Details
-
JmxRemoteLifecycleListener
public JmxRemoteLifecycleListener()Deprecated.
-
-
Method Details
-
getRmiBindAddress
Deprecated.Get the inet address on which the Platform RMI server is exported.- Returns:
- The textual representation of inet address
-
setRmiBindAddress
Deprecated.Set the inet address on which the Platform RMI server is exported.- Parameters:
theRmiBindAddress- The textual representation of inet address
-
getRmiServerPortPlatform
public int getRmiServerPortPlatform()Deprecated.Get the port on which the Platform RMI server is exported. This is the port that is normally chosen by the RMI stack.- Returns:
- The port number
-
setRmiServerPortPlatform
public void setRmiServerPortPlatform(int theRmiServerPortPlatform) Deprecated.Set the port on which the Platform RMI server is exported. This is the port that is normally chosen by the RMI stack.- Parameters:
theRmiServerPortPlatform- The port number
-
getRmiRegistryPortPlatform
public int getRmiRegistryPortPlatform()Deprecated.Get the port on which the Platform RMI registry is exported.- Returns:
- The port number
-
setRmiRegistryPortPlatform
public void setRmiRegistryPortPlatform(int theRmiRegistryPortPlatform) Deprecated.Set the port on which the Platform RMI registry is exported.- Parameters:
theRmiRegistryPortPlatform- The port number
-
getUseLocalPorts
public boolean getUseLocalPorts()Deprecated.Get the flag that indicates that local ports should be used for all connections. If using SSH tunnels, or similar, this should be set to true to ensure the RMI client uses the tunnel.- Returns:
trueif local ports should be used
-
setUseLocalPorts
public void setUseLocalPorts(boolean useLocalPorts) Deprecated.Set the flag that indicates that local ports should be used for all connections. If using SSH tunnels, or similar, this should be set to true to ensure the RMI client uses the tunnel.- Parameters:
useLocalPorts- Set totrueif local ports should be used
-
isRmiRegistrySSL
public boolean isRmiRegistrySSL()Deprecated.- Returns:
- the rmiRegistrySSL
-
setRmiRegistrySSL
public void setRmiRegistrySSL(boolean rmiRegistrySSL) Deprecated.- Parameters:
rmiRegistrySSL- the rmiRegistrySSL to set
-
isRmiServerSSL
public boolean isRmiServerSSL()Deprecated.- Returns:
- the rmiServerSSL
-
setRmiServerSSL
public void setRmiServerSSL(boolean rmiServerSSL) Deprecated.- Parameters:
rmiServerSSL- the rmiServerSSL to set
-
isAuthenticate
public boolean isAuthenticate()Deprecated.- Returns:
- the authenticate
-
setAuthenticate
public void setAuthenticate(boolean authenticate) Deprecated.- Parameters:
authenticate- the authenticate to set
-
getPasswordFile
Deprecated.- Returns:
- the passwordFile
-
setPasswordFile
Deprecated.- Parameters:
passwordFile- the passwordFile to set
-
getLoginModuleName
Deprecated.- Returns:
- the loginModuleName
-
setLoginModuleName
Deprecated.- Parameters:
loginModuleName- the loginModuleName to set
-
getAccessFile
Deprecated.- Returns:
- the accessFile
-
setAccessFile
Deprecated.- Parameters:
accessFile- the accessFile to set
-
init
protected void init()Deprecated. -
lifecycleEvent
Deprecated.Description copied from interface:LifecycleListenerAcknowledge the occurrence of the specified event.- Specified by:
lifecycleEventin interfaceLifecycleListener- Parameters:
event- LifecycleEvent that has occurred
-