public class JMXHelper
extends java.lang.Object
| Constructor and Description |
|---|
JMXHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
connectToDS()
the INITTASKS calling connectToDS across ThreadGroups
should be executed with the keyword SEQUENTIAL
|
static void |
connectToDS(java.lang.String host,
int port) |
static void |
connectToDSButDoNotAttachListeners() |
static void |
disconnectAndThenReconnectToDSNoListeners()
If there's an existing connection to the DS, then disconnect it
Subsequently re-connect again.
|
static void |
disconnectFromDS() |
static void |
killClient() |
static void |
main(java.lang.String[] args) |
static void |
registerStatAlertDefinition(com.gemstone.gemfire.internal.admin.StatAlertDefinition def) |
static void |
startJMXAgent()
Starts and connects a JMX agent using the
AgentPrms
configuration specified in ConfigPrms.agentConfig. |
static void |
startJMXAgentButDoNotConnect()
Starts a JMX agent using the
AgentPrms
configuration specified in ConfigPrms.agentConfig. |
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic static void startJMXAgent()
AgentPrms
configuration specified in ConfigPrms.agentConfig.public static void startJMXAgentButDoNotConnect()
AgentPrms
configuration specified in ConfigPrms.agentConfig.
This method does not connect the Agent to the DSpublic static void disconnectAndThenReconnectToDSNoListeners()
throws java.lang.Exception
java.lang.Exceptionpublic static void connectToDSButDoNotAttachListeners()
throws java.lang.Exception
java.lang.Exceptionpublic static void connectToDS()
throws java.lang.Exception
Must be invoked after the JMX agents have been created, started, and
connected using AgentHelper.
java.lang.Exceptionpublic static void connectToDS(java.lang.String host,
int port)
throws java.lang.Exception
java.lang.Exceptionpublic static void disconnectFromDS()
throws java.lang.Exception
java.lang.Exceptionpublic static void registerStatAlertDefinition(com.gemstone.gemfire.internal.admin.StatAlertDefinition def)
throws java.lang.Exception
java.lang.Exceptionpublic static void killClient()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.