|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteTriggerManager
The TriggerManager manages all triggers in the server.
TriggerManager,
Trigger,
RemoteException| Field Summary | |
|---|---|
static java.lang.String |
RMINAME
|
| Method Summary | |
|---|---|
boolean |
contains(java.lang.String triggerName)
Tests whether there is a trigger specified by triggerName in the RemoteTriggerManager. |
Trigger |
createTrigger(java.lang.String triggerName,
java.lang.String triggerDesc)
Creates a new EXTERN trigger with the specified trigger name and description in the inner collection if there is no trigger with the same name. |
void |
deleteTrigger(java.lang.String triggerName)
Deletes an existing Trigger specified by triggerName. |
void |
fire(java.lang.String triggerName,
java.util.Properties userData)
Fires a trigger with the specified name and the customer's trigger data. |
Trigger |
getTrigger(java.lang.String triggerName)
Gets an existing Trigger specified by triggerName. |
void |
setEnable(java.lang.String triggerName,
boolean enable)
Enables or disables a Trigger specified by triggerName. |
int |
size()
Gets the number of triggers in the RemoteTriggerManager. |
Trigger[] |
toArray()
Gets all triggers in the RemoteTriggerManager, and the triggers are put into an Array. |
| Field Detail |
|---|
static final java.lang.String RMINAME
| Method Detail |
|---|
Trigger createTrigger(java.lang.String triggerName,
java.lang.String triggerDesc)
throws TriggerManageException,
java.rmi.RemoteException
triggerName - The name of the trigger which you want to create.triggerDesc - The description of the trigger which you want to create.
TriggerManageException - If there is a trigger with the same name specified by triggerName already.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteException
Trigger getTrigger(java.lang.String triggerName)
throws java.rmi.RemoteException
Trigger specified by triggerName.
triggerName - The name of the trigger which you want to get.
Trigger instance if it exists, else null.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteException
void deleteTrigger(java.lang.String triggerName)
throws TriggerManageException,
java.rmi.RemoteException
Trigger specified by triggerName.
triggerName - The name of the trigger which you want to delete.
TriggerManageException - If the trigger specified by triggerName is not bound with any scheduled task,
that is to say, the trigger is not referenced, it will be deleted,
otherwise, a TriggerManageException will be thrown.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteException
void setEnable(java.lang.String triggerName,
boolean enable)
throws java.rmi.RemoteException
Trigger specified by triggerName.
An enabled trigger can be fired, but a disabled trigger cannot.
triggerName - The name of the trigger which you want to enable or disable.enable - true to enable the trigger, and false to disable the trigger.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteException
void fire(java.lang.String triggerName,
java.util.Properties userData)
throws TriggerManageException,
java.rmi.RemoteException
triggerName - The name of the trigger which you want to fire.userData - The customer's trigger data passed to the scheduled tasks. It can be used to
transfer the parameters of the reports between external system and the server.
TriggerManageException - A TriggerManagerException will be thrown if there
is no trigger specified by triggerName.
java.rmi.RemoteExceptionRemoteException
boolean contains(java.lang.String triggerName)
throws java.rmi.RemoteException
RemoteTriggerManager.
triggerName - The name of the trigger which you want to test.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteException
Trigger[] toArray()
throws java.rmi.RemoteException
RemoteTriggerManager, and the triggers are put into an Array.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteException
int size()
throws java.rmi.RemoteException
RemoteTriggerManager.
RemoteTriggerManager.
java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||