public interface RemoteTriggerManager
extends java.rmi.Remote
TriggerManager manages all triggers in the server.TriggerManager,
Trigger,
RemoteException| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
RMINAME |
| Modifier and Type | Method and Description |
|---|---|
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. |
static final java.lang.String RMINAME
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.RemoteExceptionTrigger 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.RemoteExceptionvoid 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.RemoteExceptionvoid 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.RemoteExceptionvoid 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.RemoteExceptionRemoteExceptionboolean 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.RemoteExceptionTrigger[] 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.RemoteExceptionint size() throws java.rmi.RemoteException
RemoteTriggerManager.RemoteTriggerManager.java.rmi.RemoteException - if communication-related error occurs during RMI call execution.RemoteException