gcspy.tools
Class TerminalPlayTrace

java.lang.Object
  extended by gcspy.utils.Verbose
      extended by gcspy.tools.FileTrace
          extended by gcspy.tools.TerminalPlayTrace
All Implemented Interfaces:
InputGenerator, OutputGenerator

public class TerminalPlayTrace
extends FileTrace

Plays a trace from a file

Author:
Tony Printezis

Field Summary
 
Fields inherited from class gcspy.tools.FileTrace
COMPRESSION_GZIP, COMPRESSION_NONE, COMPRESSION_ZIP, fileName
 
Fields inherited from class gcspy.utils.Verbose
verbose
 
Method Summary
protected  void control(int spaceID, byte[] control)
          Handle a space's controls
protected  void event(int eventID, int elapsedTime, int compensationTime)
          Handle an event
protected  void eventCount(int[] eventCount)
          Handle event counts
static void main(java.lang.String[] args)
           
protected  void space(ServerSpace space)
          Handle a space
protected  void spaceInfo(int spaceID, java.lang.String spaceInfo)
          Handle space information
protected  void stream(int spaceID, int streamID, java.lang.Object data, int[] summary)
          Handle a stream's data and dummary values for a stream
 
Methods inherited from class gcspy.tools.FileTrace
close, createBufferedInput, createBufferedOutput, createSpace, done, getCompressionType, parse, setupInput, setupOutput, writeControl, writeEvent, writeEventCount, writeSpace, writeSpaceInfo, writeStream
 
Methods inherited from class gcspy.utils.Verbose
print, println, println, setVerbose, verbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stream

protected void stream(int spaceID,
                      int streamID,
                      java.lang.Object data,
                      int[] summary)
               throws java.io.IOException
Description copied from class: FileTrace
Handle a stream's data and dummary values for a stream

Overrides:
stream in class FileTrace
Parameters:
spaceID - The space's ID
streamID - The stream's ID
data - The stream's data
summary - The summary values
Throws:
java.io.IOException

control

protected void control(int spaceID,
                       byte[] control)
                throws java.io.IOException
Description copied from class: FileTrace
Handle a space's controls

Overrides:
control in class FileTrace
Parameters:
spaceID - The space's ID
control - The controls
Throws:
java.io.IOException

eventCount

protected void eventCount(int[] eventCount)
                   throws java.io.IOException
Description copied from class: FileTrace
Handle event counts

Overrides:
eventCount in class FileTrace
Parameters:
eventCount - The event counts
Throws:
java.io.IOException

event

protected void event(int eventID,
                     int elapsedTime,
                     int compensationTime)
              throws java.io.IOException
Description copied from class: FileTrace
Handle an event

Overrides:
event in class FileTrace
Parameters:
eventID - The event's ID
elapsedTime - The elapsed time for the event
compensationTime - Its compensation time
Throws:
java.io.IOException

spaceInfo

protected void spaceInfo(int spaceID,
                         java.lang.String spaceInfo)
Description copied from class: FileTrace
Handle space information

Overrides:
spaceInfo in class FileTrace
Parameters:
spaceID - The space's ID
spaceInfo - Its space information

space

protected void space(ServerSpace space)
              throws java.io.IOException
Description copied from class: FileTrace
Handle a space

Overrides:
space in class FileTrace
Parameters:
space - The space
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)