public class JMXHelper
extends java.lang.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 java.lang.String |
startRMIAgent(AdminDUnitTestCase test,
int pid)
Accessed via reflection.
|
static java.lang.String |
startRMIAgent(DistributedTestCase test,
VM vm)
Starts a new RMI JMX agent that runs in the given VM.
|
protected static java.lang.String |
startRMIAgentNoAdmin(CoLocatedAgentDUnitTest test,
int pid)
Accessed via reflection.
|
static java.lang.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 java.lang.String |
startRMISSLAgent(AdminDUnitTestCase test,
int pid)
Accessed via reflection.
|
static java.lang.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 java.lang.Exception
java.lang.Exceptionpublic static com.gemstone.gemfire.admin.jmx.Agent startAgent(AdminDUnitTestCase test, com.gemstone.gemfire.admin.jmx.AgentConfig config, int pid) throws java.lang.Exception
java.lang.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 java.lang.Exception
java.lang.Exceptionpublic static void stopAgent(com.gemstone.gemfire.admin.jmx.Agent agent)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String startRMIAgent(DistributedTestCase test, VM vm) throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String startRMIAgentNoAdmin(DistributedTestCase test, VM vm) throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String startRMISSLAgent(DistributedTestCase test, VM vm) throws java.lang.Exception
java.lang.Exceptionprotected static java.lang.String startRMIAgent(AdminDUnitTestCase test, int pid) throws java.lang.Exception
test - pid - java.lang.Exceptionprotected static java.lang.String startRMIAgentNoAdmin(CoLocatedAgentDUnitTest test, int pid) throws java.lang.Exception
java.lang.Exceptionpublic static void stopRMIAgent(DistributedTestCase test, VM vm) throws java.lang.Exception
java.lang.Exceptionprotected static java.lang.String startRMISSLAgent(AdminDUnitTestCase test, int pid) throws java.lang.Exception
test - pid - java.lang.ExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.