Interface TriggerManagementMBean
- 
 public interface TriggerManagementMBeanTheTriggerManagementMBeanprovides management operations for installing, uninstalling and viewing SIS trigger components installed in a SIS RA entity.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringSIS_MANAGEMENT_TYPE
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate(TriggerID id)Activate a trigger component in the SIS.voiddeactivate(TriggerID id)Deactivate a trigger component in the SIS.TriggerID[]getActiveTriggers()Get the identifiers of all activated trigger components installed in the SIS, in order of priority (highest to lowest).Object[]getDependencies(TriggerID id)Get the set of components that a given trigger component depends on.StringgetTrigger(TriggerID id)Retrieves the XML form of a trigger componentTriggerID[]getTriggers()Get the identifiers of all trigger components installed in the SIS.TriggerIDinstall(byte[] content)Installs a trigger component into the SIS.TriggerIDinstall(String url)Installs a trigger component into the SIS.booleanisActivated(TriggerID id)Determine if the specified trigger component has been activatedbooleanisInstalled(TriggerID id)Determine whether a trigger is installed in the SIS.TriggerIDreplace(byte[] content)Replaces a trigger component in the SIS.TriggerIDreplace(String url)Replaces a trigger component in the SIS.voiduninstall(TriggerID id)Uninstall a trigger component from the SIS.
 
- 
- 
- 
Field Detail- 
SIS_MANAGEMENT_TYPEstatic final String SIS_MANAGEMENT_TYPE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
installTriggerID install(String url) throws NullPointerException, MalformedURLException, AlreadyDeployedException, DeploymentException, ManagementException Installs a trigger component into the SIS. The trigger XML file is retrieved using the specified URL.- Parameters:
- url- the URL of the trigger XML file to install
- Returns:
- the TriggerIDthat identifies the installed component.
- Throws:
- NullPointerException- if- urlis- null
- MalformedURLException- if- urlis not a properly formatted URL
- AlreadyDeployedException- if a component with the same- TriggerIDis already installed
- DeploymentException- if the component's contents are not valid
- ManagementException- if the component could not be installed due to a system-level failure.
 
 - 
installTriggerID install(byte[] content) throws NullPointerException, AlreadyDeployedException, DeploymentException, ManagementException Installs a trigger component into the SIS. The trigger XML data is read from the specified byte array.- Parameters:
- content- the trigger XML content to be installed
- Returns:
- the TriggerIDthat identifies the installed component.
- Throws:
- NullPointerException- if- contentis- null
- AlreadyDeployedException- if a component with the same- TriggerIDis already installed
- DeploymentException- if the component's contents are not valid
- ManagementException- if the component could not be installed due to a system-level failure.
 
 - 
replaceTriggerID replace(String url) throws NullPointerException, MalformedURLException, DeploymentException, ManagementException Replaces a trigger component in the SIS. The trigger XML file is retrieved using the specified URL. If a trigger with the same identity exists in the SIS then it is replaced with the new trigger. If a trigger with the same identity does not exist, then this method behaves in the same way asinstall(String).- Parameters:
- url- the URL of the trigger XML file to install
- Returns:
- the TriggerIDthat identifies the reinstalled component.
- Throws:
- NullPointerException- if- urlis- null
- MalformedURLException- if- urlis not a properly formatted URL
- DeploymentException- if the component's contents are not valid
- ManagementException- if the component could not be installed due to a system-level failure.
 
 - 
replaceTriggerID replace(byte[] content) throws NullPointerException, DeploymentException, ManagementException Replaces a trigger component in the SIS. The trigger XML data is read from the specified byte array. If a trigger with the same identity exists in the SIS then it is replaced with the new trigger. If a trigger with the same identity does not exist, then this method behaves in the same way asinstall(byte[]).- Parameters:
- content- the trigger XML content to be installed
- Returns:
- the TriggerIDthat identifies the reinstalled component.
- Throws:
- NullPointerException- if- contentis- null
- DeploymentException- if the component's contents are not valid
- ManagementException- if the component could not be installed due to a system-level failure.
 
 - 
