com.carrotsearch.ant.tasks.junit4
Class SlaveInfo

java.lang.Object
  extended by com.carrotsearch.ant.tasks.junit4.SlaveInfo

public final class SlaveInfo
extends Object

Static slave information.


Field Summary
 int id
          Unique sequential slave identifier.
 int slaves
          The number of executed slaves, total.
 
Constructor Summary
SlaveInfo(int id, int slaves)
           
 
Method Summary
 void decodeStreams(List<IEvent> events, Writer sysout, Writer syserr)
          Filter through events looking for sysouts and syserrs and decode them into a character streams.
 Charset getCharset()
          Return the Charset used to encode stream bytes from the slave.
 String getCommandLine()
          Command line string used to invoke the slave.
 String getJvmName()
          JVM name (slave).
 Map<String,String> getSystemProperties()
          System properties on the slave.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public final int id
Unique sequential slave identifier.


slaves

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

Constructor Detail

SlaveInfo

public SlaveInfo(int id,
                 int slaves)
Method Detail

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.


getCommandLine

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


getJvmName

public String getJvmName()
JVM name (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


Copyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.