keepalive.keepalive
Class ActiveKeepAlive

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--keepalive.keepalive.KeepAlive
              |
              +--keepalive.keepalive.ActiveKeepAlive
All Implemented Interfaces:
java.lang.Runnable

public class ActiveKeepAlive
extends KeepAlive

This ActiveKeepAlive repeatedly sends out dummy messages to see if we get an IOException. (A more sophisticated version might change the frequency of the outgoing messages according to measured network parameters. This Keep-Alive can be used with another ActiveKeepAlive, with a PassiveKeepAlive, or with a NullKeepAlive on the remote side.

See Also:
PassiveKeepAlive, ActiveKeepAlive, NullKeepAlive

Fields inherited from class keepalive.keepalive.KeepAlive
ARE_YOU_THERE, endRequested, I_HEAR_YOU, TIME_BETWEEN_ACTIVE_PROBES
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ActiveKeepAlive()
          Used for dynamic classloading
ActiveKeepAlive(Sender sender)
           
 
Method Summary
 void run()
          Require the subclasses to implement run(), to prevent them from using the run() method in class Thread with a null body.
 
Methods inherited from class keepalive.keepalive.KeepAlive
end, endRequested, getDummyString, getReceiver, getSender, getSilentTimeForIncoming, setReceiver, setSender
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiveKeepAlive

public ActiveKeepAlive(Sender sender)
Parameters:
sender -  

ActiveKeepAlive

public ActiveKeepAlive()
Used for dynamic classloading
Method Detail

run

public void run()
Description copied from class: KeepAlive
Require the subclasses to implement run(), to prevent them from using the run() method in class Thread with a null body.
Overrides:
run in class KeepAlive


© 2000 Joshua Fox