public interface ServiceRefManagementMBean
ServiceRefManagementMBean provides management operations for creating,
removing, viewing, and configuring SIS service references installed in a SIS RA entity.| Modifier and Type | Field and Description |
|---|---|
static String |
SIS_MANAGEMENT_TYPE |
| Modifier and Type | Method and Description |
|---|---|
ObjectName |
createExternalPlatform(String name,
ExternalAddressSelectionMode selectionMode)
Create an external platform definition in the SIS.
|
void |
createExternalServiceRef(String name,
ExternalPlatformID extPlatformID)
Create an external service reference in the SIS.
|
void |
createLocalServiceRef(String name,
ServiceID serviceID)
Create a local service reference in the SIS.
|
long |
getDefaultTimeout(ServiceRefID serviceRefID)
Get the default invocation timeout for a service reference.
|
Object[] |
getDependencies(ServiceRefID serviceRefID)
Get the set of components that a given service reference component depends on.
|
CompositeData |
getDescriptor(ServiceRefID serviceRefID)
Get information about a service reference in the SIS.
|
ObjectName |
getExternalPlatformMBean(ExternalPlatformID extPlatformID)
Get the JMX Object Name for an external platform definition.
|
ExternalPlatformID[] |
getExternalPlatforms()
Get the component identifiers of all external platform definitions in the SIS.
|
SISComponent[] |
getReferringComponents(ServiceRefID serviceRefID)
Get the set of components that depend on a given service reference component.
|
ServiceRefID[] |
getServiceRefs()
Get the component identifiers of all service references in the SIS.
|
int |
getStaticChargingPriority(ServiceRefID serviceRefID)
Get the static charging priority for a service reference.
|
void |
removeExternalPlatform(ExternalPlatformID extPlatformID)
Remove an external platform definition from the SIS.
|
void |
removeServiceRef(ServiceRefID serviceRefID)
Remove a service reference from the SIS.
|
void |
replaceServiceRef(String name,
ExternalPlatformID extPlatformID)
Replace a service reference in the SIS with a new external service reference.
|
void |
replaceServiceRef(String name,
ServiceID serviceID)
Replace a service reference in the SIS with a new local service reference.
|
void |
setDefaultTimeout(ServiceRefID serviceRefID,
long timeout)
Set the default invocation timeout for a service reference.
|
void |
setStaticChargingPriority(ServiceRefID serviceRefID,
int priority)
Set the static charging priority for a service reference.
|
static final String SIS_MANAGEMENT_TYPE
void createLocalServiceRef(String name, ServiceID serviceID) throws NullPointerException, AlreadyDeployedException, DeploymentException, ManagementException
name - the name for the new service reference. The name is used in compositions
to identify the service to be invoked.serviceID - the SLEE component ID of the local service.NullPointerException - if either argument is null.AlreadyDeployedException - if the specified name is already in use in the
SIS RA entity.DeploymentException - if the service reference cannot be created due to a missing
dependency.ManagementException - if the service reference could not be created due to a
system-level-failure.void createExternalServiceRef(String name, ExternalPlatformID extPlatformID) throws NullPointerException, AlreadyDeployedException, DeploymentException, ManagementException
name - the name for the new service reference. The name is used in compositions
to identify the service to be invoked.extPlatformID - the component identifier of the external platform definition where
the service is located.NullPointerException - if either argument is null.AlreadyDeployedException - if the specified name is already in use in the
SIS RA entity.DeploymentException - if the service reference cannot be created due to a missing
dependency.ManagementException - if the service reference could not be created due to a
system-level-failure.void replaceServiceRef(String name, ServiceID serviceID) throws NullPointerException, DeploymentException, ManagementException
createLocalServiceRef(String, ServiceID).name - the name of the service reference to be replaced.serviceID - the SLEE component ID of the local service.NullPointerException - if either argument is null.DeploymentException - if the service reference cannot be created due to a missing
dependency.ManagementException - if the service reference could not be created due to a
system-level-failure.void replaceServiceRef(String name, ExternalPlatformID extPlatformID) throws NullPointerException, DeploymentException, ManagementException
createExternalServiceRef(String, ExternalPlatformID).name - the name of the service reference to be replaced.extPlatformID - the component identifier of the external platform definition where
the service is located.NullPointerException - if either argument is null.DeploymentException - if the service reference cannot be created due to a missing
dependency.ManagementException - if the service reference could not be created due to a
system-level-failure.void removeServiceRef(ServiceRefID serviceRefID) throws NullPointerException, UnrecognizedComponentException, DependencyException, ManagementException
serviceRefID - the component identifier of the service reference to remove.NullPointerException - if serviceRefID is null.UnrecognizedComponentException - if serviceRefID does not match a current
service reference.DependencyException - if the service reference cannot currently be removed due
to a composition dependency on it.ManagementException - if the service reference could not be removed due to a
system-level failure.void setDefaultTimeout(ServiceRefID serviceRefID, 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 service.
serviceRefID - the component identifier of the service reference to update.timeout - the timeout value, measured in milliseconds. Must be either 0
or a value equal to or greater than 100NullPointerException - if serviceRefID is null.IllegalArgumentException - if timeout is invalid.UnrecognizedComponentException - if serviceRefID does not match a current
service reference.ManagementException - if the service reference could not be updated due to a
system-level failure.getDefaultTimeout(com.opencloud.slee.resources.sis.components.ServiceRefID)long getDefaultTimeout(ServiceRefID serviceRefID) throws NullPointerException, UnrecognizedComponentException, ManagementException
serviceRefID - the component identifier of the service reference to interrogate.NullPointerException - if serviceRefID is null.UnrecognizedComponentException - if serviceRefID does not match a current
service reference.ManagementException - if the service reference could not be interrogated due to
a system-level failuresetDefaultTimeout(com.opencloud.slee.resources.sis.components.ServiceRefID, long)void setStaticChargingPriority(ServiceRefID serviceRefID, int priority) throws NullPointerException, UnrecognizedComponentException, ManagementException
serviceRefID - the component identifier of the service reference to update.priority - the static charging priority. A priority X is a higher priority than
priority Y if X > Y.NullPointerException - if serviceRefID is null.UnrecognizedComponentException - if serviceRefID does not match a current
service reference.ManagementException - if the service reference could not be updated due to a
system-level failure.getStaticChargingPriority(com.opencloud.slee.resources.sis.components.ServiceRefID)int getStaticChargingPriority(ServiceRefID serviceRefID) throws NullPointerException, UnrecognizedComponentException, ManagementException
serviceRefID - the component identifier of the service reference to interrogate.NullPointerException - if serviceRefID is null.UnrecognizedComponentException - if serviceRefID does not match a current
service reference.ManagementException - if the service reference could not be interrogated due to
a system-level failuresetStaticChargingPriority(com.opencloud.slee.resources.sis.components.ServiceRefID, int)ServiceRefID[] getServiceRefs() throws ManagementException
ManagementException - if the service references could not be obtained due to a
system-level failure.CompositeData getDescriptor(ServiceRefID serviceRefID) throws NullPointerException, UnrecognizedComponentException, ManagementException
This method returns a CompositeData type with the following fields:
| Field | Open Type | Description |
|---|---|---|
| name | String | The name of the service reference. |
| type | String | The type of the service reference, either "local" or "external". |
| serviceName | String | The name component of the referenced service component identifier. This field is only present if this is a local service reference. |
| serviceVendor | String | The vendor component of the referenced service component identifier. This field is only present if this is a local service reference. |
| serviceVersion | String | The version component of the referenced service component identifier. This field is only present if this is a local service reference. |
| extPlatformName | String | The name component of the referenced external platform identifier. This field is only present if this is an external service referenced. |
| defaultTimeout | Long | The default timeout configured for the service. |
| chargingPriority | Integer | The static charging priority configured for the service. |
serviceRefID - the component identifier of the service reference.CompositeData object as described above.NullPointerException - if serviceRefID is null.UnrecognizedComponentException - if serviceRefID does not match a current
service reference.ManagementException - if the service reference descriptor could not be obtained due to
a system-level failure.Object[] getDependencies(ServiceRefID serviceRefID) throws NullPointerException, UnrecognizedComponentException, ManagementException
serviceRefID - the component identifier of the service reference.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.SISComponent[] getReferringComponents(ServiceRefID serviceRefID) throws NullPointerException, UnrecognizedComponentException, ManagementException
serviceRefID - the component identifier of the service 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.ObjectName createExternalPlatform(String name, ExternalAddressSelectionMode selectionMode) throws NullPointerException, AlreadyDeployedException, ManagementException
name - the name for the new external platform. The name is used in external
service references to identify the external platform.selectionMode - the mode which the SIS will use to select an address for the
external service each time it is invoked.ExternalPlatformManagementMBean used to manage
the external platform definition.NullPointerException - if either argument is null.AlreadyDeployedException - if the specified name is already in use in the
SIS RA entity.ManagementException - if the service reference could not be created due to a
system-level-failure.void removeExternalPlatform(ExternalPlatformID extPlatformID) throws NullPointerException, UnrecognizedComponentException, DependencyException, ManagementException
extPlatformID - the component identifier of the external platform definition to remove.NullPointerException - if extPlatformID is null.UnrecognizedComponentException - if extPlatformID does not match a current
external platform.DependencyException - if the external platform definition cannot currently be
removed due to an external service reference dependency on it.ManagementException - if the external platform definition could not be removed
due to a system-level failure.ExternalPlatformID[] getExternalPlatforms() throws ManagementException
ManagementException - if the external platform definitions could not be obtained
due to a system-level failure.ObjectName getExternalPlatformMBean(ExternalPlatformID extPlatformID) throws NullPointerException, UnrecognizedComponentException, ManagementException
extPlatformID - the component identifier of the external platform definition.ExternalPlatformManagementMBean used to manage
the external platform definition.NullPointerException - if extPlatformID is null.UnrecognizedComponentException - if extPlatformID does not match a current
external platform.ManagementException - if the Object Name of the external platform definition
could not be obtained due to a system-level failure.