Summary: This section presents the design and use of the Monitoring Application Blocks.
The Monitoring Application Block provides a set of classes that you can use to implement a monitoring application. Each class shows how to implement a QIL feature.
Figure 3.1. Class Diagram of the Monitoring Application Block
Table 3.1 describes each of the components in Figure 3.1.
Class Names |
Description |
ConnectorQIL |
Implements the connection to the Genesys Framework for a QIL application. |
MyQILQueueListener |
Monitor queue events. |
MyQILInteractionListener |
Monitor interaction events. |
GetBusinessAttribute |
Retrieve QIL data. |
AdHocManagement |
Shows how to implement a QIL AdHoc application. |
This section shows how to make use of the AdHocManagement
classes of
the Monitoring Application Block.
The following code snippet change the QIL operational mode to supervisor, and then lock a QIL interaction.
AdHocManagement mAdHocManagement
= new AdHocManagement();
try {
mAdHocManagement.changeOperationMode(isSupervisorCb.isSelected());
} catch (QILUnsuccessfulModeChangeException e) {
e.printStackTrace();
System.out.println("Cannot change operation mode " + e);
}
try {
mAdHocManagement.lock("Queue ID", "IxnID", "Lock
Reason", "Lock Code");
} catch (QILRequestFailedException e) {
e.printStackTrace();
System.out.println("Cannot lock interaction " + e);
}