Interface TriggerManagementMBean
-
public interface TriggerManagementMBeanTheTriggerManagementMBeanprovides management operations for installing, uninstalling and viewing SIS trigger components installed in a SIS RA entity.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSIS_MANAGEMENT_TYPE
-
Method Summary
All 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_TYPE
static final String SIS_MANAGEMENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
install
TriggerID 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- ifurlisnullMalformedURLException- ifurlis not a properly formatted URLAlreadyDeployedException- if a component with the sameTriggerIDis already installedDeploymentException- if the component's contents are not validManagementException- if the component could not be installed due to a system-level failure.
-
install
TriggerID 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- ifcontentisnullAlreadyDeployedException- if a component with the sameTriggerIDis already installedDeploymentException- if the component's contents are not validManagementException- if the component could not be installed due to a system-level failure.
-
replace
TriggerID 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- ifurlisnullMalformedURLException- ifurlis not a properly formatted URLDeploymentException- if the component's contents are not validManagementException- if the component could not be installed due to a system-level failure.
-
replace
TriggerID 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- ifcontentisnullDeploymentException- if the component's contents are not validManagementException- if the component could not be installed due to a system-level failure.
-
uninstall
void 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- ifidisnullUnrecognizedComponentException- ifiddoes not match an installed componentInvalidStateException- if the trigger is activeDependencyException- if another installed SIS component depends on this componentManagementException- if the component could not be uninstalled due to a system-level failure.
-
isInstalled
boolean 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- ifidisnull.ManagementException- if the presence of the component could not be determined due to a system-level failure.
-
activate
void 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- ifidisnullUnrecognizedComponentException- ifiddoes not match an installed componentInvalidStateException- if the trigger is already activeManagementException- if the trigger could not be activated due to a system-level failure.
-
deactivate
void 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- ifidisnullUnrecognizedComponentException- ifiddoes not match an installed componentInvalidStateException- if the trigger is already deactivatedManagementException- if the trigger could not be deactivated due to a system-level failure.
-
isActivated
boolean 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, otherwisefalse.- Throws:
NullPointerException- ifidisnullUnrecognizedComponentException- ifiddoes not match an installed componentManagementException- if the component could not be retrieved due to a system-level failure.
-
getTriggers
TriggerID[] 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.
-
getActiveTriggers
TriggerID[] 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.
-
getTrigger
String 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- ifidisnullUnrecognizedComponentException- ifiddoes not match an installed componentManagementException- if the component could not be retrieved due to a system-level failure.
-
getDependencies
Object[] 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- ifidisnullUnrecognizedComponentException- ifiddoes not match an installed componentManagementException- if the dependencies could not be retrieved due to a system-level failure.
-
-