|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ptp.core.AbstractJobSubmission
public abstract class AbstractJobSubmission
Abstract class to manage coordination of job submission with receipt of the corresponding event. Because model IDs are always server generated, we require some way to link a job submission with the corresponding INewJobEvent, which is done using the jobSubID attribute. However, it is often necessary to wait for the event to be received without blocking the UI. This class provides a waitFor method for this purpose. The INewJobEvent handler should set the status to SUBMITTED once the event is received.
| Nested Class Summary | |
|---|---|
static class |
AbstractJobSubmission.JobSubStatus
Status of the job submission (NOT the job itself) |
| Constructor Summary | |
|---|---|
AbstractJobSubmission(int count)
|
|
AbstractJobSubmission(String id)
|
|
| Method Summary | |
|---|---|
String |
getError()
|
String |
getId()
|
void |
setError(String error)
set the error |
void |
setStatus(AbstractJobSubmission.JobSubStatus status)
set the current status |
AbstractJobSubmission.JobSubStatus |
waitFor(org.eclipse.core.runtime.IProgressMonitor monitor)
Wait for the job state to change |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractJobSubmission(int count)
public AbstractJobSubmission(String id)
| Method Detail |
|---|
public String getError()
public String getId()
public void setError(String error)
public void setStatus(AbstractJobSubmission.JobSubStatus status)
public AbstractJobSubmission.JobSubStatus waitFor(org.eclipse.core.runtime.IProgressMonitor monitor)
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||