public interface TriggerManagementMBean
TriggerManagementMBean provides management operations for installing,
uninstalling and viewing SIS trigger components installed in a SIS RA entity.| Modifier and Type | Field and Description |
|---|---|
static String |
SIS_MANAGEMENT_TYPE |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(TriggerID id)
Activate a trigger component in the SIS.
|
void |
deactivate(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.
|
String |
getTrigger(TriggerID id)
Retrieves the XML form of a trigger component
|
TriggerID[] |
getTriggers()
Get the identifiers of all trigger components installed in the SIS.
|
TriggerID |
install(byte[] content)
Installs a trigger component into the SIS.
|
TriggerID |
install(String url)
Installs a trigger component into the SIS.
|
boolean |
isActivated(TriggerID id)
Determine if the specified trigger component has been activated
|
boolean |
isInstalled(TriggerID id)
Determine whether a trigger is installed in the SIS.
|
TriggerID |
replace(byte[] content)
Replaces a trigger component in the SIS.
|
TriggerID |
replace(String url)
Replaces a trigger component in the SIS.
|
void |
uninstall(TriggerID id)
Uninstall a trigger component from the SIS.
|
static final String SIS_MANAGEMENT_TYPE
TriggerID install(String url) throws NullPointerException, MalformedURLException, AlreadyDeployedException, DeploymentException, ManagementException
url - the URL of the trigger XML file to installTriggerID that identifies the installed component.NullPointerException - if url is nullMalformedURLException - if url is not a properly formatted URLAlreadyDeployedException - if a component with the same TriggerID is
already installedDeploymentException - if the component's contents are not validManagementException - if the component could not be installed due to a system-level failure.TriggerID install(byte[] content) throws NullPointerException, AlreadyDeployedException, DeploymentException, ManagementException
content - the trigger XML content to be installedTriggerID that identifies the installed component.NullPointerException - if content is nullAlreadyDeployedException - if a component with the same TriggerID is
already installedDeploymentException - if the component's contents are not validManagementException - if the component could not be installed due to a system-level failure.TriggerID replace(String url) throws NullPointerException, MalformedURLException, DeploymentException, ManagementException
install(String).url - the URL of the trigger XML file to installTriggerID that identifies the reinstalled component.NullPointerException - if url is nullMalformedURLException - if url is 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.TriggerID replace(byte[] content) throws NullPointerException, DeploymentException, ManagementException
install(byte[]).content - the trigger XML content to be installedTriggerID that identifies the reinstalled component.NullPointerException - if content is nullDeploymentException - if the component's contents are not validManagementException - if the component could not be installed due to a system-level failure.void uninstall(TriggerID id) throws NullPointerException, UnrecognizedComponentException, DependencyException, InvalidStateException, ManagementException
id - the identifier of the component to uninstallNullPointerException - if id is nullUnrecognizedComponentException - if id does 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.boolean isInstalled(TriggerID id) throws NullPointerException, ManagementException
id - the identifier of the component.true if the specified trigger is installed in the SIS,
false otherwise.NullPointerException - if id is null.ManagementException - if the presence of the component could not be determined
due to a system-level failure.void activate(TriggerID id) throws NullPointerException, UnrecognizedComponentException, InvalidStateException, ManagementException
id - the identifier of the trigger to activateNullPointerException - if id is nullUnrecognizedComponentException - if id does not match an installed componentInvalidStateException - if the trigger is already activeManagementException - if the trigger could not be activated due to a system-level failure.void deactivate(TriggerID id) throws NullPointerException, UnrecognizedComponentException, InvalidStateException, ManagementException
id - the identifier of the trigger to deactivateNullPointerException - if id is nullUnrecognizedComponentException - if id does not match an installed componentInvalidStateException - if the trigger is already deactivatedManagementException - if the trigger could not be deactivated due to a system-level failure.boolean isActivated(TriggerID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
id - the identifier of the triggertrue if the trigger is activated, otherwise false.NullPointerException - if id is nullUnrecognizedComponentException - if id does not match an installed componentManagementException - if the component could not be retrieved due to a system-level failure.TriggerID[] getTriggers() throws ManagementException
TriggerIDsManagementException - if the identifiers could not be obtained due to a system-level failure.TriggerID[] getActiveTriggers() throws ManagementException
TriggerIDsManagementException - if the identifiers could not be obtained due to a system-level failure.String getTrigger(TriggerID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
id - the identifier of the componentNullPointerException - if id is nullUnrecognizedComponentException - if id does not match an installed componentManagementException - if the component could not be retrieved due to a system-level failure.Object[] getDependencies(TriggerID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
id - the identifier of the component.NullPointerException - if id is nullUnrecognizedComponentException - if id does not match an installed componentManagementException - if the dependencies could not be retrieved due to a system-level failure.