alpha
Interface AlphaConstants

All Known Implementing Classes:
AlphaMaster, AlphaRouter, AlphaWorker

public interface AlphaConstants

This interface is used to define default constants used by the master, router and worker in the SWC2 system. All constants representing a time related value are specified in milliseconds.

Author:
Dino Klein

Field Summary
static int AC_CONNECT_TO_MASTER_INTERVAL
          how long the router waits between connection to the master
static int AC_CONTROL_PORT
          TCP port on which the master listens for commands
static int AC_DEFAULT_WORK_REQUEST_COUNT
          how many workunits a router requests by default
static int AC_ROUTER_LIST_REQUEST_INTERVAL
          how often a router updates the router list
static int AC_ROUTERS_PORT
          TCP port on which the master listens for routers
static int AC_TASKS_CLEANUP_INTERVAL
          How often the master checks for completed tasks
static int AC_WORK_REQ_DELAY
          how long a router waits between request for more work units, after the master reported no work
static int AC_WORK_UNITS_THRESHOLD
          minimum threshold of WorkUnits, before router asks for more
static int AC_WORKER_WORK_REQ_DELAY
          how long a worker waits between request for more work units, after router reported no work
static int AC_WORKERS_PORT
          TCP port on which the router listens for workers connections
 

Field Detail

AC_CONTROL_PORT

static final int AC_CONTROL_PORT
TCP port on which the master listens for commands

See Also:
Constant Field Values

AC_ROUTERS_PORT

static final int AC_ROUTERS_PORT
TCP port on which the master listens for routers

See Also:
Constant Field Values

AC_WORKERS_PORT

static final int AC_WORKERS_PORT
TCP port on which the router listens for workers connections

See Also:
Constant Field Values

AC_TASKS_CLEANUP_INTERVAL

static final int AC_TASKS_CLEANUP_INTERVAL
How often the master checks for completed tasks

See Also:
Constant Field Values

AC_CONNECT_TO_MASTER_INTERVAL

static final int AC_CONNECT_TO_MASTER_INTERVAL
how long the router waits between connection to the master

See Also:
Constant Field Values

AC_WORK_UNITS_THRESHOLD

static final int AC_WORK_UNITS_THRESHOLD
minimum threshold of WorkUnits, before router asks for more

See Also:
Constant Field Values

AC_WORK_REQ_DELAY

static final int AC_WORK_REQ_DELAY
how long a router waits between request for more work units, after the master reported no work

See Also:
Constant Field Values

AC_ROUTER_LIST_REQUEST_INTERVAL

static final int AC_ROUTER_LIST_REQUEST_INTERVAL
how often a router updates the router list

See Also:
Constant Field Values

AC_DEFAULT_WORK_REQUEST_COUNT

static final int AC_DEFAULT_WORK_REQUEST_COUNT
how many workunits a router requests by default

See Also:
Constant Field Values

AC_WORKER_WORK_REQ_DELAY

static final int AC_WORKER_WORK_REQ_DELAY
how long a worker waits between request for more work units, after router reported no work

See Also:
Constant Field Values