|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Job is a service to be automatically executed (time interval specification).
Field Summary |
Type | Field |
---|---|
static int |
TYPEID
The type id of this class. |
static java.lang.String |
TYPENAME
The constant class type identifier. |
Fields inherited from interface oracle.panama.model.Service |
CATEGORY_MASTER, CATEGORY_SERVICE, CATEGORY_USER_HOME |
Method Summary |
Type | Method |
---|---|
void |
addAddress(AlertAddress address)
Adds a new address to the list of addresses to send the result to. |
AlertAddress[] |
getAddresses()
Returns the list of addresses to send the result to. |
java.lang.String |
getInterval()
Gets the interval. |
java.util.Date |
getNext()
Gets the next time to run. |
boolean |
isScheduled()
Check if this job really is scheduled. |
void |
removeAddress(AlertAddress address)
Removes an address from the list of addresses to send the result to. |
void |
setAddresses(AlertAddress[] addresses)
Sets the list of addresses to send the result to. |
void |
setInterval(java.lang.String interval)
Sets the interval property (String) value. |
void |
setNext(java.util.Date next)
Set the next execution time and date. |
Methods inherited from interface oracle.panama.model.Link |
getAsyncAddress, getAsyncArguments, getAsyncName,
getInputArguments, getLanguage, getLastService,
getMergedInputArguments, getMergedOutputArguments, getNextService,
getOutputArguments, getParameterDelimiter, getServiceHelpText,
isAsyncEnabled, setAsyncAddress, setAsyncArguments,
setAsyncName, setInputArguments, setOutputArguments,
setParameterDelimiter, setServiceHelpText |
Methods inherited from interface oracle.panama.model.Service |
getAreaId, getCategory, getCost, getDescription,
getGroups, getParent, getPrimaryAudio, getPrimaryImage,
getSecondaryAudio, getSecondaryImage, getSequenceNo,
getShortName, getTransformer, getURL,
getURLPathParameter, getUserOwner, invoke,
isValid, isViewCustomizable, isVisible, removeAllGroups,
setAreaId, setCategory, setCost, setDescription,
setGroups, setParent, setPrimaryAudio,
setPrimaryImage, setSecondaryAudio, setSecondaryImage,
setSequenceNo, setShortName, setUserOwner,
setValid, setViewCustomizable, setVisible |
Methods inherited from interface oracle.panama.model.ModelObject |
delete, getCreatedDate, getId, getLastModifiedDate, getName, getTypeId,
getTypeName, isSystem, setName,
setSystem, undoAll |
Methods inherited from interface oracle.panama.model.XMLObject |
setXML, toXML |
Field Detail |
public static final java.lang.String TYPENAME
public static final int TYPEID
Method Detail |
public java.util.Date getNext()
public void setNext(java.util.Date next)
This date is when the Job will be invoked again. Note: The interval specification is used to calculate the next value each time the job is executed. But this calculated value can always be overriden by an explicit call to this method.
The time portion (hour, minute, second) of the date is valid when the system decides the exact time of day to execute this job.
If a job fails then it will be stopped, and it has to be triggered to start running again by a new call of this method again.
next
- the new next date.getNext()
,
setInterval(java.lang.String)
public java.lang.String getInterval()
setInterval(java.lang.String)
public void setInterval(java.lang.String interval)
Example:
Execute the job each weekday: "WE".
Execute the job each monday: Set the next date to a monday and specify the interval to "7D".
interval
- the new value for the property.PanamaRuntimeException
- if the format is invalid.getInterval()
,
setNext(java.util.Date)
public boolean isScheduled()
public AlertAddress[] getAddresses()
#setAddress
public void setAddresses(AlertAddress[] addresses)
addresses
- to send the result to.getAddresses()
public void addAddress(AlertAddress address)
address
- the new addressremoveAddress(oracle.panama.model.AlertAddress)
public void removeAddress(AlertAddress address)
address
- to be removedremoveAddress(oracle.panama.model.AlertAddress)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |