com.cloudtran.replicator.manager
Class MgrReplicatorOutboundThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.cloudtran.replicator.manager.MgrReplicatorOutboundThread
All Implemented Interfaces:
Runnable

public class MgrReplicatorOutboundThread
extends Thread

This thread runs in the manager. It pulls up to 10 packetOrCmds off the Replicator's queue, shipping an array of ReplicatorPacket objects to the messaging service in the Isolator. It works single-threaded, by design. 10 packetOrCmds every millisecond or two should be quite sufficient. TBD: option of two threads here. It will halve latency? (In 10Gbps networks. Probably minimal on a 1Gbps network.)


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
static void init()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

init

public static void init()

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread