ERXJobLoadBalancer Class Reference
List of all members.
Member Function Documentation
| static void createJobs |
( |
String |
workerType, |
|
|
int |
n | |
|
) |
| | [static] |
Signals to the load balncer that the worker identified is alive Clients should call this periodically, and certainly more often than the timeout
- Parameters:
-
| workerId | which worker is alive |
- Parameters:
-
- Returns:
- the JobSet that the worker should attempt to process Given a worker looks at the shared state and determine the id space (index mod module) they should be processing
| static void main |
( |
String[] |
args |
) |
[static] |
| static void processJobs |
( |
String |
workerType, |
|
|
int |
workerNumber | |
|
) |
| | [static] |
| void setTtlForWorkerType |
( |
String |
type, |
|
|
long |
ttl | |
|
) |
| | |
Sets the timeout for a given worker type
- Parameters:
-
| type | |
| ttl | (in milliseconds) |
| File sharedRoot |
( |
|
) |
[protected] |
- Returns:
- the shared path where the state of the workers is stored
| long ttlForWorkerType |
( |
String |
type |
) |
|
- Parameters:
-
- Returns:
- the ttl for a given worker type. An instance that has not called heartbeat for more than this TTL will be considered dead by the other instances
| static void usage |
( |
|
) |
[static] |
| String workerInstanceIdentification |
( |
|
) |
|
- Returns:
- a String suitable to identify this particular worker instance !! this string is not MT safe
Member Data Documentation
final Logger log = Logger.getLogger(ERXJobLoadBalancer.class) [static, private] |
The documentation for this class was generated from the following file: