public interface IJob extends IServerResource
Note that what constitutes the job ID and description may not always even be accurate, as it's intuited under the covers using a few shopworn rules of thumb. In any case, the list is returned in the order returned from the Perforce server, and the raw fields map is assumed to contain authoritative field values.
IJob objects are currently always complete, are updateable, but not refreshable. Setter methods below will not affect the corresponding job on the Perforce server unless an update is performed.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
java.lang.String |
getId()
get job name
|
IJobSpec |
getJobSpec() |
void |
setDescription(java.lang.String description) |
void |
setId(java.lang.String id)
set job name
|
void |
setJobSpec(IJobSpec jobSpec) |
java.lang.String |
updateOnServer()
Deprecated.
use the IServerResource update method instead if possible.
|
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
java.lang.String getId()
void setId(java.lang.String id)
id
- idjava.lang.String getDescription()
void setDescription(java.lang.String description)
IJobSpec getJobSpec()
void setJobSpec(IJobSpec jobSpec)
java.lang.String updateOnServer() throws ConnectionException, RequestException, AccessException
Basically a convenience method for IServer.updateJob(job).
ConnectionException
- if the Perforce server is unreachable or is not
connected.RequestException
- if the Perforce server encounters an error during
its processing of the requestAccessException
- if the Perforce server denies access to the caller