Class VmHacks.InstrumentationCommand

  • Enclosing class:
    VmHacks

    protected abstract static class VmHacks.InstrumentationCommand
    extends java.lang.Object
    Instrumentation command issued to the instrumentation agent.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.Semaphore sem
      The semaphore.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void await()
      Wait for command to finish.
      void await​(long timeout)
      Wait for command to finish.
      void execute​(java.lang.instrument.Instrumentation instrumentation)
      Execute the command.
      abstract void run​(java.lang.instrument.Instrumentation instrumentation)
      Custom command code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sem

        protected java.util.concurrent.Semaphore sem
        The semaphore.
    • Constructor Detail

      • InstrumentationCommand

        protected InstrumentationCommand()
    • Method Detail

      • execute

        public final void execute​(java.lang.instrument.Instrumentation instrumentation)
        Execute the command.
      • run

        public abstract void run​(java.lang.instrument.Instrumentation instrumentation)
        Custom command code.
      • await

        public void await()
        Wait for command to finish.
      • await

        public void await​(long timeout)
                   throws java.util.concurrent.TimeoutException
        Wait for command to finish.
        Throws:
        java.util.concurrent.TimeoutException