|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.jmxremoting.JMXConnector
public class JMXConnector
A connector that supports the server side of JSR 160 JMX Remoting.
| Field Summary | |
|---|---|
protected String |
applicationConfigName
|
protected ClassLoader |
classLoader
|
static GBeanInfo |
GBEAN_INFO
|
protected String |
host
|
protected JMXServiceURL |
jmxServiceURL
|
protected org.apache.commons.logging.Log |
log
|
protected MBeanServer |
mbeanServer
|
protected int |
port
|
protected String |
protocol
|
protected JMXConnectorServer |
server
|
protected String |
urlPath
|
| Constructor Summary | |
|---|---|
JMXConnector(MBeanServerReference mbeanServerReference,
String objectName,
ClassLoader classLoader)
|
|
JMXConnector(MBeanServer mbeanServer,
String objectName,
ClassLoader classLoader)
Constructor for creating the connector. |
|
| Method Summary | |
|---|---|
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
String |
getApplicationConfigName()
Return the name of the JAAS Application Configuration Entry this connector uses to authenticate users. |
static GBeanInfo |
getGBeanInfo()
|
String |
getHost()
Gets the JMX host for this connector. |
InetSocketAddress |
getListenAddress()
Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup. |
int |
getPort()
Gets the JMX port for this connector. |
String |
getProtocol()
Gets the protocol to use for the connection. |
String |
getUrlPath()
Gets the path within the target server to look for the connection. |
void |
setApplicationConfigName(String applicationConfigName)
Set the name of the JAAS Application Configuration Entry this connector should use to authenticate users. |
void |
setHost(String host)
Sets the JMX host for this connector. |
void |
setPort(int port)
Sets the JMX port for this connector. |
void |
setProtocol(String protocol)
Sets the protocol to use for the connection. |
void |
setUrlPath(String urlPath)
Sets the path within the target server to look for the connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final MBeanServer mbeanServer
protected final org.apache.commons.logging.Log log
protected final ClassLoader classLoader
protected String applicationConfigName
protected String protocol
protected String host
protected int port
protected String urlPath
protected JMXConnectorServer server
protected JMXServiceURL jmxServiceURL
public static final GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public JMXConnector(MBeanServerReference mbeanServerReference,
String objectName,
ClassLoader classLoader)
public JMXConnector(MBeanServer mbeanServer,
String objectName,
ClassLoader classLoader)
mbeanServer - the mbean serverobjectName - this connector's object nameclassLoader - the classLoader used to create this connector| Method Detail |
|---|
public String getApplicationConfigName()
public void setApplicationConfigName(String applicationConfigName)
applicationConfigName - the authentication configuration namepublic InetSocketAddress getListenAddress()
getListenAddress in interface JMXConnectorInfopublic String getProtocol()
getProtocol in interface JMXConnectorInfopublic void setProtocol(String protocol)
setProtocol in interface JMXConnectorInfoprotocol - the protocol to use for the connectionpublic String getHost()
getHost in interface JMXConnectorInfopublic void setHost(String host)
setHost in interface JMXConnectorInfohost - the JMX host for this connectorpublic int getPort()
getPort in interface JMXConnectorInfopublic void setPort(int port)
setPort in interface JMXConnectorInfoport - the JMX port for this connectorpublic String getUrlPath()
getUrlPath in interface JMXConnectorInfopublic void setUrlPath(String urlPath)
setUrlPath in interface JMXConnectorInfourlPath - the path used to loacate the connector on the target server
public void doStart()
throws Exception
GBeanLifecycle
doStart in interface GBeanLifecycleException - if the target failed to start; this will cause a transition to the failed state
public void doStop()
throws Exception
GBeanLifecycle
doStop in interface GBeanLifecycleException - if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail in interface GBeanLifecyclepublic static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||