public class JMXHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static com.gemstone.gemfire.admin.jmx.Agent |
rmiAgent
The RMI agent running in this VM
|
| Constructor and Description |
|---|
JMXHelper() |
| Modifier and Type | Method and Description |
|---|---|
static com.gemstone.gemfire.admin.jmx.Agent |
startAgent(AdminDUnitTestCase test,
com.gemstone.gemfire.admin.jmx.AgentConfig config,
com.gemstone.gemfire.distributed.internal.DistributionConfig dsConfig,
int pid)
Creates a new JMX agent in this VM
|
static com.gemstone.gemfire.admin.jmx.Agent |
startAgent(AdminDUnitTestCase test,
com.gemstone.gemfire.admin.jmx.AgentConfig config,
int pid) |
static com.gemstone.gemfire.admin.jmx.Agent |
startAgent(AdminDUnitTestCase test,
int pid) |
protected static String |
startRMIAgent(AdminDUnitTestCase test,
int pid)
Accessed via reflection.
|
static String |
startRMIAgent(DistributedTestCase test,
VM vm)
Starts a new RMI JMX agent that runs in the given VM.
|
protected static String |
startRMIAgentNoAdmin(CoLocatedAgentDUnitTest test,
int pid)
Accessed via reflection.
|
static String |
startRMIAgentNoAdmin(DistributedTestCase test,
VM vm)
Starts a new RMI JMX agent (that is not marked as "admin only")
that runs in the given VM.
|
protected static String |
startRMISSLAgent(AdminDUnitTestCase test,
int pid)
Accessed via reflection.
|
static String |
startRMISSLAgent(DistributedTestCase test,
VM vm) |
static void |
stopAgent(com.gemstone.gemfire.admin.jmx.Agent agent)
Stops the given JMX agent
|
static void |
stopRMIAgent(DistributedTestCase test,
VM vm)
Connects to the JMX RMI agent in the given VM and stops it.
|
protected static com.gemstone.gemfire.admin.jmx.Agent rmiAgent
public static com.gemstone.gemfire.admin.jmx.Agent startAgent(AdminDUnitTestCase test, int pid) throws Exception
Exceptionpublic static com.gemstone.gemfire.admin.jmx.Agent startAgent(AdminDUnitTestCase test, com.gemstone.gemfire.admin.jmx.AgentConfig config, int pid) throws Exception
Exceptionpublic static com.gemstone.gemfire.admin.jmx.Agent startAgent(AdminDUnitTestCase test, com.gemstone.gemfire.admin.jmx.AgentConfig config, com.gemstone.gemfire.distributed.internal.DistributionConfig dsConfig, int pid) throws Exception
Exceptionpublic static void stopAgent(com.gemstone.gemfire.admin.jmx.Agent agent)
throws Exception
Exceptionpublic static String startRMIAgent(DistributedTestCase test, VM vm) throws Exception
Exceptionpublic static String startRMIAgentNoAdmin(DistributedTestCase test, VM vm) throws Exception
Exceptionpublic static String startRMISSLAgent(DistributedTestCase test, VM vm) throws Exception
Exceptionprotected static String startRMIAgent(AdminDUnitTestCase test, int pid) throws Exception
test - pid - Exceptionprotected static String startRMIAgentNoAdmin(CoLocatedAgentDUnitTest test, int pid) throws Exception
Exceptionpublic static void stopRMIAgent(DistributedTestCase test, VM vm) throws Exception
Exceptionprotected static String startRMISSLAgent(AdminDUnitTestCase test, int pid) throws Exception
test - pid - ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.