|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFlightRecorderService
This is the interface for the JRockit Flight Recorder controller.
Implementation, if available, can be retrieved from an
IConnectionHandle.getService(Class)
| Method Summary | |
|---|---|
void |
close(IRecordingDescriptor descriptor)
Closes the recording represented by the IRecordingDescriptor. |
EventTypeMetadata[] |
getAvailableEventTypes()
|
OptionMetadata[] |
getAvailableRecordingOptions()
Returns the metadata for the available recording options. |
IRecordingDescriptor[] |
getAvailableRecordings()
Returns the available JRockit Flight Recorder recordings. |
EventTypeSetting[] |
getCurrentEventTypeSettings()
Returns the current settings for the event types. |
EventTypeSetting[] |
getEventSettings(IRecordingDescriptor recording)
Returns the event settings for the specified recording. |
Option[] |
getRecordingOptions(IRecordingDescriptor recording)
Returns the recording options for the specified recording. |
EventTemplate[] |
getServerTemplates()
|
IRecordingDescriptor |
getUpdatedRecordingDescripton(IRecordingDescriptor descriptor)
Returns the updated recording descriptor for the specified recording. |
java.io.InputStream |
openStream(IRecordingDescriptor descriptor,
boolean removeOnClose)
Opens a stream from the specified recording. |
java.io.InputStream |
openStream(IRecordingDescriptor descriptor,
java.util.Date startTime,
java.util.Date endTime,
boolean removeOnClose)
Opens a stream from the specified recording between the specified times. |
java.io.InputStream |
openStream(IRecordingDescriptor descriptor,
long time,
boolean removeOnClose)
Opens a stream from the specified recording for the past "time" milliseconds. |
IRecordingDescriptor |
start(java.util.Map recordingOptions,
EventTypeSetting[] eventSettings)
Starts a new JRockit Flight Recorder recording. |
void |
stop(IRecordingDescriptor descriptor)
Stops the recording represented by the IRecordingDescriptor. |
void |
updateEventSettings(IRecordingDescriptor descriptor,
EventTypeSetting[] settings)
Updates the event settings for the specified descriptor. |
void |
updateRecordingOptions(IRecordingDescriptor descriptor,
java.util.Map options)
Updates the recording options for the specified recording. |
| Method Detail |
|---|
IRecordingDescriptor[] getAvailableRecordings()
throws FlightRecorderException
FlightRecorderException
IRecordingDescriptor getUpdatedRecordingDescripton(IRecordingDescriptor descriptor)
throws FlightRecorderException
descriptor - the recording for which to get the recording descriptor.
FlightRecorderException
IRecordingDescriptor start(java.util.Map recordingOptions,
EventTypeSetting[] eventSettings)
throws FlightRecorderException
recordingOptions - the recording options. Use
RecordingOptionsBuilder to create.eventSettings - the event settings.
IRecordingDescriptor representing the started
recording.
FlightRecorderException - if there was a problem starting the recording.
void stop(IRecordingDescriptor descriptor)
throws FlightRecorderException
IRecordingDescriptor.
descriptor - the recording to stop.
FlightRecorderException - if there was a problem stopping the recording.
void close(IRecordingDescriptor descriptor)
throws FlightRecorderException
IRecordingDescriptor. A
closed recording will no longer be listed among the available recordings.
It's corresponding MBean will be removed.
descriptor - the recording to close.
FlightRecorderException - if there was a problem closing the recording.
OptionMetadata[] getAvailableRecordingOptions()
throws FlightRecorderException
FlightRecorderException - if there was a problem retrieving the recording options.
Option[] getRecordingOptions(IRecordingDescriptor recording)
throws FlightRecorderException
Option is immutable - call
again to get the updated settings for a particular recording.
recording - the recording for which to retrieve the Options.
Options for the specified recording.
FlightRecorderException - if there was a problem retrieving the options.
EventTypeMetadata[] getAvailableEventTypes()
throws FlightRecorderException
FlightRecorderException - if there was a problem retrieving the metadata.
EventTypeSetting[] getCurrentEventTypeSettings()
throws FlightRecorderException
FlightRecorderException - if there was a problem retrieving the settings.
EventTypeSetting[] getEventSettings(IRecordingDescriptor recording)
throws FlightRecorderException
recording - the recording for which to return the settings.
FlightRecorderException
java.io.InputStream openStream(IRecordingDescriptor descriptor,
boolean removeOnClose)
throws FlightRecorderException
GZIPInputStream.
descriptor - the recording from which to retrieve the data.removeOnClose - whether the recording should be removed when the stream is
closed or not
java.io.IOException - if there was a problem reading the recording data.
FlightRecorderException
java.io.InputStream openStream(IRecordingDescriptor descriptor,
java.util.Date startTime,
java.util.Date endTime,
boolean removeOnClose)
throws FlightRecorderException
GZIPInputStream.
Note that the dates should be in server side time. Special care should be
taken to make sure that server side time stamps are used.
descriptor - the recording from which to retrieve the data.startTime - the start time.endTime - the end time.removeOnClose - whether the recording should be removed when the stream is
closed or not
java.io.IOException - if there was a problem reading the recording data.
FlightRecorderException
java.io.InputStream openStream(IRecordingDescriptor descriptor,
long time,
boolean removeOnClose)
throws FlightRecorderException
GZIPInputStream.
descriptor - the recording from which to retrieve the data.time - the number of milliseconds of data to retrieve.removeOnClose - whether the recording should be removed when the stream is
closed or not
FlightRecorderException - if there was a problem reading the recording data.
EventTemplate[] getServerTemplates()
throws FlightRecorderException
FlightRecorderException
void updateEventSettings(IRecordingDescriptor descriptor,
EventTypeSetting[] settings)
throws FlightRecorderException
descriptor - the recording to update the event settings for.settings - the new, overriding, event settings. If null, the current
settings will be used.
FlightRecorderException
void updateRecordingOptions(IRecordingDescriptor descriptor,
java.util.Map options)
throws FlightRecorderException
descriptor - the recording to update the event settings for.options - the new options to set.
FlightRecorderException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||