Interface CompositionManagementMBean
-
public interface CompositionManagementMBeanTheCompositionManagementMBeanprovides management operations for installing, uninstalling and viewing SIS service composition 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 StringgetComposition(CompositionID id)Retrieves the XML form of the service composition componentCompositionID[]getCompositions()Get the identifiers of all composition components installed in the SIS.intgetDebugLevel(CompositionID id)Get the fine-grained tracing debug level for a composition.Object[]getDependencies(CompositionID id)Get the set of components that a given composition component depends on.SISComponent[]getReferringComponents(CompositionID id)Get the set of components that depend on a given composition component.CompositionIDinstall(byte[] content)Installs a service composition component into the SIS.CompositionIDinstall(String url)Installs a service composition component into the SIS.booleanisAuditLoggingEnabled(CompositionID id)Determine whether audit logging is enabled for a composition.booleanisInstalled(CompositionID id)Determine whether a composition is installed in the SIS.CompositionIDreplace(byte[] content)Replaces a service composition component in the SIS.CompositionIDreplace(String url)Replaces a service composition component in the SIS.voidsetAuditLoggingEnabled(CompositionID id, boolean enabled)Set the audit logging flag for a composition.voidsetDebugLevel(CompositionID id, int debugLevel)Set the fine-grained tracing debug level for a composition.voiduninstall(CompositionID id)Uninstall a service composition component from the SIS.
-
-
-
Field Detail
-
SIS_MANAGEMENT_TYPE
static final String SIS_MANAGEMENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
install
CompositionID install(String url) throws NullPointerException, MalformedURLException, AlreadyDeployedException, DeploymentException, ManagementException
Installs a service composition component into the SIS. The composition XML file is retrieved using the specified URL.- Parameters:
url- the URL of the composition XML file to install- Returns:
- the
CompositionIDthat identifies the installed component. - Throws:
NullPointerException- ifurlisnullMalformedURLException- ifurlis not a properly formatted URLAlreadyDeployedException- if a component with the sameCompositionIDis already installedDeploymentException- if the component's contents are not validManagementException- if the component could not be installed due to a system-level failure.
-
install
CompositionID install(byte[] content) throws NullPointerException, AlreadyDeployedException, DeploymentException, ManagementException
Installs a service composition component into the SIS. The composition XML data is read from the specified byte array.- Parameters:
content- the composition XML content to be installed- Returns:
- the
CompositionIDthat identifies the installed component. - Throws:
NullPointerException- ifcontentisnullAlreadyDeployedException- if a component with the sameCompositionIDis already installedDeploymentException- if the component's contents are not validManagementException- if the component could not be installed due to a system-level failure.
-
replace
CompositionID replace(String url) throws NullPointerException, MalformedURLException, DeploymentException, ManagementException
Replaces a service composition component in the SIS. The composition XML file is retrieved using the specified URL. If a composition with the same identity exists in the SIS then it is replaced with the new composition. If a composition with the same identity does not exist, then this method behaves in the same way asinstall(String).- Parameters:
url- the URL of the composition XML file to install- Returns:
- the
CompositionIDthat 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
CompositionID replace(byte[] content) throws NullPointerException, DeploymentException, ManagementException
Replaces a service composition component in the SIS. The composition XML data is read from the specified byte array. If a composition with the same identity exists in the SIS then it is replaced with the new composition. If a composition with the same identity does not exist, then this method behaves in the same way asinstall(byte[]).- Parameters:
content- the composition XML content to be installed- Returns:
- the
CompositionIDthat 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(CompositionID id) throws NullPointerException, UnrecognizedComponentException, DependencyException, ManagementException
Uninstall a service composition component from the SIS.- Parameters:
id- the identifier of the component to uninstall- Throws:
NullPointerException- ifidisnullUnrecognizedComponentException- ifiddoes not match an installed componentDependencyException- 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(CompositionID id) throws NullPointerException, ManagementException
Determine whether a composition is installed in the SIS.- Parameters:
id- the identifier of the component.- Returns:
trueif the specified composition 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.
-
getCompositions
CompositionID[] getCompositions() throws ManagementException
Get the identifiers of all composition components installed in the SIS.- Returns:
- an array of
CompositionIDs - Throws:
ManagementException- if the identifiers could not be obtained due to a system-level failure.
-
getComposition
String getComposition(CompositionID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
Retrieves the XML form of the service composition component- Parameters:
id- the identifier of the component- Returns:
- a string containing the composition 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(CompositionID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
Get the set of components that a given composition component depends on. A composition 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.
-
getReferringComponents
SISComponent[] getReferringComponents(CompositionID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
Get the set of components that depend on a given composition component. A composition component may be referred to by:- Parameters:
id- the identifier of the component.- Returns:
- the set of referring components.
- Throws:
NullPointerException- ifidisnull.UnrecognizedComponentException- ifiddoes not match an installed component.ManagementException- if the referring components could not be retrieved due to a system-level failure.
-
getDebugLevel
int getDebugLevel(CompositionID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
Get the fine-grained tracing debug level for a composition.- Parameters:
id- the identifier for the composition.- Returns:
- the debug level for the composition.
- Throws:
NullPointerException- ifidisnull.UnrecognizedComponentException- if a composition with the specified ID is not found.ManagementException- if an error occurs communicating with the management server.- See Also:
setDebugLevel(com.opencloud.slee.resources.sis.components.CompositionID, int),ConfigurationManagementMBean.setFineGrainedTracingEnabled(boolean)
-
setDebugLevel
void setDebugLevel(CompositionID id, int debugLevel) throws NullPointerException, UnrecognizedComponentException, IllegalArgumentException, ManagementException
Set the fine-grained tracing debug level for a composition. Fine-grained tracing debug levels are given in the package summary.- Parameters:
id- the identifier for the composition.debugLevel- the debug level.- Throws:
NullPointerException- ifidisnull.UnrecognizedComponentException- if a composition with the specified ID is not found.IllegalArgumentException- ifdebugLevelis not valid.ManagementException- if an error occurs communicating with the management server.- See Also:
getDebugLevel(com.opencloud.slee.resources.sis.components.CompositionID),ConfigurationManagementMBean.setFineGrainedTracingEnabled(boolean)
-
isAuditLoggingEnabled
boolean isAuditLoggingEnabled(CompositionID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
Determine whether audit logging is enabled for a composition.If enabled, and the SIS's audit logging level is set to
AuditLevel.ALLorAuditLevel.COMPONENT, then an audit record will be logged for all calls that invoke the composition.- Parameters:
id- the identifier for the composition.- Returns:
trueif audit logging is enabled- Throws:
NullPointerException- ifidisnull.UnrecognizedComponentException- if a composition with the specified ID is not found.ManagementException- if an error occurs communicating with the management server.- See Also:
ConfigurationManagementMBean.setAuditLevel(com.opencloud.slee.resources.sis.management.AuditLevel)
-
setAuditLoggingEnabled
void setAuditLoggingEnabled(CompositionID id, boolean enabled) throws NullPointerException, UnrecognizedComponentException, ManagementException
Set the audit logging flag for a composition.If enabled, and the SIS's audit logging level is set to
AuditLevel.ALLorAuditLevel.COMPONENT, then an audit record will be logged for all calls that invoke the composition.- Parameters:
id- the identifier for the composition.enabled- boolean value to specify if audit logging should be enabled- Throws:
NullPointerException- ifidisnull.UnrecognizedComponentException- if a composition with the specified ID is not found.ManagementException- if an error occurs communicating with the management server.- See Also:
ConfigurationManagementMBean.setAuditLevel(com.opencloud.slee.resources.sis.management.AuditLevel)
-
-