|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.mbeans.JmxRemoteLifecycleListener
public class JmxRemoteLifecycleListener
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.
Nested Class Summary | |
---|---|
static class |
JmxRemoteLifecycleListener.RmiClientLocalhostSocketFactory
|
static class |
JmxRemoteLifecycleListener.RmiServerBindSocketFactory
|
static class |
JmxRemoteLifecycleListener.SslRmiServerBindSocketFactory
|
Field Summary | |
---|---|
protected java.lang.String |
accessFile
|
protected boolean |
authenticate
|
protected java.lang.String[] |
ciphers
|
protected boolean |
clientAuth
|
protected javax.management.remote.JMXConnectorServer |
csPlatform
|
protected java.lang.String |
loginModuleName
|
protected java.lang.String |
passwordFile
|
protected java.lang.String[] |
protocols
|
protected java.lang.String |
rmiBindAddress
|
protected int |
rmiRegistryPortPlatform
|
protected boolean |
rmiRegistrySSL
|
protected int |
rmiServerPortPlatform
|
protected boolean |
rmiServerSSL
|
protected static StringManager |
sm
|
protected boolean |
useLocalPorts
|
Constructor Summary | |
---|---|
JmxRemoteLifecycleListener()
|
Method Summary | |
---|---|
java.lang.String |
getRmiBindAddress()
Get the inet address on which the Platform RMI server is exported. |
int |
getRmiRegistryPortPlatform()
Get the port on which the Platform RMI registry is exported. |
int |
getRmiServerPortPlatform()
Get the port on which the Platform RMI server is exported. |
boolean |
getUseLocalPorts()
Get the flag that indicates that local ports should be used for all connections. |
void |
lifecycleEvent(LifecycleEvent event)
Acknowledge the occurrence of the specified event. |
void |
setRmiBindAddress(java.lang.String theRmiBindAddress)
Set the inet address on which the Platform RMI server is exported. |
void |
setRmiRegistryPortPlatform(int theRmiRegistryPortPlatform)
Set the port on which the Platform RMI registry is exported. |
void |
setRmiServerPortPlatform(int theRmiServerPortPlatform)
Set the port on which the Platform RMI server is exported. |
void |
setUseLocalPorts(boolean useLocalPorts)
Set the flag that indicates that local ports should be used for all connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final StringManager sm
protected java.lang.String rmiBindAddress
protected int rmiRegistryPortPlatform
protected int rmiServerPortPlatform
protected boolean rmiRegistrySSL
protected boolean rmiServerSSL
protected java.lang.String[] ciphers
protected java.lang.String[] protocols
protected boolean clientAuth
protected boolean authenticate
protected java.lang.String passwordFile
protected java.lang.String loginModuleName
protected java.lang.String accessFile
protected boolean useLocalPorts
protected javax.management.remote.JMXConnectorServer csPlatform
Constructor Detail |
---|
public JmxRemoteLifecycleListener()
Method Detail |
---|
public java.lang.String getRmiBindAddress()
public void setRmiBindAddress(java.lang.String theRmiBindAddress)
theRmiBindAddress
- The textual representation of inet addresspublic int getRmiServerPortPlatform()
public void setRmiServerPortPlatform(int theRmiServerPortPlatform)
theRmiServerPortPlatform
- The port numberpublic int getRmiRegistryPortPlatform()
public void setRmiRegistryPortPlatform(int theRmiRegistryPortPlatform)
theRmiRegistryPortPlatform
- The port numberpublic boolean getUseLocalPorts()
true
if local ports should be usedpublic void setUseLocalPorts(boolean useLocalPorts)
useLocalPorts
- Set to true
if local ports should be
usedpublic void lifecycleEvent(LifecycleEvent event)
LifecycleListener
lifecycleEvent
in interface LifecycleListener
event
- LifecycleEvent that has occurred
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |