adaptj.event
Class InstructionStartEvent

java.lang.Object
  |
  +--adaptj.event.AdaptJEvent
        |
        +--adaptj.event.InstructionStartEvent
All Implemented Interfaces:
AdaptJSpecConstants, MethodEvent

public class InstructionStartEvent
extends AdaptJEvent
implements MethodEvent

An Event corresponding to the JVMPI_INSTRUCTION_START event. This event is triggered when an instruction is executed by the Java VM.

Author:
Bruno Dufour
See Also:
The Java Virtual Machine Profiler Interface (JVMPI)

Field Summary
 
Fields inherited from class adaptj.event.AdaptJEvent
ADAPTJ_ARENA_DELETE, ADAPTJ_ARENA_NEW, ADAPTJ_CLASS_LOAD, ADAPTJ_CLASS_LOAD_HOOK, ADAPTJ_CLASS_UNLOAD, ADAPTJ_COMPILED_METHOD_LOAD, ADAPTJ_COMPILED_METHOD_UNLOAD, ADAPTJ_DATA_DUMP_REQUEST, ADAPTJ_DATA_RESET_REQUEST, ADAPTJ_EVENT_COUNT, ADAPTJ_GC_FINISH, ADAPTJ_GC_START, ADAPTJ_HEAP_DUMP, ADAPTJ_INSTRUCTION_START, ADAPTJ_JNI_GLOBALREF_ALLOC, ADAPTJ_JNI_GLOBALREF_FREE, ADAPTJ_JNI_WEAK_GLOBALREF_ALLOC, ADAPTJ_JNI_WEAK_GLOBALREF_FREE, ADAPTJ_JVM_INIT_DONE, ADAPTJ_JVM_SHUT_DOWN, ADAPTJ_METHOD_ENTRY, ADAPTJ_METHOD_ENTRY2, ADAPTJ_METHOD_EXIT, ADAPTJ_MONITOR_CONTENDED_ENTER, ADAPTJ_MONITOR_CONTENDED_ENTERED, ADAPTJ_MONITOR_CONTENDED_EXIT, ADAPTJ_MONITOR_DUMP, ADAPTJ_MONITOR_WAIT, ADAPTJ_MONITOR_WAITED, ADAPTJ_OBJECT_ALLOC, ADAPTJ_OBJECT_DUMP, ADAPTJ_OBJECT_FREE, ADAPTJ_OBJECT_MOVE, ADAPTJ_RAW_MONITOR_CONTENDED_ENTER, ADAPTJ_RAW_MONITOR_CONTENDED_ENTERED, ADAPTJ_RAW_MONITOR_CONTENDED_EXIT, ADAPTJ_REQUESTED_EVENT, ADAPTJ_THREAD_END, ADAPTJ_THREAD_START, ADAPTJ_THREAD_STATUS_CHANGE, ADAPTJ_UNKNOWN
 
Fields inherited from interface adaptj.spec.AdaptJSpecConstants
ADAPTJ_COMPACT_INSTRUCTION_START, ADAPTJ_FIELD_ARENA_ID, ADAPTJ_FIELD_ARENA_NAME, ADAPTJ_FIELD_CHOSEN_PAIR_INDEX, ADAPTJ_FIELD_CLASS_LOAD_CLASS_ID, ADAPTJ_FIELD_CLASS_NAME, ADAPTJ_FIELD_CLASS_UNLOAD_CLASS_ID, ADAPTJ_FIELD_CODE, ADAPTJ_FIELD_CODE_SIZE, ADAPTJ_FIELD_COUNTED, ADAPTJ_FIELD_DATA, ADAPTJ_FIELD_DATA_LEN, ADAPTJ_FIELD_ENV_ID, ADAPTJ_FIELD_GROUP_NAME, ADAPTJ_FIELD_HI, ADAPTJ_FIELD_ID, ADAPTJ_FIELD_INSTANCES, ADAPTJ_FIELD_IS_ARRAY, ADAPTJ_FIELD_IS_TRUE, ADAPTJ_FIELD_KEY, ADAPTJ_FIELD_LINENO_TABLE, ADAPTJ_FIELD_LINENO_TABLE_SIZE, ADAPTJ_FIELD_LOW, ADAPTJ_FIELD_METHOD_ID, ADAPTJ_FIELD_METHODS, ADAPTJ_FIELD_NAME, ADAPTJ_FIELD_NEW_ARENA_ID, ADAPTJ_FIELD_NEW_OBJ_ID, ADAPTJ_FIELD_NEW_STATUS, ADAPTJ_FIELD_NUM_INSTANCE_FIELDS, ADAPTJ_FIELD_NUM_INTERFACES, ADAPTJ_FIELD_NUM_METHODS, ADAPTJ_FIELD_NUM_STATIC_FIELDS, ADAPTJ_FIELD_NUM_TRACES, ADAPTJ_FIELD_OBJ_ID, ADAPTJ_FIELD_OBJECT, ADAPTJ_FIELD_OBJECT_ALLOC_CLASS_ID, ADAPTJ_FIELD_OFFSET, ADAPTJ_FIELD_PAIRS_TOTAL, ADAPTJ_FIELD_PARENT_NAME, ADAPTJ_FIELD_RECORDED, ADAPTJ_FIELD_REF_ID, ADAPTJ_FIELD_SIZE, ADAPTJ_FIELD_SOURCE_NAME, ADAPTJ_FIELD_STATICS, ADAPTJ_FIELD_THREAD_ENV_ID, ADAPTJ_FIELD_THREAD_ID, ADAPTJ_FIELD_THREAD_NAME, ADAPTJ_FIELD_TIMEOUT, ADAPTJ_FIELD_TOTAL_OBJECT_SPACE, ADAPTJ_FIELD_TRACES, ADAPTJ_FIELD_USED_OBJECT_SPACE, ADAPTJ_FIELD_USED_OBJECTS, ADAPTJ_FILESPLIT, ADAPTJ_ISPIPED, ADAPTJ_MAGIC, ADAPTJ_SPEC_MAGIC, VERSION_MASK
 
