|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.latencybusters.lbm.LBMMonitorSource
public class LBMMonitorSource
LBMMonitorSource class.
Constructor Summary | |
---|---|
LBMMonitorSource(int formatter,
java.lang.String formatOpts,
int transport,
java.lang.String transportOpts)
Create an LBM Monitoring Source Controller. |
Method Summary | |
---|---|
void |
close()
Destroy a source monitoring controller. |
protected void |
finalize()
|
void |
sample()
Gather statistics for on-demand objects. |
void |
start(LBMContext lbmctx,
java.lang.String appSourceId,
int secs)
Register a context for monitoring. |
void |
start(LBMEventQueue lbmevq,
java.lang.String appSourceId,
int secs)
Register an event queue for monitoring. |
void |
start(LBMReceiver lbmrcv,
java.lang.String appSourceId,
int secs)
Register a receiver for monitoring. |
void |
start(LBMSource lbmsrc,
java.lang.String appSourceId,
int secs)
Register a source for monitoring. |
void |
stop(LBMContext lbmctx)
Terminate monitoring for a context. |
void |
stop(LBMEventQueue lbmevq)
Terminate monitoring for an event queue. |
void |
stop(LBMReceiver lbmrcv)
Terminate monitoring for a receiver. |
void |
stop(LBMSource lbmsrc)
Terminate monitoring for a source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LBMMonitorSource(int formatter, java.lang.String formatOpts, int transport, java.lang.String transportOpts) throws LBMException
formatter
- Format module typeformatOpts
- A block of data which is passed to the format
module's initialization function. This may be used to pass
configuration options to the format module.transport
- Transport module typetransportOpts
- A block of data which is passed to the transport
module's initialization function. This may be used to pass
configuration options to the transport module.
LBMException
- if any error occurs creating the monitor source.close()
Method Detail |
---|
protected void finalize() throws LBMException
finalize
in class java.lang.Object
LBMException
public void close() throws LBMException
LBMException
- if any error occurs destroying the monitor source.public void start(LBMContext lbmctx, java.lang.String appSourceId, int secs) throws LBMException
If monitoring is to be used as a form of heartbeat, the preferred method is to call the sample() method from a context thread or event queue timer callback. This ensures that the object actually processing the messages is the one generating the monitoring statistics, guaranteeing that it is truly acting as a heartbeat mechanism.
lbmctx
- LBMContext to be monitoredappSourceId
- String containing an application-specified source
identifier. If null or an empty string is passed, the application
name will be used.secs
- Interval (in seconds) at which monitoring information will
be gathered and sent. If zero, the context will not be automatically
monitored, but instead will be monitored upon a call to the sample()
method.
LBMException
- if any error occurs enabling monitoring for the context.public void start(LBMReceiver lbmrcv, java.lang.String appSourceId, int secs) throws LBMException
If monitoring is to be used as a form of heartbeat, the preferred method is to call the sample() method from a context thread or event queue timer callback. This ensures that the object actually processing the messages is the one generating the monitoring statistics, guaranteeing that it is truly acting as a heartbeat mechanism.
lbmrcv
- LBMReceiver to be monitoredappSourceId
- String containing an application-specified source
identifier. If null or an empty string is passed, the application
name will be used.secs
- Interval (in seconds) at which monitoring information will
be gathered and sent. If zero, the receiver will not be automatically
monitored, but instead will be monitored upon a call to the sample()
method.
LBMException
- if any error occurs enabling monitoring for the receiver.public void start(LBMSource lbmsrc, java.lang.String appSourceId, int secs) throws LBMException
If monitoring is to be used as a form of heartbeat, the preferred method is to call the sample() method from a context thread or event queue timer callback. This ensures that the object actually processing the messages is the one generating the monitoring statistics, guaranteeing that it is truly acting as a heartbeat mechanism.
lbmsrc
- LBMSource to be monitoredappSourceId
- String containing an application-specified source
identifier. If null or an empty string is passed, the application
name will be used.secs
- Interval (in seconds) at which monitoring information will
be gathered and sent. If zero, the source will not be automatically
monitored, but instead will be monitored upon a call to the sample()
method.
LBMException
- if any error occurs enabling monitoring for the source.public void start(LBMEventQueue lbmevq, java.lang.String appSourceId, int secs) throws LBMException
If monitoring is to be used as a form of heartbeat, the preferred method is to call the sample() method from a context thread or event queue timer callback. This ensures that the object actually processing the messages is the one generating the monitoring statistics, guaranteeing that it is truly acting as a heartbeat mechanism.
lbmevq
- LBMEventQueue to be monitoredappSourceId
- String containing an application-specified source
identifier. If null or an empty string is passed, the application
name will be used.secs
- Interval (in seconds) at which monitoring information will
be gathered and sent. If zero, the source will not be automatically
monitored, but instead will be monitored upon a call to the sample()
method.
LBMException
- if any error occurs enabling monitoring for the event queue.public void stop(LBMContext lbmctx) throws LBMException
lbmctx
- Previously registered LBMContext
LBMException
- if any error occurs disabling monitoring for the context.public void stop(LBMReceiver lbmrcv) throws LBMException
lbmrcv
- Previously registered LBMReceiver
LBMException
- if any error occurs disabling monitoring for the receiver.public void stop(LBMSource lbmsrc) throws LBMException
lbmsrc
- Previously registered LBMSource
LBMException
- if any error occurs disabling monitoring for the source.public void stop(LBMEventQueue lbmevq) throws LBMException
lbmevq
- Previously registered LBMEventQueue
LBMException
- if any error occurs disabling monitoring for the event queue.public void sample() throws LBMException
LBMException
- if any error occurs gathering statistics.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |