@ManagedResource(description="A single managed VM instance") public final class MVMInstance extends Object implements SelfRegistering
Constructor and Description |
---|
MVMInstance(List<String> instanceJVMOptions,
boolean enableDebug)
Create a MVM instance by launching it with the given VM options.
|
Modifier and Type | Method and Description |
---|---|
String |
getInstanceName() |
int |
getInstanceNumber() |
long |
getLastHeartbeat() |
ObjectName |
getObjectName() |
boolean |
isTerminated()
Determine whether the instance has terminated, i.e.
|
boolean |
isZombie(int timeout)
Determine whether the instance is dead, but the process has not yet exited.
|
void |
ping()
Send a PING (heartbeat) to the process.
|
void |
shutdown()
Shut down the instance.
|
String |
toString() |
public MVMInstance(List<String> instanceJVMOptions, boolean enableDebug) throws IOException
instanceJVMOptions
- IOException
@ManagedAttribute public boolean isTerminated()
true
iff the instance has terminated@ManagedAttribute public boolean isZombie(int timeout)
timeout
seconds.timeout
- true
iff the instance seems to be a "zombie"@ManagedOperation public void shutdown()
public void ping()
public ObjectName getObjectName() throws MalformedObjectNameException
getObjectName
in interface org.springframework.jmx.export.naming.SelfNaming
MalformedObjectNameException
@ManagedAttribute public int getInstanceNumber()
@ManagedAttribute public long getLastHeartbeat()
@ManagedAttribute public String getInstanceName()
Copyright © 2017 levigo holding gmbh. All rights reserved.