Class 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 release
    This class manages a single MVM instance. Each instance of this class corresponds to a running (or terminated) process.
    • 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 for timeout 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.
      • 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