uninstallvoid uninstall(TriggerID id) throws NullPointerException, UnrecognizedComponentException, DependencyException, InvalidStateException, ManagementException Uninstall a trigger component from the SIS. The trigger must first be deactivated.- Parameters:
- id- the identifier of the component to uninstall
- Throws:
- NullPointerException- if- idis- null
- UnrecognizedComponentException- if- iddoes not match an installed component
- InvalidStateException- if the trigger is active
- DependencyException- if another installed SIS component depends on this component
- ManagementException- if the component could not be uninstalled due to a system-level failure.
 
 - 
isInstalledboolean isInstalled(TriggerID id) throws NullPointerException, ManagementException Determine whether a trigger is installed in the SIS.- Parameters:
- id- the identifier of the component.
- Returns:
- trueif the specified trigger is installed in the SIS,- falseotherwise.
- Throws:
- NullPointerException- if- idis- null.
- ManagementException- if the presence of the component could not be determined due to a system-level failure.
 
 - 
activatevoid activate(TriggerID id) throws NullPointerException, UnrecognizedComponentException, InvalidStateException, ManagementException Activate a trigger component in the SIS.- Parameters:
- id- the identifier of the trigger to activate
- Throws:
- NullPointerException- if- idis- null
- UnrecognizedComponentException- if- iddoes not match an installed component
- InvalidStateException- if the trigger is already active
- ManagementException- if the trigger could not be activated due to a system-level failure.
 
 - 
deactivatevoid deactivate(TriggerID id) throws NullPointerException, UnrecognizedComponentException, InvalidStateException, ManagementException Deactivate a trigger component in the SIS.- Parameters:
- id- the identifier of the trigger to deactivate
- Throws:
- NullPointerException- if- idis- null
- UnrecognizedComponentException- if- iddoes not match an installed component
- InvalidStateException- if the trigger is already deactivated
- ManagementException- if the trigger could not be deactivated due to a system-level failure.
 
 - 
isActivatedboolean isActivated(TriggerID id) throws NullPointerException, UnrecognizedComponentException, ManagementException Determine if the specified trigger component has been activated- Parameters:
- id- the identifier of the trigger
- Returns:
- trueif the trigger is activated, otherwise- false.
- Throws:
- NullPointerException- if- idis- null
- UnrecognizedComponentException- if- iddoes not match an installed component
- ManagementException- if the component could not be retrieved due to a system-level failure.
 
 - 
getTriggersTriggerID[] getTriggers() throws ManagementException Get the identifiers of all trigger components installed in the SIS.- Returns:
- an array of TriggerIDs
- Throws:
- ManagementException- if the identifiers could not be obtained due to a system-level failure.
 
 - 
getActiveTriggersTriggerID[] getActiveTriggers() throws ManagementException Get the identifiers of all activated trigger components installed in the SIS, in order of priority (highest to lowest).- Returns:
- an array of TriggerIDs
- Throws:
- ManagementException- if the identifiers could not be obtained due to a system-level failure.
 
 - 
getTriggerString getTrigger(TriggerID id) throws NullPointerException, UnrecognizedComponentException, ManagementException Retrieves the XML form of a trigger component- Parameters:
- id- the identifier of the component
- Returns:
- a string containing the trigger in its XML form
- Throws:
- NullPointerException- if- idis- null
- UnrecognizedComponentException- if- iddoes not match an installed component
- ManagementException- if the component could not be retrieved due to a system-level failure.
 
 - 
getDependenciesObject[] getDependencies(TriggerID id) throws NullPointerException, UnrecognizedComponentException, ManagementException Get the set of components that a given trigger component depends on. A trigger component may depend on:- Parameters:
- id- the identifier of the component.
- Returns:
- the set of dependent components.
- Throws:
- NullPointerException- if- idis- null
- UnrecognizedComponentException- if- iddoes not match an installed component
- ManagementException- if the dependencies could not be retrieved due to a system-level failure.
 
 
- 
 
-