Interface AddressSubscriptionManagementMBean
-
public interface AddressSubscriptionManagementMBeanSIS-IN RA management interface for managing per-address 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 StringgetAddressSubscriptionsProfileTableName()Get the name of the current address subscriptions profile table in the SIS-IN RA entity.AddressSubscriptiongetSubscription(String name)Retrieves an installed address subscription from the SIS-IN RA entity.AddressSubscriptiongetSubscriptionByAddress(String address)Retrieves the subscription for the given address.AddressSubscription[]getSubscriptions()Get all installed address subscriptions.voidinstallSubscription(AddressSubscription subscription)Install a new address subscription in the SIS-IN RA entity.voidsetAddressSubscriptionsProfileTableName(String tableName)Set the name of the address subscriptions profile table in the SIS-IN RA entity.voiduninstallSubscription(String name)Uninstall an address subscription from the SIS-IN RA entity.voidupdateSubscription(AddressSubscription subscription)Update an existing address 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
-
getAddressSubscriptionsProfileTableName
String getAddressSubscriptionsProfileTableName() throws ManagementException
Get the name of the current address subscriptions profile table in the SIS-IN RA entity.- Returns:
- the name of the current address subscriptions profile table, or
nullif none has been configured. - Throws:
ManagementException- if an error occurs communicating with the management server.- See Also:
setAddressSubscriptionsProfileTableName(java.lang.String)
-
setAddressSubscriptionsProfileTableName
void setAddressSubscriptionsProfileTableName(String tableName) throws ManagementException
Set the name of the address 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 address subscriptions profile table. May benull.- Throws:
ManagementException- if an error occurs communicating with the management server.- See Also:
getAddressSubscriptionsProfileTableName()
-
installSubscription
void installSubscription(AddressSubscription subscription) throws NullPointerException, AlreadyDeployedException, DeploymentException, ManagementException
Install a new address subscription in the SIS-IN RA entity.- Parameters:
subscription- anAddressSubscriptionobject describing the originating and terminating services for an address.- Throws:
NullPointerException- ifsubscriptionisnull.AlreadyDeployedException- if an address 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 an address 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(AddressSubscription subscription) throws NullPointerException, UnrecognizedComponentException, ManagementException
Update an existing address subscription in the SIS-IN RA entity.- Parameters:
subscription- anAddressSubscriptionobject describing the originating and terminating services for an address. 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
AddressSubscription getSubscription(String name) throws NullPointerException, UnrecognizedComponentException, ManagementException
Retrieves an installed address subscription from the SIS-IN RA entity.- Parameters:
name- the name of the subscription to retrieve.- Returns:
- the address subscription.
- Throws:
NullPointerException- ifnameisnull.UnrecognizedComponentException- if the named subscription does not exist.ManagementException- if an error occurs communicating with the management server.
-
getSubscriptionByAddress
AddressSubscription getSubscriptionByAddress(String address) throws NullPointerException, ManagementException
Retrieves the subscription for the given address.- Parameters:
address- the subscribed address.- Returns:
- the subscription for the given address, or
nullif not found. - Throws:
NullPointerException- ifaddressisnull.ManagementException- if an error occurs communicating with the management server.
-
getSubscriptions
AddressSubscription[] getSubscriptions() throws ManagementException
Get all installed address subscriptions.- Returns:
- an array of
AddressSubscriptionobjects, or an empty array if there are no subscriptions installed. - Throws:
ManagementException- if an error occurs communicating with the management server.
-
-