com.ibm.tuningfork.tracegen.chunk
Class EventChunk

java.lang.Object
  extended by com.ibm.tuningfork.tracegen.chunk.RawChunk
      extended by com.ibm.tuningfork.tracegen.chunk.Chunk
          extended by com.ibm.tuningfork.tracegen.chunk.EventChunk

public final class EventChunk
extends Chunk


Field Summary
protected static int DEFAULT_EVENT_CHUNK_SIZE
           
static int EVENT_DATA_OFFSET
           
static int EVENT_TYPE_ID
           
static int FEEDLET_ID_OFFSET
           
 EventChunk next
           
static int SEQUENCE_NUMBER_OFFSET
           
 
Fields inherited from class com.ibm.tuningfork.tracegen.chunk.Chunk
DATA_OFFSET, DEFAULT_CHUNK_SIZE
 
Fields inherited from class com.ibm.tuningfork.tracegen.chunk.RawChunk
ENCODING_SPACE_DOUBLE, ENCODING_SPACE_INT, ENCODING_SPACE_LONG
 
Constructor Summary
EventChunk()
           
 
Method Summary
 boolean addEvent(long timeStamp, EventType et)
           
 boolean addEvent(long timeStamp, EventType et, double v)
           
 boolean addEvent(long timeStamp, EventType et, double dv, String sv)
           
 boolean addEvent(long timeStamp, EventType et, int v)
           
 boolean addEvent(long timeStamp, EventType et, int[] idata, long[] ldata, double[] ddata, String[] sdata)
           
 boolean addEvent(long timeStamp, EventType et, int iv, double dv)
           
 boolean addEvent(long timeStamp, EventType et, int v1, int v2)
           
 boolean addEvent(long timeStamp, EventType et, int iv1, int iv2, double dv)
           
 boolean addEvent(long timeStamp, EventType et, int v1, int v2, int v3)
           
 boolean addEvent(long timeStamp, EventType et, int v1, int v2, int v3, int v4)
           
 boolean addEvent(long timeStamp, EventType et, long v)
           
 boolean addEvent(long timeStamp, EventType et, String v)
           
 void reset(int feedletIndex, int sequenceNumber)
           
 
Methods inherited from class com.ibm.tuningfork.tracegen.chunk.Chunk
close, getChars, resetImpl
 
Methods inherited from class com.ibm.tuningfork.tracegen.chunk.RawChunk
addByte, addDouble, addDoubleUnchecked, addInt, addIntUnchecked, addLong, addLongUnchecked, addString, addStringInternal, getPosition, hasRoom, putIntAt, seek, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_TYPE_ID

public static final int EVENT_TYPE_ID
See Also:
Constant Field Values

FEEDLET_ID_OFFSET

public static final int FEEDLET_ID_OFFSET
See Also:
Constant Field Values

SEQUENCE_NUMBER_OFFSET

public static final int SEQUENCE_NUMBER_OFFSET
See Also:
Constant Field Values

EVENT_DATA_OFFSET

public static final int EVENT_DATA_OFFSET
See Also:
Constant Field Values

DEFAULT_EVENT_CHUNK_SIZE

protected static final int DEFAULT_EVENT_CHUNK_SIZE
See Also:
Constant Field Values

next

public EventChunk next
Constructor Detail

EventChunk

public EventChunk()
Method Detail

reset

public void reset(int feedletIndex,
                  int sequenceNumber)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        int v)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        int v1,
                        int v2)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        int v1,
                        int v2,
                        int v3)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        int v1,
                        int v2,
                        int v3,
                        int v4)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        long v)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        double v)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        String v)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        int iv,
                        double dv)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        int iv1,
                        int iv2,
                        double dv)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        double dv,
                        String sv)

addEvent

public boolean addEvent(long timeStamp,
                        EventType et,
                        int[] idata,
                        long[] ldata,
                        double[] ddata,
                        String[] sdata)