Constructor Summary
InstructionStartEvent()
           
InstructionStartEvent(int method_id, int offset, boolean is_true, int key, int low, int hi, int chosen_pair_index, int pairs_total)
           
 
Method Summary
 int getChosenPairIndex()
          Get chosen_pair_index.
 int getCode()
          Get code.
 int getHi()
          Get hi.
 boolean getIsTrue()
          Get is_true.
 int getKey()
          Get key.
 int getLow()
          Get low.
 int getMethodID()
          Get method_id.
 int getOffset()
          Get offset.
 int getPairsTotal()
          Get pairs_total.
 void readFromStream(java.io.DataInput in, short info)
           
 void setChosenPairIndex(int chosen_pair_index)
          Set chosen_pair_index.
 void setCode(int code)
          Set code.
 void setHi(int hi)
          Set hi.
 void setIsTrue(boolean is_true)
          Set is_true.
 void setKey(int key)
          Set key.
 void setLow(int low)
          Set low.
 void setMethodID(int method_id)
          Set method_id.
 void setOffset(int offset)
          Set offset.
 void setPairsTotal(int pairs_total)
          Set pairs_total.
 
Methods inherited from class adaptj.event.AdaptJEvent
getEnvID, getTypeID, isRequested, setEnvID, setRequested, setTypeID, setTypeID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstructionStartEvent

public InstructionStartEvent()

InstructionStartEvent

public InstructionStartEvent(int method_id,
                             int offset,
                             boolean is_true,
                             int key,
                             int low,
                             int hi,
                             int chosen_pair_index,
                             int pairs_total)
Method Detail

getMethodID

public int getMethodID()
Get method_id.

Specified by:
getMethodID in interface MethodEvent
Returns:
method_id as int.

setMethodID

public void setMethodID(int method_id)
Set method_id.

Specified by:
setMethodID in interface MethodEvent
Parameters:
method_id - the value to set.

getOffset

public int getOffset()
Get offset.

Returns:
offset as int.

setOffset

public void setOffset(int offset)
Set offset.

Parameters:
offset - the value to set.

getIsTrue

public boolean getIsTrue()
Get is_true.

Returns:
is_true as boolean.

setIsTrue

public void setIsTrue(boolean is_true)
Set is_true.

Parameters:
is_true - the value to set.

getKey

public int getKey()
Get key.

Returns:
key as int.

setKey

public void setKey(int key)
Set key.

Parameters:
key - the value to set.

getLow

public int getLow()
Get low.

Returns:
low as int.

setLow

public void setLow(int low)
Set low.

Parameters:
low - the value to set.

getHi

public int getHi()
Get hi.

Returns:
hi as int.

setHi

public void setHi(int hi)
Set hi.

Parameters:
hi - the value to set.

getChosenPairIndex

public int getChosenPairIndex()
Get chosen_pair_index.

Returns:
chosen_pair_index as int.

setChosenPairIndex

public void setChosenPairIndex(int chosen_pair_index)
Set chosen_pair_index.

Parameters:
chosen_pair_index - the value to set.

getPairsTotal

public int getPairsTotal()
Get pairs_total.

Returns:
pairs_total as int.

setPairsTotal

public void setPairsTotal(int pairs_total)
Set pairs_total.

Parameters:
pairs_total - the value to set.

getCode

public int getCode()
Get code.

Returns:
code as int.

setCode

public void setCode(int code)
Set code.

Parameters:
code - the value to set.

readFromStream

public void readFromStream(java.io.DataInput in,
                           short info)
                    throws java.io.IOException
Overrides:
readFromStream in class AdaptJEvent
java.io.IOException