1 package org.umu.cops.ospep;
\r
4 * Abstract class for creating listeners for outsourcing events.
\r
6 public abstract class COPSPepOSEventListener extends Thread {
\r
8 * COPSPepOSAgent to be waked up upon event detection.
\r
10 protected COPSPepOSAgent _agent;
\r
13 * Sets the COPS agent to be waked up.
\r
14 * @param anAgent A COPSPepOSAgent
\r
16 public void setAgent(COPSPepOSAgent anAgent) {
\r
21 * This must implement event detection, and wake up
\r
22 * the COPS agent when it occurs. The steps are:
\r
24 * <li>Detect the outsourcing event</li>
\r
25 * <li>Build a <tt>Vector clientSIs</tt> from the event</li>
\r
26 * <li>Generate a <tt>COPSHandle handle</tt> for the request</li>
\r
27 * <li>Invoke <tt>_agent.dispatchEvent(handle, clientSIs)</tt></li></ul>
\r
29 public abstract void run();
\r