|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Monitor
Access point to real-time information about agents.
| Method Summary | |
|---|---|
Notification |
getChangesBasedNotification(int insensitivity)
Returns a Notification instance that represents a policy for the subscription of
events where an event is sent each time the counter value changes. |
Notification |
getTimeBasedNotification(int period)
Returns a Notification instance that represents a policy for the subscription of events
where an event is sent every period seconds. |
MonitorEventStatus |
peekStatus(java.lang.Integer tenantDBID,
java.lang.String object_type,
java.lang.String object_id)
Returns a MonitorEventStatus value that represents the current status of the object
object_id. |
MonitorEventStatus |
peekStatus(java.lang.String object_type,
java.lang.String object_id)
Deprecated. |
void |
subscribeStatus(java.lang.Integer tenantDBID,
java.lang.String object_type,
java.lang.String object_id,
Notification notification,
MonitorListener listener)
Subscribes to the status of the object object_id. |
void |
subscribeStatus(java.lang.String object_type,
java.lang.String object_id,
Notification notification,
MonitorListener listener)
Deprecated. |
void |
unsubscribeStatus(java.lang.Integer tenantDBID,
java.lang.String object_type,
java.lang.String object_id,
MonitorListener listener)
Unsubscribes status for each specified (object_type, object_id, listener) tuple. |
void |
unsubscribeStatus(java.lang.String object_type,
java.lang.String object_id,
MonitorListener listener)
Deprecated. |
| Method Detail |
|---|
Notification getChangesBasedNotification(int insensitivity)
Notification instance that represents a policy for the subscription of
events where an event is sent each time the counter value changes.
insensitivity - An event will be sent only if the counter value changes by more than
insensitivity.Notification getTimeBasedNotification(int period)
Notification instance that represents a policy for the subscription of events
where an event is sent every period seconds.
MonitorEventStatus peekStatus(java.lang.Integer tenantDBID,
java.lang.String object_type,
java.lang.String object_id)
throws RequestFailedException
MonitorEventStatus value that represents the current status of the object
object_id. Valid object types are IdObject.ObjectType.PERSON and IdObject.ObjectType.QUEUE.
object_type - uses the constants defined in IdObject.ObjectType
RequestFailedException
MonitorEventStatus peekStatus(java.lang.String object_type,
java.lang.String object_id)
throws RequestFailedException
RequestFailedException
void subscribeStatus(java.lang.Integer tenantDBID,
java.lang.String object_type,
java.lang.String object_id,
Notification notification,
MonitorListener listener)
throws RequestFailedException
object_id. The listener listener will receive events of type MonitorEventStatus. Valid object types are IdObject.ObjectType.PERSON and IdObject.ObjectType.QUEUE.
RequestFailedException
void subscribeStatus(java.lang.String object_type,
java.lang.String object_id,
Notification notification,
MonitorListener listener)
throws RequestFailedException
RequestFailedException
void unsubscribeStatus(java.lang.Integer tenantDBID,
java.lang.String object_type,
java.lang.String object_id,
MonitorListener listener)
throws RequestFailedException
RequestFailedException
void unsubscribeStatus(java.lang.String object_type,
java.lang.String object_id,
MonitorListener listener)
throws RequestFailedException
RequestFailedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||