alpha
Class AlphaMaster

java.lang.Object
  extended by java.lang.Thread
      extended by alpha.AlphaMaster
All Implemented Interfaces:
AlphaConstants, java.lang.Runnable

public class AlphaMaster
extends java.lang.Thread
implements AlphaConstants

AlphaMaster is the first implementation of the master server in the SWC2 system. This class performs the actions that the user requests via ControlUtil.

The command-line syntax is as follows:
AlphaMaster [-c control_port] [-r routers_port] [-p logs_path]
with the parameters reperesting the following:

Author:
Dino Klein
See Also:
AlphaRouter, ControlUtil

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface alpha.AlphaConstants
AC_CONNECT_TO_MASTER_INTERVAL, AC_CONTROL_PORT, AC_DEFAULT_WORK_REQUEST_COUNT, AC_ROUTER_LIST_REQUEST_INTERVAL, AC_ROUTERS_PORT, AC_TASKS_CLEANUP_INTERVAL, AC_WORK_REQ_DELAY, AC_WORK_UNITS_THRESHOLD, AC_WORKER_WORK_REQ_DELAY, AC_WORKERS_PORT
 
Constructor Summary
AlphaMaster(int control_port, int routers_port, java.lang.String log_dir, java.util.logging.Logger l)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void passIDModified(int TaskID)
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlphaMaster

public AlphaMaster(int control_port,
                   int routers_port,
                   java.lang.String log_dir,
                   java.util.logging.Logger l)
            throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

passIDModified

public void passIDModified(int TaskID)

run

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

main

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