public interface ExtensionRefManagementMBean
ExtensionRefManagementMBean
provides management operations for creating,
removing, viewing, and configuring SIS extension component references installed in
a SIS RA entity.Modifier and Type | Field and Description |
---|---|
static String |
SIS_MANAGEMENT_TYPE |
Modifier and Type | Method and Description |
---|---|
void |
createServiceExtensionRef(String name,
ExtensionType extensionType,
ServiceID serviceID)
Create an extension reference in the SIS.
|
long |
getDefaultTimeout(ExtensionRefID extensionRefID)
Get the default invocation timeout for an extension reference.
|
CompositeData |
getDescriptor(ExtensionRefID extensionRefID)
Get information about an extension reference in the SIS.
|
ExtensionRefID[] |
getExtensionRefs()
Get the component identifiers of all extension references in the SIS.
|
SISComponent[] |
getReferringComponents(ExtensionRefID extensionRefID)
Get the set of components that depend on a given extension reference component.
|
void |
removeExtensionRef(ExtensionRefID extensionRefID)
Remove an extension reference from the SIS.
|
void |
replaceExtensionRef(ExtensionRefID extensionRefID,
ServiceID serviceID)
Replace an extension reference in the SIS with a new reference.
|
void |
setDefaultTimeout(ExtensionRefID extensionRefID,
long timeout)
Set the default invocation timeout for an extension reference.
|
static final String SIS_MANAGEMENT_TYPE
void createServiceExtensionRef(String name, ExtensionType extensionType, ServiceID serviceID) throws NullPointerException, AlreadyDeployedException, DeploymentException, ManagementException
name
- the name for the new extension reference. The name is used in compositions
to identify the extension to be invoked.extensionType
- the type of the extension.serviceID
- the SLEE component ID of the service implementing the extension.NullPointerException
- if any argument is null
.AlreadyDeployedException
- if the specified name is already in use in the
SIS RA entity.DeploymentException
- if the extension reference cannot be created due to a missing
dependency.ManagementException
- if the extension reference could not be created due to a
system-level-failure.void replaceExtensionRef(ExtensionRefID extensionRefID, ServiceID serviceID) throws NullPointerException, UnrecognizedComponentException, DeploymentException, ManagementException
The extension type of an extension reference cannot be changed by replacing the reference. For example, an extension reference for an interceptor extension component cannot be changed to reference a service composition selection extension component instead.
extensionRefID
- the component identifier of the extension reference to replace.serviceID
- the SLEE component ID of the service implementing the extension.NullPointerException
- if either argument is null
.UnrecognizedComponentException
- if extensionRefID
does not match a current
extension reference.DeploymentException
- if the extension reference cannot be created due to a missing
dependency.ManagementException
- if the extension reference could not be created due to a
system-level-failure.void removeExtensionRef(ExtensionRefID extensionRefID) throws NullPointerException, UnrecognizedComponentException, DependencyException, ManagementException
extensionRefID
- the component identifier of the extension reference to remove.NullPointerException
- if extensionRefID
is null
.UnrecognizedComponentException
- if extensionRefID
does not match a current
extension reference.DependencyException
- if the extension reference cannot currently be removed due
to a composition dependency on it.ManagementException
- if the extension reference could not be removed due to a
system-level failure.void setDefaultTimeout(ExtensionRefID extensionRefID, long timeout) throws NullPointerException, IllegalArgumentException, UnrecognizedComponentException, ManagementException
The minimum timeout is 100ms. A value of zero may also be specified to indicate that the SIS's global default service timeout should be used for this extension component.
extensionRefID
- the component identifier of the extension reference to update.timeout
- the timeout value, measured in milliseconds. Must be either 0
or a value equal to or greater than 100
NullPointerException
- if extensionRefID
is null
.IllegalArgumentException
- if timeout
is invalid.UnrecognizedComponentException
- if extensionRefID
does not match a current
extension reference.ManagementException
- if the extension reference could not be updated due to a
system-level failure.getDefaultTimeout(com.opencloud.slee.resources.sis.components.ExtensionRefID)
long getDefaultTimeout(ExtensionRefID extensionRefID) throws NullPointerException, UnrecognizedComponentException, ManagementException
extensionRefID
- the component identifier of the extension reference to update.NullPointerException
- if extensionRefID
is null
.UnrecognizedComponentException
- if extensionRefID
does not match a current
extension reference.ManagementException
- if the extension reference could not be interrogated due to
a system-level failuresetDefaultTimeout(com.opencloud.slee.resources.sis.components.ExtensionRefID, long)
ExtensionRefID[] getExtensionRefs() throws ManagementException
ManagementException
- if the extension references could not be obtained due to a
system-level failure.CompositeData getDescriptor(ExtensionRefID extensionRefID) throws NullPointerException, UnrecognizedComponentException, ManagementException
This method returns a CompositeData type with the following fields:
Field | Open Type | Description |
---|---|---|
name | String | The name of the extension reference. |
extension-type | String | The type of the extension component referenced, either "SCS" or "INTERCEPTOR". |
ref-type | String | The type of the extension reference. Currently only "service" is supported. |
serviceName | String | The name component of the referenced extension service component identifier. |
serviceVendor | String | The vendor component of the referenced extension service component identifier. |
serviceVersion | String | The version component of the referenced extension service component identifier. |
defaultTimeout | Long | The default timeout configured for the extension component. |
extensionRefID
- the component identifier of the extension reference.CompositeData
object as described above.NullPointerException
- if extensionRefID
is null
.UnrecognizedComponentException
- if extensionRefID
does not match a current
extension reference.ManagementException
- if the extension reference descriptor could not be obtained due
to a system-level failure.SISComponent[] getReferringComponents(ExtensionRefID extensionRefID) throws NullPointerException, UnrecognizedComponentException, ManagementException
extensionRefID
- the component identifier of the extension reference.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.