Package com.levigo.jadice.server.multivm
Class MVMInstance
- java.lang.Object
-
- com.levigo.jadice.server.multivm.MVMInstance
-
- All Implemented Interfaces:
SelfRegistering
,org.springframework.jmx.export.naming.SelfNaming
@ManagedResource(description="A single managed VM instance") public final class MVMInstance extends Object implements SelfRegistering
Deprecated.The multi-VM mode will be removed with the next major releaseThis class manages a single MVM instance. Each instance of this class corresponds to a running (or terminated) process.
-
-
Constructor Summary
Constructors Constructor Description MVMInstance(List<String> instanceJVMOptions, boolean enableDebug)
Deprecated.Create a MVM instance by launching it with the given VM options.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getInstanceName()
Deprecated.int
getInstanceNumber()
Deprecated.long
getLastHeartbeat()
Deprecated.ObjectName
getObjectName()
Deprecated.boolean
isTerminated()
Deprecated.Determine whether the instance has terminated, i.e.boolean
isZombie(int timeout)
Deprecated.Determine whether the instance is dead, but the process has not yet exited.void
ping()
Deprecated.Send a PING (heartbeat) to the process.void
shutdown()
Deprecated.Shut down the instance.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
MVMInstance
public MVMInstance(List<String> instanceJVMOptions, boolean enableDebug) throws IOException
Deprecated.Create a MVM instance by launching it with the given VM options.- Parameters:
instanceJVMOptions
-- Throws:
IOException
-
-
Method Detail
-
isTerminated
@ManagedAttribute public boolean isTerminated()
Deprecated.Determine whether the instance has terminated, i.e. the process has exited.- Returns:
true
iff the instance has terminated
-
isZombie
@ManagedAttribute public boolean isZombie(int timeout)
Deprecated.Determine whether the instance is dead, but the process has not yet exited. Death is detected if the process streams have EOFed or there has been no heartbeat fortimeout
seconds.- Parameters:
timeout
- timeout in seconds- Returns:
true
iff the instance seems to be a "zombie"
-
shutdown
@ManagedOperation public void shutdown()
Deprecated.Shut down the instance. First, we try to do a soft shutdown by requesting one. The next time this method is called, a hard shutdown is forced.
-
ping
public void ping()
Deprecated.Send a PING (heartbeat) to the process.
-
getObjectName
public ObjectName getObjectName() throws MalformedObjectNameException
Deprecated.- Specified by:
getObjectName
in interfaceorg.springframework.jmx.export.naming.SelfNaming
- Throws:
MalformedObjectNameException
-
getInstanceNumber
@ManagedAttribute public int getInstanceNumber()
Deprecated.- Returns:
- the instanceNumber
-
getLastHeartbeat
@ManagedAttribute public long getLastHeartbeat()
Deprecated.- Returns:
- the lastHeartbeat
-
getInstanceName
@ManagedAttribute public String getInstanceName()
Deprecated.- Returns:
- the instanceName
-
-