public interface CompositionManagementMBean
CompositionManagementMBean
provides management operations for installing,
uninstalling and viewing SIS service composition components installed in a SIS RA entity.Modifier and Type | Field and Description |
---|---|
static String |
SIS_MANAGEMENT_TYPE |
Modifier and Type | Method and Description |
---|---|
String |
getComposition(CompositionID id)
Retrieves the XML form of the service composition component
|
CompositionID[] |
getCompositions()
Get the identifiers of all composition components installed in the SIS.
|
int |
getDebugLevel(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.
|
CompositionID |
install(byte[] content)
Installs a service composition component into the SIS.
|
CompositionID |
install(String url)
Installs a service composition component into the SIS.
|
boolean |
isAuditLoggingEnabled(CompositionID id)
Determine whether audit logging is enabled for a composition.
|
boolean |
isInstalled(CompositionID id)
Determine whether a composition is installed in the SIS.
|
CompositionID |
replace(byte[] content)
Replaces a service composition component in the SIS.
|
CompositionID |
replace(String url)
Replaces a service composition component in the SIS.
|
void |
setAuditLoggingEnabled(CompositionID id,
boolean enabled)
Set the audit logging flag for a composition.
|
void |
setDebugLevel(CompositionID id,
int debugLevel)
Set the fine-grained tracing debug level for a composition.
|
void |
uninstall(CompositionID id)
Uninstall a service composition component from the SIS.
|
static final String SIS_MANAGEMENT_TYPE
CompositionID install(String url) throws NullPointerException, MalformedURLException, AlreadyDeployedException, DeploymentException, ManagementException
url
- the URL of the composition XML file to installCompositionID
that identifies the installed component.NullPointerException
- if url
is null
MalformedURLException
- if url
is not a properly formatted URLAlreadyDeployedException
- if a component with the same CompositionID
is
already installedDeploymentException
- if the component's contents are not validManagementException
- if the component could not be installed due to a system-level failure.CompositionID install(byte[] content) throws NullPointerException, AlreadyDeployedException, DeploymentException, ManagementException
content
- the composition XML content to be installedCompositionID
that identifies the installed component.NullPointerException
- if content
is null
AlreadyDeployedException
- if a component with the same CompositionID
is
already installedDeploymentException
- if the component's contents are not validManagementException
- if the component could not be installed due to a system-level failure.CompositionID replace(String url) throws NullPointerException, MalformedURLException, DeploymentException, ManagementException
install(String)
.url
- the URL of the composition XML file to installCompositionID
that identifies the reinstalled component.NullPointerException
- if url
is null
MalformedURLException
- 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.CompositionID replace(byte[] content) throws NullPointerException, DeploymentException, ManagementException
install(byte[])
.content
- the composition XML content to be installedCompositionID
that identifies the reinstalled component.NullPointerException
- if content
is null
DeploymentException
- if the component's contents are not validManagementException
- if the component could not be installed due to a system-level failure.void uninstall(CompositionID id) throws NullPointerException, UnrecognizedComponentException, DependencyException, ManagementException
id
- the identifier of the component to uninstallNullPointerException
- if id
is null
UnrecognizedComponentException
- if id
does 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.boolean isInstalled(CompositionID id) throws NullPointerException, ManagementException
id
- the identifier of the component.true
if the specified composition 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.CompositionID[] getCompositions() throws ManagementException
CompositionIDs
ManagementException
- if the identifiers could not be obtained due to a system-level failure.String getComposition(CompositionID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
id
- the identifier of the componentNullPointerException
- if id
is null
UnrecognizedComponentException
- if id
does not match an installed componentManagementException
- if the component could not be retrieved due to a system-level failure.Object[] getDependencies(CompositionID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
id
- the identifier of the component.NullPointerException
- if id
is null
UnrecognizedComponentException
- if id
does not match an installed componentManagementException
- if the dependencies could not be retrieved due to a system-level failure.SISComponent[] getReferringComponents(CompositionID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
id
- the identifier of the component.NullPointerException
- if id
is null
.UnrecognizedComponentException
- if id
does not match an installed component.ManagementException
- if the referring components could not be retrieved due to a system-level failure.int getDebugLevel(CompositionID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
id
- the identifier for the composition.NullPointerException
- if id
is null
.UnrecognizedComponentException
- if a composition with the specified ID is not found.ManagementException
- if an error occurs communicating with the management server.setDebugLevel(com.opencloud.slee.resources.sis.components.CompositionID, int)
,
ConfigurationManagementMBean.setFineGrainedTracingEnabled(boolean)
void setDebugLevel(CompositionID id, int debugLevel) throws NullPointerException, UnrecognizedComponentException, IllegalArgumentException, ManagementException
id
- the identifier for the composition.debugLevel
- the debug level.NullPointerException
- if id
is null
.UnrecognizedComponentException
- if a composition with the specified ID is not found.IllegalArgumentException
- if debugLevel
is not valid.ManagementException
- if an error occurs communicating with the management server.getDebugLevel(com.opencloud.slee.resources.sis.components.CompositionID)
,
ConfigurationManagementMBean.setFineGrainedTracingEnabled(boolean)
boolean isAuditLoggingEnabled(CompositionID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
If enabled, and the SIS's audit logging level is set to AuditLevel.ALL
or AuditLevel.COMPONENT
,
then an audit record will be logged for all calls that invoke the composition.
id
- the identifier for the composition.true
if audit logging is enabledNullPointerException
- if id
is null
.UnrecognizedComponentException
- if a composition with the specified ID is not found.ManagementException
- if an error occurs communicating with the management server.ConfigurationManagementMBean.setAuditLevel(com.opencloud.slee.resources.sis.management.AuditLevel)
void setAuditLoggingEnabled(CompositionID id, boolean enabled) throws NullPointerException, UnrecognizedComponentException, ManagementException
If enabled, and the SIS's audit logging level is set to AuditLevel.ALL
or AuditLevel.COMPONENT
,
then an audit record will be logged for all calls that invoke the composition.
id
- the identifier for the composition.enabled
- boolean value to specify if audit logging should be enabledNullPointerException
- if id
is null
.UnrecognizedComponentException
- if a composition with the specified ID is not found.ManagementException
- if an error occurs communicating with the management server.ConfigurationManagementMBean.setAuditLevel(com.opencloud.slee.resources.sis.management.AuditLevel)