|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.util.EventObject
|
+--com.bea.jvm.event.GarbageCollectionEvent
Event delivered _after_ a GC is done.
| Field Summary | |
static int |
GC_COLLECTION_MAJOR
A major GC round was completed. |
static int |
GC_COLLECTION_MINOR
A minor GC round was completed. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
GarbageCollectionEvent(GarbageCollector gc,
int eventType)
Constructor. |
|
GarbageCollectionEvent(GarbageCollector gc,
int type,
long start,
long end)
Constructor. |
|
| Method Summary | |
long |
getEndTime()
Returns the end time of the collection. |
int |
getEventType()
Returns the type of collection performed. |
GarbageCollector |
getGarbageCollector()
Returns a reference to the GarbageCollector that performed the GC or switch. |
long |
getStartTime()
Returns the start time of the collection. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int GC_COLLECTION_MAJOR
public static final int GC_COLLECTION_MINOR
| Constructor Detail |
public GarbageCollectionEvent(GarbageCollector gc,
int eventType)
gc - the source of the event.eventType - the event type. System.gc() or memory allocation).
public GarbageCollectionEvent(GarbageCollector gc,
int type,
long start,
long end)
gc - the source of the event.type - the event type.start - time when GC was started.end - time when GC was completed.| Method Detail |
public int getEventType()
GC_COLLECTION_MAJOR,
GC_COLLECTION_MINORpublic GarbageCollector getGarbageCollector()
public long getStartTime()
public long getEndTime()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||