com.pentec.aserver.managed
Class Alive

java.lang.Object
  extended by java.lang.Thread
      extended by com.pentec.aserver.AServerPlugin
          extended by com.pentec.aserver.managed.Alive
All Implemented Interfaces:
java.lang.Runnable

public class Alive
extends AServerPlugin

Alive is used to determine if AServer and its children are up and functional. It is assumed that if you can talk with Alive, then everything else must be running as well.

Author:
Pender Technology

Nested Class Summary
private  class Alive.ConnectionHandler
           
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.net.ServerSocket socket
           
 
Fields inherited from class com.pentec.aserver.AServerPlugin
isOkToRun, SIG_INIT_FAILED, SIG_INITIALIZING, SIG_QUITTING, SIG_RUNNING, STATE_INIT_FAILED, STATE_INITIALIZING, STATE_QUITTING, STATE_RUNNING, STATE_STARTING, STATE_WAITING_TO_START, vPlugins
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Alive()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void run()
          The plugin does its work here
 
Methods inherited from class com.pentec.aserver.AServerPlugin
getFullyQualifiedPluginName, getNumPlugins, getPluginInstanceIdentifier, getPluginName, getPluginState, getPluginStateByName, getPluginVersion, setPluginInstanceIdentifier, signalInitFailed, signalInitializing, signalQuitting, signalRunning, startPlugin, stopPlugin, toString, writeLog, writeLog
 
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, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

socket

private java.net.ServerSocket socket
Constructor Detail

Alive

public Alive()
Method Detail

main

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

run

public void run()
Description copied from class: AServerPlugin
The plugin does its work here

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class AServerPlugin