Interface ServiceKeySubscriptionManagementMBean
-
public interface ServiceKeySubscriptionManagementMBeanSIS-IN RA management interface for managing per-service-key subscriptions.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSIS_MANAGEMENT_TYPEThe type of this MBean.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetServiceKeySubscriptionsProfileTableName()Get the name of the current service key subscriptions profile table in the SIS-IN RA entity.ServiceKeySubscriptiongetSubscription(String name)Retrieves an installed service key subscription from the SIS-IN RA.ServiceKeySubscriptiongetSubscriptionByServiceKey(int serviceKey)Retrieves the subscription for the given service key.ServiceKeySubscription[]getSubscriptions()Get all installed service key subscriptions.voidinstallSubscription(ServiceKeySubscription subscription)Install a new service key subscription in the SIS-IN RA entity.voidsetServiceKeySubscriptionsProfileTableName(String tableName)Set the name of the service key subscriptions profile table in the SIS-IN RA entity.voiduninstallSubscription(String name)Uninstall a service key subscription from the SIS-IN RA entity.voidupdateSubscription(ServiceKeySubscription subscription)Update an existing service key subscription in the SIS-IN RA entity.
-
-
-
Field Detail
-
SIS_MANAGEMENT_TYPE
static final String SIS_MANAGEMENT_TYPE
The type of this MBean. This value is used as part of the MBean's Object Name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getServiceKeySubscriptionsProfileTableName
String getServiceKeySubscriptionsProfileTableName() throws ManagementException
Get the name of the current service key subscriptions profile table in the SIS-IN RA entity.- Returns:
- the name of the current service key subscriptions profile table, or
nullif none has been configured. - Throws:
ManagementException- if an error occurs communicating with the management server.- See Also:
setServiceKeySubscriptionsProfileTableName(java.lang.String)
-
setServiceKeySubscriptionsProfileTableName
void setServiceKeySubscriptionsProfileTableName(String tableName) throws ManagementException
Set the name of the service key subscriptions profile table in the SIS-IN RA entity.The SIS-IN RA's configuration must be reloaded before the configuration changes caused by this method take effect. Refer to the package summary for further details.
- Parameters:
tableName- the new name of the service key subscriptions profile table. May benull.- Throws:
ManagementException- if an error occurs communicating with the management server.- See Also:
getServiceKeySubscriptionsProfileTableName()
-
installSubscription
void installSubscription(ServiceKeySubscription subscription) throws NullPointerException, AlreadyDeployedException, DeploymentException, ManagementException
Install a new service key subscription in the SIS-IN RA entity.- Parameters:
subscription- aServiceKeySubscriptionobject describing the originating and terminating services for a service key.- Throws:
NullPointerException- ifsubscriptionisnull.AlreadyDeployedException- if a service key subscription of the same name already exists.DeploymentException- if a deployment error occurs.ManagementException- if an error occurs communicating with the management server.
-
uninstallSubscription
void uninstallSubscription(String name) throws NullPointerException, UnrecognizedComponentException, ManagementException
Uninstall a service key subscription from the SIS-IN RA entity.- Parameters:
name- the name of the subscription to remove.- Throws:
NullPointerException- ifnameisnull.UnrecognizedComponentException- if the named subscription does not exist.ManagementException- if an error occurs communicating with the management server.
-
updateSubscription
void updateSubscription(ServiceKeySubscription subscription) throws NullPointerException, UnrecognizedComponentException, ManagementException
Update an existing service key subscription in the SIS-IN RA entity.- Parameters:
subscription- aServiceKeySubscriptionobject describing the originating and terminating services for a service key. This subscription data will replace the existing data for the subscription with the namesubscription.getName().- Throws:
NullPointerException- ifsubscriptionisnull.UnrecognizedComponentException- if a subscription with the name specified bysubscription.getName()does not exist.ManagementException- if an error occurs communicating with the management server.
-
getSubscription
ServiceKeySubscription getSubscription(String name) throws NullPointerException, UnrecognizedComponentException, ManagementException
Retrieves an installed service key subscription from the SIS-IN RA.- Parameters:
name- the name of the subscription to retrieve.- Returns:
- an
ServiceKeySubscriptionobject. - Throws:
NullPointerException- ifnameisnull.UnrecognizedComponentException- if the named subscription does not exist.ManagementException- if an error occurs communicating with the management server.
-
getSubscriptionByServiceKey
ServiceKeySubscription getSubscriptionByServiceKey(int serviceKey) throws NullPointerException, ManagementException
Retrieves the subscription for the given service key.- Parameters:
serviceKey- the subscribed service key.- Returns:
- the subscription for the given service key, or
nullif not found. - Throws:
ManagementException- if an error occurs communicating with the management server.NullPointerException
-
getSubscriptions
ServiceKeySubscription[] getSubscriptions() throws ManagementException
Get all installed service key subscriptions.- Returns:
- an array of
ServiceKeySubscriptionobjects, or an empty array if there are no subscriptions installed. - Throws:
ManagementException- if an error occurs communicating with the management server.
-
-