Class Server

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Server
All Implemented Interfaces:
java.lang.Runnable

public class Server
extends java.lang.Thread
implements java.lang.Runnable


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void pause()
          Pause the execution of the server
 void run()
          Migrates the process from one computer to another
 int smallestQueue()
          Return the id of the computer with the smallest Queue
 void turnoff()
          Stop the execution of the server
 
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
 

Method Detail

smallestQueue

public int smallestQueue()
Return the id of the computer with the smallest Queue

pause

public void pause()
Pause the execution of the server

turnoff

public void turnoff()
Stop the execution of the server

run

public void run()
Migrates the process from one computer to another
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread