com.genesyslab.ail.monitor
Interface Monitor


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

getChangesBasedNotification

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.

Parameters:
insensitivity - An event will be sent only if the counter value changes by more than insensitivity.

getTimeBasedNotification

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.


peekStatus

MonitorEventStatus peekStatus(java.lang.Integer tenantDBID,
                              java.lang.String object_type,
                              java.lang.String object_id)
                              throws RequestFailedException
Returns a MonitorEventStatus value that represents the current status of the object object_id. Valid object types are IdObject.ObjectType.PERSON and IdObject.ObjectType.QUEUE.

Parameters:
object_type - uses the constants defined in IdObject.ObjectType
Throws:
RequestFailedException

peekStatus

MonitorEventStatus peekStatus(java.lang.String object_type,
                              java.lang.String object_id)
                              throws RequestFailedException
Deprecated. 

Throws:
RequestFailedException

subscribeStatus

void subscribeStatus(java.lang.Integer tenantDBID,
                     java.lang.String object_type,
                     java.lang.String object_id,
                     Notification notification,
                     MonitorListener listener)
                     throws RequestFailedException
Subscribes to the status of the object object_id. The listener listener will receive events of type MonitorEventStatus. Valid object types are IdObject.ObjectType.PERSON and IdObject.ObjectType.QUEUE.

Throws:
RequestFailedException

subscribeStatus

void subscribeStatus(java.lang.String object_type,
                     java.lang.String object_id,
                     Notification notification,
                     MonitorListener listener)
                     throws RequestFailedException
Deprecated. 

Throws:
RequestFailedException

unsubscribeStatus

void unsubscribeStatus(java.lang.Integer tenantDBID,
                       java.lang.String object_type,
                       java.lang.String object_id,
                       MonitorListener listener)
                       throws RequestFailedException
Unsubscribes status for each specified (object_type, object_id, listener) tuple.

Throws:
RequestFailedException

unsubscribeStatus

void unsubscribeStatus(java.lang.String object_type,
                       java.lang.String object_id,
                       MonitorListener listener)
                       throws RequestFailedException
Deprecated. 

Throws:
RequestFailedException