Search in sources :

Example 1 with Process

use of org.apache.geode.internal.process.mbean.Process in project geode by apache.

the class LocalProcessControllerJUnitTest method setUp.

@Before
public void setUp() throws Exception {
    pid = ProcessUtils.identifyPid();
    final Process process = new Process(pid, true);
    this.objectName = ObjectName.getInstance(getClass().getSimpleName() + ":testName=" + testName.getMethodName());
    this.server = ManagementFactory.getPlatformMBeanServer();
    final ObjectInstance instance = this.server.registerMBean(process, objectName);
    assertNotNull(instance);
}
Also used : ObjectInstance(javax.management.ObjectInstance) Process(org.apache.geode.internal.process.mbean.Process) Before(org.junit.Before)

Aggregations

ObjectInstance (javax.management.ObjectInstance)1 Process (org.apache.geode.internal.process.mbean.Process)1 Before (org.junit.Before)1