Class ForkedJvmInfo

java.lang.Object
com.carrotsearch.ant.tasks.junit4.ForkedJvmInfo

public final class ForkedJvmInfo extends Object
Static slave information.
  • Field Details

    • id

      public final int id
      Unique sequential slave identifier.
    • slaves

      public final int slaves
      The number of executed slaves, total.
    • bootstrapEvent

      private BootstrapEvent bootstrapEvent
      Bootstrap event.
    • start

      long start
      Timestamps for diagnostics.
    • end

      long end
      Timestamps for diagnostics.
    • testSuites

      ArrayList<String> testSuites
      Execute these test suites on this slave.
    • slaveCommandLine

      String slaveCommandLine
      Complete slave command line invocation string.
    • executionError

      Throwable executionError
      Execution error if anything bad happened on the slave.
  • Constructor Details

    • ForkedJvmInfo

      public ForkedJvmInfo(int id, int slaves)
  • Method Details

    • getCharset

      public Charset getCharset()
      Return the Charset used to encode stream bytes from the slave.
    • getSystemProperties

      public Map<String,String> getSystemProperties()
      System properties on the slave.
    • getPidString

      public String getPidString()
      PID string of the forked JVM. May not be available or may come in an unknown format (Java 8 will have real PID support, supposedly).
    • getCommandLine

      public String getCommandLine()
      Command line string used to invoke the slave.
    • getJvmName

      public String getJvmName()
      JVM name (slave).
    • getExecutionTime

      long getExecutionTime()
      Slave execution time.
    • setBootstrapEvent

      void setBootstrapEvent(BootstrapEvent e)
      Set the bootstrap event associated with this slave.
    • decodeStreams

      public void decodeStreams(List<IEvent> events, Writer sysout, Writer syserr) throws IOException
      Filter through events looking for sysouts and syserrs and decode them into a character streams. If both Writer arguments are the same object the streams will be combined.
      Throws:
      IOException
    • serialize

      public void serialize(JsonWriter w) throws IOException
      Throws:
      IOException