ninja.activeproxy.path
Class OpNotifier

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ninja.activeproxy.path.OpNotifier

public class OpNotifier
extends java.lang.Thread

The OpNotifier class runs a thread which signals clients when operators appear or disappear from the currently running operators.


Field Summary
private  java.util.Vector ops
           
private  int sleepInterval
           
private  OpNotifierIF toNotify
           
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadQ, values
 
Constructor Summary
OpNotifier(OpNotifierIF notify, int sleepIterval)
          Prepare to send messages to the specified OpNotifierIF
 
Method Summary
private  java.util.Vector findMissingOperators(java.util.Vector newOps)
          Given a list of currently available operators, return the old operators which are no longer available
private  java.util.Vector findNewOperators(java.util.Vector newOps)
          Given a list of currently available operators, return the current operators which are not in the cached operator list.
 void run()
          Begin running the OpNotifier
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

toNotify

private OpNotifierIF toNotify

ops

private java.util.Vector ops

sleepInterval

private int sleepInterval
Constructor Detail

OpNotifier

public OpNotifier(OpNotifierIF notify,
                  int sleepIterval)
Prepare to send messages to the specified OpNotifierIF
Parameters:
notify - The OpNotifierIF to send messages at.
Method Detail

run

public void run()
Begin running the OpNotifier
Overrides:
run in class java.lang.Thread

findNewOperators

private java.util.Vector findNewOperators(java.util.Vector newOps)
Given a list of currently available operators, return the current operators which are not in the cached operator list.

findMissingOperators

private java.util.Vector findMissingOperators(java.util.Vector newOps)
Given a list of currently available operators, return the old operators which are no longer available