|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.net.management.MBeanHelper
com.tangosol.net.management.MBeanConnector
public class MBeanConnector
Utility class to expose Coherence JMX MBeans via the Sun JMX reference
implementation HtmlAdaptorServer or a JMX Remote
JMXConnectorServer
.
-Dtangosol.coherence.management.remote=trueThe following properties may be used for configuration of the monitoring node:
tangosol.coherence.management | Specifies if a cluster node's JVM has an in-process MBeanServer and if this node allows management of other nodes' managed objects. Use all to specify management of this and all other remotely manageable cluster nodes |
tangosol.coherence.management.remote.host | The host that the JMX server will bind to. Default is localhost. |
tangosol.coherence.management.remote.registryport | The port used for the JMX RMI registry. Default is 9000. |
tangosol.coherence.management.remote.connectionport | The port used for the JMX RMI connection. Default is 3000. |
tangosol.coherence.management.remote.httpport | The port used for the HTTP connection. Default is 8888. |
Field Summary | |
---|---|
static int |
DEFAULT_HTTP_PORT
Default HTTP port (8888). |
static int |
DEFAULT_RMI_CONNECTION_PORT
Default RMI connection port (3000). |
static String |
DEFAULT_RMI_HOST
Default RMI host (localhost). |
static int |
DEFAULT_RMI_REGISTRY_PORT
Default RMI registry port (9000). |
static String |
HELP_COMMAND_LINE_ARG
Command line argument used to output usage. |
static String |
HTTP_COMMAND_LINE_ARG
Command line argument to start HTTP server. |
static String |
HTTP_PORT_PROPERTY
Property name to specify HTTP port. |
static String |
RMI_COMMAND_LINE_ARG
Command line argument to start RMI server. |
static String |
RMI_CONNECTION_PORT_PROPERTY
Property name to specify RMI connection port. |
static String |
RMI_HOST_PROPERTY
Property name to specify the RMI host. |
static String |
RMI_REGISTRY_PORT_PROPERTY
Property name to specify RMI registry port. |
static String[] |
VALID_COMMANDS
Array that contains all valid command line arguments. |
Fields inherited from class com.tangosol.net.management.MBeanHelper |
---|
NETWORK_HEALTH |
Constructor Summary | |
---|---|
MBeanConnector()
|
Method Summary | |
---|---|
static void |
main(String[] asArg)
Start a Coherence cluster node that enables JMX agents such as a web browser or JConsole to connect to the in-process JMX MBeanServer and manage Coherence MBeans. |
static void |
showUsage()
Output usage instructions. |
void |
start(boolean fRmi,
boolean fHttp)
Start the RMI and/or HTTP agents. |
Object |
startHttpConnector()
Starts the HTTP connector using the values of the HTTP_* system properties. |
JMXConnectorServer |
startRmiConnector()
Starts the RMI connector using the values of the RMI_* system properties. |
Methods inherited from class com.tangosol.net.management.MBeanHelper |
---|
calculateAverage, ensureNetworkHealthMBean, ensureSingletonMBean, findMBeanServer, findMBeanServer, getDefaultDomain, startHttpConnector, startRmiConnector |
Field Detail |
---|
public static final String HELP_COMMAND_LINE_ARG
public static final String RMI_COMMAND_LINE_ARG
public static final String HTTP_COMMAND_LINE_ARG
public static final String[] VALID_COMMANDS
public static final String RMI_HOST_PROPERTY
public static final String RMI_CONNECTION_PORT_PROPERTY
public static final String RMI_REGISTRY_PORT_PROPERTY
public static final String HTTP_PORT_PROPERTY
public static final String DEFAULT_RMI_HOST
public static final int DEFAULT_RMI_CONNECTION_PORT
public static final int DEFAULT_RMI_REGISTRY_PORT
public static final int DEFAULT_HTTP_PORT
Constructor Detail |
---|
public MBeanConnector()
Method Detail |
---|
public static void main(String[] asArg) throws Exception
Exception
public void start(boolean fRmi, boolean fHttp)
fRmi
- if true starts the RMI agentfHttp
- if true starts the HTTP agentpublic JMXConnectorServer startRmiConnector() throws IOException
IOException
MBeanHelper.startRmiConnector(String, int, int, MBeanServer, Map)
,
RMI_HOST_PROPERTY
,
RMI_REGISTRY_PORT_PROPERTY
,
RMI_CONNECTION_PORT_PROPERTY
,
DEFAULT_RMI_HOST
,
DEFAULT_RMI_REGISTRY_PORT
,
DEFAULT_RMI_CONNECTION_PORT
public Object startHttpConnector()
MBeanHelper.startHttpConnector(int, MBeanServer)
,
HTTP_PORT_PROPERTY
,
DEFAULT_HTTP_PORT
public static void showUsage()
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |