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);
}
Aggregations