public interface IRecorderMonitorContext
IRecorderMonitor. The context provides access to the recording
framework features. Among others, it allows a monitor to amend the current session by
adding a new set of recorders and clients.| Modifier and Type | Method and Description |
|---|---|
void |
amendSession(String description,
RecordingSessionConfiguration configuration)
Merges a new recording session configuration into to the current session.
|
long |
currentTime()
Returns a value that corresponds to the current time.
|
void |
dispatchMessage(Message message)
Dispatches a message to other recording components.
|
IRecorderLog |
getLog() |
short[] |
getRecorderIds(String recorderType)
Returns the IDs of the recorders with the specified type from the recording session
that the monitored recorder belongs to.
|
Object |
getRecorderProperty(short recorderId,
String name)
Returns a runtime property of the recorder with the specified ID.
|
ITimeReference |
getTimeReference()
Returns the time reference that allows to convert back and forth time expressed in
the recording session clock and times expressed in milliseconds.
|
IRecorderLog getLog()
void amendSession(String description, RecordingSessionConfiguration configuration)
A - (user-facing) description of the amendment.configuration - A recording session configuration that specifies the details
of the recorders and clients to be instantiated and launched in the current session.void dispatchMessage(Message message)
message.message - A message.short[] getRecorderIds(String recorderType)
Object getRecorderProperty(short recorderId, String name) throws UnsupportedPropertyException
recorderId - The Id of the recorder. This id can be obtained using
IRecorderMonitorContext.getRecorderIds(String).name - The name of the runtime property.UnsupportedPropertyException - If the property is not defined by
the recorder, or of if it is not available in the current state of the
recorder.long currentTime()
ITimeReference getTimeReference()
© Copyright IBM Corp. 2016. All rights reserved.