org.jboss.byteman.sample.helper
Interface ThreadHistoryMonitorHelperMXBean

All Known Implementing Classes:
ThreadHistoryMonitorHelper

public interface ThreadHistoryMonitorHelperMXBean

An MXBean interface for the thread event history monitoring.

Version:
$Revision:$
Author:
Scott stark (sstark@redhat.com) (C) 2011 Red Hat Inc.

Method Summary
 ThreadMonitorEvent[] getCreateEvents()
          Get the array of thread creation events.
 java.lang.String getEventReport()
          Get a string description of all thread events.
 ThreadMonitorEvent[] getExitEvents()
          Get the array of thread exit events.
 ThreadMonitorEvent[] getRunEvents()
          Get the array of Runnable.run events.
 ThreadMonitorEvent[] getStartEvents()
          Get the array of thread start events.
 void writeAllEventsToFile(java.lang.String path)
          Write a report of all events to the given path.
 void writeEventsToFile(java.lang.String type, java.lang.String path)
          Write a report of all events of the indicated type to the given path.
 

Method Detail

getCreateEvents

ThreadMonitorEvent[] getCreateEvents()
Get the array of thread creation events.

Returns:
the array of thread creation events in the order of occurrence.

getStartEvents

ThreadMonitorEvent[] getStartEvents()
Get the array of thread start events.

Returns:
the array of thread start events in the order of occurrence.

getExitEvents

ThreadMonitorEvent[] getExitEvents()
Get the array of thread exit events.

Returns:
the array of thread exit events in the order of occurrence.

getRunEvents

ThreadMonitorEvent[] getRunEvents()
Get the array of Runnable.run events.

Returns:
the array of Runnable.run events in the order of occurrence.

getEventReport

java.lang.String getEventReport()
                                throws java.io.IOException
Get a string description of all thread events. This is the same event information written by writeAllEventsToFile(String).

Returns:
a formatted text description of all thread events.
Throws:
java.io.IOException

writeEventsToFile

void writeEventsToFile(java.lang.String type,
                       java.lang.String path)
                       throws java.io.IOException
Write a report of all events of the indicated type to the given path.

Parameters:
type - - one of create, start, exit, run; case insensitive
path - - the pathname of the file to write the event report to.
Throws:
java.io.IOException

writeAllEventsToFile

void writeAllEventsToFile(java.lang.String path)
                          throws java.io.IOException
Write a report of all events to the given path.

Parameters:
path - - the pathname of the file to write the event report to.
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.