org.kaariboga.domainserver
Class Shutdown

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.kaariboga.domainserver.Shutdown
All Implemented Interfaces:
java.lang.Runnable

public class Shutdown
extends java.lang.Thread

Shuts down the domain server, if a user hits CTRL+C


Field Summary
(package private)  DomainServer server
          Server to shut down
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ
 
Constructor Summary
Shutdown(DomainServer server)
           
 
Method Summary
 void run()
          This is called, when the program is terminated.
 
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

server

DomainServer server
Server to shut down
Constructor Detail

Shutdown

public Shutdown(DomainServer server)
Parameters:
server - A domain server, that should be shut down
Method Detail

run

public void run()
This is called, when the program is terminated. Examples: The System is going down, or a user hits CTRL+C
Overrides:
run in class java.lang.Thread