|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrockit.mc.rjmx.flr.internal.R28FlightRecorderService
public final class R28FlightRecorderService
This is the default implementation for the IFlightRecorderService
for
JRockit R28 JVMs.
Constructor Summary | |
---|---|
R28FlightRecorderService(IConnectionHandle handle)
|
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 . |
java.lang.String |
toString()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public R28FlightRecorderService(IConnectionHandle handle)
Method Detail |
---|
public void stop(IRecordingDescriptor descriptor) throws FlightRecorderException
IFlightRecorderService
IRecordingDescriptor
.
stop
in interface IFlightRecorderService
descriptor
- the recording to stop.
FlightRecorderException
- if there was a problem stopping the recording.public void close(IRecordingDescriptor descriptor) throws FlightRecorderException
IFlightRecorderService
IRecordingDescriptor
. A
closed recording will no longer be listed among the available recordings.
It's corresponding MBean will be removed.
close
in interface IFlightRecorderService
descriptor
- the recording to close.
FlightRecorderException
- if there was a problem closing the recording.public IRecordingDescriptor start(java.util.Map recordingOptions, EventTypeSetting[] eventSettings) throws FlightRecorderException
IFlightRecorderService
start
in interface IFlightRecorderService
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.public Option[] getRecordingOptions(IRecordingDescriptor recording) throws FlightRecorderException
IFlightRecorderService
Option
is immutable - call
again to get the updated settings for a particular recording.
getRecordingOptions
in interface IFlightRecorderService
recording
- the recording for which to retrieve the Option
s.
Option
s for the specified recording.
FlightRecorderException
- if there was a problem retrieving the options.public EventTypeSetting[] getEventSettings(IRecordingDescriptor recording) throws FlightRecorderException
IFlightRecorderService
getEventSettings
in interface IFlightRecorderService
recording
- the recording for which to return the settings.
FlightRecorderException
public OptionMetadata[] getAvailableRecordingOptions() throws FlightRecorderException
IFlightRecorderService
getAvailableRecordingOptions
in interface IFlightRecorderService
FlightRecorderException
- if there was a problem retrieving the recording options.public java.lang.String toString()
toString
in class java.lang.Object
public java.io.InputStream openStream(IRecordingDescriptor descriptor, boolean removeOnClose) throws FlightRecorderException
IFlightRecorderService
GZIPInputStream
.
openStream
in interface IFlightRecorderService
descriptor
- the recording from which to retrieve the data.removeOnClose
- whether the recording should be removed when the stream is
closed or not
FlightRecorderException
public java.io.InputStream openStream(IRecordingDescriptor descriptor, java.util.Date startTime, java.util.Date endTime, boolean removeOnClose) throws FlightRecorderException
IFlightRecorderService
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.
openStream
in interface IFlightRecorderService
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
FlightRecorderException
public EventTypeMetadata[] getAvailableEventTypes() throws FlightRecorderException
getAvailableEventTypes
in interface IFlightRecorderService
FlightRecorderException
- if there was a problem retrieving the metadata.public IRecordingDescriptor[] getAvailableRecordings() throws FlightRecorderException
IFlightRecorderService
getAvailableRecordings
in interface IFlightRecorderService
FlightRecorderException
public EventTypeSetting[] getCurrentEventTypeSettings() throws FlightRecorderException
IFlightRecorderService
getCurrentEventTypeSettings
in interface IFlightRecorderService
FlightRecorderException
- if there was a problem retrieving the settings.public IRecordingDescriptor getUpdatedRecordingDescripton(IRecordingDescriptor descriptor) throws FlightRecorderException
IFlightRecorderService
getUpdatedRecordingDescripton
in interface IFlightRecorderService
descriptor
- the recording for which to get the recording descriptor.
FlightRecorderException
public EventTemplate[] getServerTemplates() throws FlightRecorderException
getServerTemplates
in interface IFlightRecorderService
FlightRecorderException
public void updateEventSettings(IRecordingDescriptor descriptor, EventTypeSetting[] settings) throws FlightRecorderException
IFlightRecorderService
updateEventSettings
in interface IFlightRecorderService
descriptor
- the recording to update the event settings for.settings
- the new, overriding, event settings. If null, the current
settings will be used.
FlightRecorderException
public void updateRecordingOptions(IRecordingDescriptor descriptor, java.util.Map options) throws FlightRecorderException
IFlightRecorderService
updateRecordingOptions
in interface IFlightRecorderService
descriptor
- the recording to update the event settings for.options
- the new options to set.
FlightRecorderException
public java.io.InputStream openStream(IRecordingDescriptor descriptor, long time, boolean removeOnClose) throws FlightRecorderException
IFlightRecorderService
GZIPInputStream
.
openStream
in interface IFlightRecorderService
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |