|
|||||||||
| 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 resource in server. A trigger can be bound into scheduled tasks, user can fire a trigger to active scheduled tasks.
Users can through TriggerManager to create a trigger.
TriggerManager.createTrigger(java.lang.String, java.lang.String)| Field Summary | |
|---|---|
static int |
CRONAT
Trigger is fired by TriggerManager from inner according a cron condition. |
static java.lang.String |
EVENT_NAME
|
static int |
EXTERN
Trigger is fired by customer from outer according customer's condition. |
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Retrives description of a trigger. |
java.lang.String |
getName()
Retrieves name of a trigger. |
long |
getPrevFireTime()
Retrieves the last time fired time. |
int |
getReferenced()
Returns referenced count |
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, the trigger manager use trigger name to distinguish triggers and manages triggers.
java.lang.String getDescription()
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 | ||||||||