public abstract class JobTracker extends Object
Modifier and Type | Field and Description |
---|---|
protected JobDatabase |
jobDatabase |
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
JobTracker() |
Modifier and Type | Method and Description |
---|---|
void |
cleanDataBase() |
void |
close() |
void |
discardAllJobs() |
void |
discardJob(String jobID) |
AwaitedJob |
getAwaitedJob(String id) |
Set<String> |
getAwaitedJobsIds() |
boolean |
isAwaitedJob(String id) |
void |
loadJobs() |
void |
putAwaitedJob(String id,
AwaitedJob aj) |
abstract void |
removeAwaitedJob(String id)
Removes from the proxy knowledge all info related with the given job.
|
abstract void |
removeAwaitedTask(String id,
String taskName)
Removes from the proxy knowledge all info related with the given task.
|
void |
setSessionName(String name) |
void |
setTaskTransferring(String id,
String taskName,
boolean transferring) |
public static final org.apache.log4j.Logger logger
protected final JobDatabase jobDatabase
public abstract void removeAwaitedJob(String id)
id
- job IDpublic abstract void removeAwaitedTask(String id, String taskName)
id
- job IDtaskName
- task namepublic void close()
public void setSessionName(String name)
public void loadJobs()
public void cleanDataBase()
public void discardAllJobs()
public void discardJob(String jobID)
public AwaitedJob getAwaitedJob(String id)
public boolean isAwaitedJob(String id)
public void putAwaitedJob(String id, AwaitedJob aj)