Microsoft SDK for Java

IJavaEventMonitor2::
NotifyEvent2

The NotifyEvent2 method of the IJavaEventMonitor2 interface is called by the Microsoft VM to notify the profiler when an event from JVM_EVENT_TYPE2 is about to occur. The Microsoft VM passes in the event type and two unique IDs. The type of the IDs passed is dependent on the type of the event that is about to occur.

The MethodExit2 method is supported only by the IJavaEventMonitor2 interface.

Syntax

HRESULT NotifyEvent2(JVM_EVENT_TYPE2 event2, UniqueID first_event_id, UniqueID second_event_id);

Parameters

[in] event2 The JVM_EVENT_TYPE2 that is about to occur.
[in] first_event_id A UniqueID that is interpreted according to the JVM_EVENT_TYPE2 that is about to occur.
[in] second_event_id A UniqueID that is interpreted according to the JVM_EVENT_TYPE2 that is about to occur.

Remarks

The NotifyEvent2 method receives an event type passed as its first parameter along with two unique IDs to some objects. The type of the object IDs passed to NotifyEvent2 is determined by the event type. The possible event types and the associated unique IDs passed to the NotifyEvent2 method can be one of the types defined in the JVM_EVENT_TYPE2 enumeration.

JAVA_EVENT_TYPE2

Constant Value Description
JVM_EVENT_TYPE2_THREAD_SET_NAME 1025 A thread's name has been set.
JVM_EVENT_TYPE2_EXCEPTION_OCCURRED 1026 An exception occurred. This event supercedes JVM_EVENT_TYPE_EXCEPTION_OCCURRED if IJavaEventMonitor2 is implemented and JVM_EVENT_TYPE_EXCEPTION_OCCURRED will never be passed to NotifyEvent.
JVM_EVENT_TYPE2_EXCEPTION_THROWN 1027 An exception is about to be thrown.
JVM_EVENT_TYPE2_EXCEPTION_UNWIND 1028 An exception is being thrown past this frame.
JVM_EVENT_TYPE2_STACK_TRACE 1029 This event notifies a callback from GetStackTrace.
JVM_EVENT_TYPE2_INITIALIZED 1030 The Microsoft VM has fully initialized.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.