public interface MacroManagementMBean
MacroManagementMBean
provides management operations for installing,
uninstalling and viewing SIS macro components installed in a SIS RA entity.Modifier and Type | Field and Description |
---|---|
static String |
SIS_MANAGEMENT_TYPE |
Modifier and Type | Method and Description |
---|---|
Object[] |
getDependencies(MacroID id)
Get the set of components that a given macro component depends on.
|
String |
getMacro(MacroID id)
Retrieves the XML form of a macro component
|
MacroID[] |
getMacros()
Get the identifiers of all macro components installed in the SIS.
|
SISComponent[] |
getReferringComponents(MacroID id)
Get the set of components that depend on a given macro component.
|
MacroID |
install(byte[] content)
Installs a macro component into the SIS.
|
MacroID |
install(String url)
Installs a macro component into the SIS.
|
boolean |
isInstalled(MacroID id)
Determine whether a macro is installed in the SIS.
|
MacroID |
replace(byte[] content)
Replaces a macro component in the SIS.
|
MacroID |
replace(String url)
Replaces a macro component in the SIS.
|
void |
uninstall(MacroID id)
Uninstall a macro component from the SIS.
|
static final String SIS_MANAGEMENT_TYPE
MacroID install(String url) throws NullPointerException, MalformedURLException, AlreadyDeployedException, DeploymentException, ManagementException
url
- the URL of the macro XML file to installMacroID
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 MacroID
is
already installedDeploymentException
- if the component's contents are not validManagementException
- if the component could not be installed due to a system-level failure.MacroID install(byte[] content) throws NullPointerException, AlreadyDeployedException, DeploymentException, ManagementException
content
- the macro XML content to be installedMacroID
that identifies the installed component.NullPointerException
- if content
is null
AlreadyDeployedException
- if a component with the same MacroID
is
already installedDeploymentException
- if the component's contents are not validManagementException
- if the component could not be installed due to a system-level failure.MacroID replace(String url) throws NullPointerException, MalformedURLException, DeploymentException, ManagementException
install(String)
.url
- the URL of the macro XML file to installMacroID
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.MacroID replace(byte[] content) throws NullPointerException, DeploymentException, ManagementException
install(byte[])
.content
- the macro XML content to be installedMacroID
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(MacroID 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(MacroID id) throws NullPointerException, ManagementException
id
- the identifier of the component.true
if the specified macro 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.MacroID[] getMacros() throws ManagementException
MacroIDs
ManagementException
- if the identifiers could not be obtained due to a system-level failure.String getMacro(MacroID 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(MacroID 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(MacroID id) throws NullPointerException, UnrecognizedComponentException, ManagementException
id
- the identifier of the macro 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.