adaptj.event
Class CompiledMethodLoadEvent

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

public class CompiledMethodLoadEvent
extends AdaptJEvent
implements MethodEvent

An Event corresponding to the JVMPI_COMPILED_METHOD_LOAD event. This event is triggered when a method is compiled an loaded into memory by the Java VM.

Author:
Bruno Dufour
See Also:
CompiledMethodUnloadEvent, 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
CompiledMethodLoadEvent()
           
CompiledMethodLoadEvent(int method_id, byte[] code, JVMPILineno[] lineno_table)
           
 
Method Summary
 byte[] getCode()
          Get code.
 byte getCode(int index)
          Get code element at specified index.
 int getCodeSize()
          Get code_size.
 JVMPILineno[] getLinenoTable()
          Get lineno_table.
 JVMPILineno getLinenoTable(int index)
          Get lineno_table element at specified index.
 int getLinenoTableSize()
          Get lineno_table_size.
 int getMethodID()
          Get method_id.
 void readFromStream(java.io.DataInput in, short info)
           
 void setCode(byte[] code)
          Set code.
 void setCode(byte code, int index)
          Set code at the specified index.
 void setLinenoTable(JVMPILineno[] lineno_table)
          Set lineno_table.
 void setLinenoTable(JVMPILineno lineno_table, int index)
          Set lineno_table at the specified index.
 void setMethodID(int method_id)
          Set method_id.
 
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

CompiledMethodLoadEvent

public CompiledMethodLoadEvent()

CompiledMethodLoadEvent

public CompiledMethodLoadEvent(int method_id,
                               byte[] code,
                               JVMPILineno[] lineno_table)
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.

getCodeSize

public int getCodeSize()
Get code_size.

Returns:
code_size as int.

getLinenoTableSize

public int getLinenoTableSize()
Get lineno_table_size.

Returns:
lineno_table_size as int.

getCode

public byte[] getCode()
Get code.

Returns:
code as byte[].

getCode

public byte getCode(int index)
Get code element at specified index.

Parameters:
index - the index.
Returns:
code at index as byte.

setCode

public void setCode(byte[] code)
Set code.

Parameters:
code - the value to set.

setCode

public void setCode(byte code,
                    int index)
Set code at the specified index.

Parameters:
code - the value to set.
index - the index.

getLinenoTable

public JVMPILineno[] getLinenoTable()
Get lineno_table.

Returns:
lineno_table as JVMPILineno[].

getLinenoTable

public JVMPILineno getLinenoTable(int index)
Get lineno_table element at specified index.

Parameters:
index - the index.
Returns:
lineno_table at index as JVMPILineno.

setLinenoTable

public void setLinenoTable(JVMPILineno[] lineno_table)
Set lineno_table.

Parameters:
lineno_table - the value to set.

setLinenoTable

public void setLinenoTable(JVMPILineno lineno_table,
                           int index)
Set lineno_table at the specified index.

Parameters:
lineno_table - the value to set.
index - the index.

readFromStream

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