queued.sdk.java.examples
Class SimpleMonitorInteraction

java.lang.Object
  extended byqueued.sdk.java.examples.SimpleService
      extended byqueued.sdk.java.examples.SimpleMonitorQueue
          extended byqueued.sdk.java.examples.SimpleMonitorInteraction
Direct Known Subclasses:
SimpleSupervisor

public class SimpleMonitorInteraction
extends SimpleMonitorQueue

Monitors interactions.

This example activates the interaction list component and displays real-time information for interactions.

This example uses the following application blocks:


Nested Class Summary
 
Nested classes inherited from class queued.sdk.java.examples.SimpleMonitorQueue
SimpleMonitorQueue.SelectedQueueListener
 
Constructor Summary
SimpleMonitorInteraction(java.lang.String windowTitle)
          Creates a SimpleMonitorInteraction instance.
 
Method Summary
 void handleInteractionEvent(QILInteractionEvent event)
          Manages interaction events to update the interaction table and display the event information in the log panel.
 void handleQueueEvent(QILQueueEvent event)
          Handles queue events.
static void main(java.lang.String[] args)
           
 void setExampleType()
          Indicates which example is running.
 void setIxnWidgets(java.lang.String queueName, java.util.Collection added, java.util.Collection removed)
          Updates the interaction widgets associated with a queue.
 void setQueueWidgets(java.lang.String queueName)
          Updates the widgets associated with the selected queue (if needed).
 
Methods inherited from class queued.sdk.java.examples.SimpleMonitorQueue
getQueue, handleQueueSelectionAt, linkWidgetsToGui, startMonitoring, stopMonitoring
 
Methods inherited from class queued.sdk.java.examples.SimpleService
handleServiceEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMonitorInteraction

public SimpleMonitorInteraction(java.lang.String windowTitle)
Creates a SimpleMonitorInteraction instance.

Parameters:
windowTitle -
Method Detail

setExampleType

public void setExampleType()
Indicates which example is running. This method tells the OpenMediaSdkGui class which example has called the GUI, so that OpenMediaSdkGui can determine which widgets will be enabled when the GUI is created.

Overrides:
setExampleType in class SimpleMonitorQueue

setQueueWidgets

public void setQueueWidgets(java.lang.String queueName)
Updates the widgets associated with the selected queue (if needed).

Overrides:
setQueueWidgets in class SimpleMonitorQueue

setIxnWidgets

public void setIxnWidgets(java.lang.String queueName,
                          java.util.Collection added,
                          java.util.Collection removed)
Updates the interaction widgets associated with a queue.

Parameters:
queueName - the queue.
added - the interactions to be added to the table.
removed - the interaction to be removed from the table.

handleInteractionEvent

public void handleInteractionEvent(QILInteractionEvent event)
Manages interaction events to update the interaction table and display the event information in the log panel.
This method uses an InteractionEventThread which conforms to the com.genesyslab.omsdk.qil.applicationblocks.monitoring.listeners.MyQILInteractionListener application block.

See Also:
com.genesyslab.omsdk.qil.event.QILInteractionListener#handleInteractionEvent(com.genesyslab.omsdk.qil.event.QILInteractionEvent)

handleQueueEvent

public void handleQueueEvent(QILQueueEvent event)
Handles queue events. This method overloads the parent SimpleMonitorQueue.handleQueueEvent() method to listen the interaction events of a monitored queue. It also updates the interaction widgets associated with the queue.

Overrides:
handleQueueEvent in class SimpleMonitorQueue

main

public static void main(java.lang.String[] args)