|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Trigger
Triggers are managed as a kind of reusable resources in the server. A trigger can be bound with one or multiple scheduled tasks. User can fire a trigger to activate the scheduled tasks bound with it to run when the trigger is enabled.
User can create a trigger with the createTrigger
method in TriggerManager
.
TriggerManager.createTrigger(java.lang.String, java.lang.String)
Field Summary | |
---|---|
static int |
CRONAT
The type of trigger. |
static java.lang.String |
EVENT_NAME
The property of the event name: Trigger (value="TRIGGER_FIRE"). |
static int |
EXTERN
The type of trigger. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Retrieves description of a trigger. |
java.lang.String |
getName()
Retrieves the name of a trigger. |
long |
getPrevFireTime()
Retrieves the last fired time. |
int |
getReferenced()
Returns referenced count, which is the count of scheduled tasks bound with the trigger. |
boolean |
isEnable()
Returns whether the trigger is enabled. |
Field Detail |
---|
static final java.lang.String EVENT_NAME
static final int CRONAT
static final int EXTERN
Method Detail |
---|
java.lang.String getName()
Trigger name is exclusive, and the trigger manager use trigger name to distinguish and manage triggers.
java.lang.String getDescription()
The description of a trigger is to help user remember a trigger, and is not mandatory.
null
.boolean isEnable()
long getPrevFireTime()
If the trigger has never been fired, this method will return -1L.
int getReferenced()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |