public interface SasManagementMBean
The SasManagementMBean
provides access to the SAS server configuration.
A SasManagementMBean
instance always manages the SAS server configuration for the currently active namespace for the client connection.
It is not necessary to get a different MBean for different namespaces.
Modifier and Type | Field and Description |
---|---|
static String |
MBEAN_NAME
The name of this MBean, equal to the string "SAS".
|
static String |
OBJECT_NAME
The JMX Object Name of this MBean.
|
Modifier and Type | Method and Description |
---|---|
void |
addServer(String server)
Add a server to the set of configured SAS servers.
|
boolean |
getAppendNodeID() |
String |
getBundlePrefixMapping(String name)
Gets a bundle prefix mapping.
|
int |
getQueueSize() |
String |
getResourceIdentifier()
Returns the SAS resource-identifier associated with events sent to SAS.
|
String |
getServer()
Deprecated.
Use
getServers instead.
Warning: will be removed |
String[] |
getServers()
Get the set of configured SAS servers
|
String |
getSystemName()
gets the current System name sent to SAS on connection
|
boolean |
isTracingEnabled()
Returns true if the SAS facility is current configured to send trace messages to SAS.
|
TabularData |
listBundlePrefixMappings()
Lists all the bundle prefix mappings
|
void |
removeBundlePrefixMapping(String name)
Removes a bundle prefix mapping.
|
boolean |
removeServer(String server)
Remove a server from the set of configured SAS servers.
|
String[] |
reportUnmappedBundles()
Get a list of all unmapped bundles present
|
void |
setAppendNodeID(boolean appendNodeID)
In order to provide SAS with a unique system name per Rhino node in the cluster
there is the option to append the node ID to system name.
|
void |
setBundlePrefixMapping(String name,
String prefix)
Adds or updates a bundle prefix mapping.
|
void |
setQueueSize(int queueSize) |
void |
setResourceIdentifier(String resourceIdentifier)
Sets the resource-identifier of the SAS resource bundle to associate with events sent to the SAS server
|
void |
setServer(String server)
Deprecated.
Use
addServer and removeServer or setServers instead.
Warning: will be removed |
void |
setServers(String[] server)
Sets the hostnames/addresses of the SAS servers the SAS facility should send trace messages to
|
void |
setSystemName(String systemName)
SystemName to use when connecting to SAS
|
void |
setTracingEnabled(boolean sasTracingEnabled,
boolean force)
Sets the state of the SAS facility
|
static final String MBEAN_NAME
The name of this MBean, equal to the string "SAS".
static final String OBJECT_NAME
The JMX Object Name of this MBean.
boolean isTracingEnabled() throws ConfigurationException
Returns true if the SAS facility is current configured to send trace messages to SAS.
ConfigurationException
- if the SAS configuration could not be read.void setTracingEnabled(boolean sasTracingEnabled, boolean force) throws ConfigurationException
Sets the state of the SAS facility
sasTracingEnabled
- if true, the SAS facility will send trace messages to the configured serverforce
- if true, ignore SLEE stateConfigurationException
- if the SAS configuration could not be read or updated.
if the SLEE is not stopped, and sasTracingEnabled is @code{False}int getQueueSize() throws ConfigurationException
ConfigurationException
void setQueueSize(int queueSize) throws ConfigurationException
ConfigurationException
String getSystemName() throws ConfigurationException
gets the current System name sent to SAS on connection
ConfigurationException
void setSystemName(String systemName) throws ConfigurationException
SystemName to use when connecting to SAS
systemName
- to use when connecting to SASConfigurationException
boolean getAppendNodeID() throws ConfigurationException
ConfigurationException
void setAppendNodeID(boolean appendNodeID) throws ConfigurationException
In order to provide SAS with a unique system name per Rhino node in the cluster there is the option to append the node ID to system name.
appendNodeID
- true if the node ID should be appended to System name. False otherwiseConfigurationException
void addServer(String server) throws ConfigurationException
Add a server to the set of configured SAS servers. Optionally, include a port in the format hostname:port
server
- Hostname or IP of the server to add.ConfigurationException
boolean removeServer(String server) throws ConfigurationException
Remove a server from the set of configured SAS servers. This must exactly match the server entry, including port if any.
server
- Hostname or IP of the server to remove.ConfigurationException
String getServer() throws ConfigurationException
getServers
instead.
Warning: will be removedReturns the hostname/address of the configured SAS server.
ConfigurationException
- if the SAS configuration could not be read.void setServer(String server) throws ConfigurationException
addServer
and removeServer
or setServers
instead.
Warning: will be removedSets the hostname/address of the SAS server the SAS facility should send trace messages to
server
- the hostname or IP address of the SAS serverConfigurationException
- if the SAS configuration could not be read or updated.void setServers(String[] server) throws ConfigurationException
Sets the hostnames/addresses of the SAS servers the SAS facility should send trace messages to
server
- the hostname or IP address of the SAS serverConfigurationException
- if the SAS configuration could not be read or updated.String[] getServers() throws ConfigurationException
Get the set of configured SAS servers
ConfigurationException
String getResourceIdentifier() throws ConfigurationException
Returns the SAS resource-identifier associated with events sent to SAS.
ConfigurationException
- if the SAS configuration could not be read.void setResourceIdentifier(String resourceIdentifier) throws ConfigurationException
Sets the resource-identifier of the SAS resource bundle to associate with events sent to the SAS server
resourceIdentifier
- the resource-identifier to associate with the SAS connection e.g. com.metaswitch.volte-tasConfigurationException
- if the SAS configuration could not be read or updated.void setBundlePrefixMapping(String name, String prefix) throws MappingAlreadyExistsException, ConfigurationException
Adds or updates a bundle prefix mapping. Prefix is a number in the range 0x0001 to 0xFFFF
name
- prefix
- MappingAlreadyExistsException
- when the specified prefix has already been associated with the target nameConfigurationException
String getBundlePrefixMapping(String name) throws ConfigurationException
Gets a bundle prefix mapping.
name
- ConfigurationException
TabularData listBundlePrefixMappings() throws ConfigurationException
Lists all the bundle prefix mappings
ConfigurationException
void removeBundlePrefixMapping(String name) throws ConfigurationException, IllegalArgumentException
Removes a bundle prefix mapping.
name
- ConfigurationException
IllegalArgumentException
String[] reportUnmappedBundles() throws ConfigurationException
Get a list of all unmapped bundles present
ConfigurationException