|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.eduvax.grant.core.TaskletManager
public class TaskletManager
| Nested Class Summary | |
|---|---|
private class |
TaskletManager.TaskletThread
Tasklet Thread wrapper. |
| Field Summary | |
|---|---|
private static TaskletJarCache |
jarCache
tasklet jar files handler. |
private static SLogger |
logger
logger |
private int |
maxRunningCount
max running task count. |
private LocalNode |
node
attached node. |
private int |
runningCount
running task count. |
private java.util.Hashtable |
runningTasklets
running tasklets list. |
static int |
SCHED_ERR_ACCESS
|
static int |
SCHED_ERR_CREATE
|
static int |
SCHED_OK
|
static int |
SCHED_OVERFLOW
|
| Constructor Summary | |
|---|---|
protected |
TaskletManager()
|
(package private) |
TaskletManager(LocalNode n)
create new tasklet manager attached to a node. |
| Method Summary | |
|---|---|
int |
getRunningCount()
|
protected static Tasklet |
prepareTasklet(ExecRequest er)
Create TaskletInstance from task URL and command args. |
private void |
report(ExecReport report)
Report task completion to attached node |
int |
schedule(ExecRequest er)
Schedule a job. |
void |
stopAll()
stop all running tasklets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SCHED_OK
public static final int SCHED_OVERFLOW
public static final int SCHED_ERR_CREATE
public static final int SCHED_ERR_ACCESS
private int runningCount
private int maxRunningCount
private java.util.Hashtable runningTasklets
private LocalNode node
private static TaskletJarCache jarCache
private static SLogger logger
| Constructor Detail |
|---|
protected TaskletManager()
TaskletManager(LocalNode n)
n - node to attache to this tasklet manager.| Method Detail |
|---|
public int getRunningCount()
public int schedule(ExecRequest er)
er - job request description.
public void stopAll()
protected static Tasklet prepareTasklet(ExecRequest er)
taskURL - tasklet download URLparams - command line arguments
private void report(ExecReport report)
report - execution report
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||