public interface NetworkInterfaceManagementMXBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE |
Modifier and Type | Method and Description |
---|---|
NetworkRouteMXBean |
addDefaultRoute(java.lang.String interfaceName)
Add a default route to the SIP Servlet RA.
|
NetworkRouteMXBean |
addRoute(java.lang.String rule,
java.lang.String interfaceName,
int position)
Add a new network route to the SIP Servlet RA.
|
NetworkInterfaceDefinitionMXBean |
createNetworkInterfaceDefinition(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> properties)
Create a new network interface definition in the SIP Servlet RA.
|
void |
disableNetworkInterface(java.lang.String name)
Disable the network interface on this SIP Servlet RA instance.
|
void |
enableNetworkInterface(java.lang.String name)
Enable the network interface on this SIP Servlet RA instance.
|
NetworkRouteMXBean |
getDefaultRoute()
Get the JMX Object Name for the default network route.
|
java.lang.String[] |
getEnabledNetworkInterfaces()
Get the interfaces that are currently enabled on this SIP Servlet RA instance.
|
NetworkInterfaceDefinitionMXBean |
getNetworkInterfaceDefinition(java.lang.String name)
Get the JMX Object Name for a network interface definition.
|
java.lang.String[] |
getNetworkInterfaceDefinitions()
Get the names of all network interfaces currently configured in the SIP Servlet RA.
|
NetworkRouteMXBean |
getRoute(int position)
Get the JMX Object Name for a network route.
|
RouteDescriptor[] |
getRoutes()
Get information about network routes in the RA.
|
java.util.Map<java.lang.String,java.lang.String> |
getSupportedNetworkInterfaceProperties()
Get the network interface properties that are supported by this SIP Servlet RA instance.
|
void |
removeDefaultRoute()
Remove a default route from the SIS.
|
void |
removeNetworkInterfaceDefinition(java.lang.String name)
Remove a network interface definition from the SIP Servlet RA.
|
void |
removeRoute(int position)
Remove an existing network route from the SIP Servlet RA.
|
static final java.lang.String TYPE
NetworkInterfaceDefinitionMXBean createNetworkInterfaceDefinition(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties) throws java.lang.NullPointerException, javax.slee.management.AlreadyDeployedException, javax.slee.resource.InvalidConfigurationException, javax.slee.management.ManagementException
name
- a unique name for the interface.properties
- a map of property names and values.NetworkInterfaceDefinitionMXBean
used to manage the network interface definition.java.lang.NullPointerException
- if any argument is null
.javax.slee.management.AlreadyDeployedException
- if an interface with the same name is already defined.javax.slee.resource.InvalidConfigurationException
- if the SIP Servlet RA instance determines that the network
interface configuration is not valid.javax.slee.management.ManagementException
- if the interface could not be created due to a system-level failure.NetworkInterfaceDefinitionMXBean getNetworkInterfaceDefinition(java.lang.String name) throws java.lang.NullPointerException, javax.slee.UnrecognizedComponentException, javax.slee.management.ManagementException
name
- the network interface name.NetworkInterfaceDefinitionMXBean
used to manage the network interface definition.java.lang.NullPointerException
- if name
is null
.javax.slee.UnrecognizedComponentException
- if the interface name is not known.javax.slee.management.ManagementException
- if the Object Name for the interface could not be obtained due to a system-level failure.void removeNetworkInterfaceDefinition(java.lang.String name) throws java.lang.NullPointerException, javax.slee.UnrecognizedComponentException, javax.slee.InvalidStateException, javax.slee.management.ManagementException
name
- the network interface name.java.lang.NullPointerException
- if name
is null
.javax.slee.UnrecognizedComponentException
- if the interface name is not known.javax.slee.InvalidStateException
- if the interface cannot be removed because it is enabled on a SIP Servlet RA instance.javax.slee.management.ManagementException
- if the interface could not be removed due to a system-level failure.java.lang.String[] getNetworkInterfaceDefinitions() throws javax.slee.management.ManagementException
javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.void enableNetworkInterface(java.lang.String name) throws java.lang.NullPointerException, javax.slee.UnrecognizedComponentException, javax.slee.InvalidStateException, javax.slee.management.ManagementException
When this method is called, the SIP Servlet RA will verify the interface's properties, and throw InvalidConfigurationException
if any properties are not valid.
The SIP Servlet RA does not necessarily begin using the interface immediately - it may be necessary to reactivate the SIP Servlet RA before it can use the interface. See the SIS implementation's documentation for more information.
name
- the network interface name.java.lang.NullPointerException
- if name
is null
.javax.slee.UnrecognizedComponentException
- if the interface name is not known.javax.slee.InvalidStateException
- if the interface is already enabled on this SIP Servlet RA instance; or if it is enabled
on another SIP Servlet RA instance; or the SIP Servlet RA cannot enable the interface in its current state.javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.void disableNetworkInterface(java.lang.String name) throws java.lang.NullPointerException, javax.slee.UnrecognizedComponentException, javax.slee.InvalidStateException, javax.slee.management.ManagementException
name
- the network interface name.java.lang.NullPointerException
- if name
is null
.javax.slee.UnrecognizedComponentException
- if the interface name is not known.javax.slee.InvalidStateException
- if the SIP Servlet RA cannot disable the interface in its current state.javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.java.lang.String[] getEnabledNetworkInterfaces() throws javax.slee.management.ManagementException
javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.java.util.Map<java.lang.String,java.lang.String> getSupportedNetworkInterfaceProperties() throws javax.slee.management.ManagementException
This method returns a map where each key is a supported property
name, and the corresponding value is a String
description of that property.
javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.NetworkRouteMXBean addRoute(java.lang.String rule, java.lang.String interfaceName, int position) throws java.lang.NullPointerException, javax.slee.InvalidArgumentException, javax.slee.UnrecognizedComponentException, javax.slee.management.AlreadyDeployedException, javax.slee.InvalidStateException, javax.slee.management.ManagementException
Rules are of the format "<type> [<value>]":
rule
- the rule to match for this route to be selected.interfaceName
- the name of the network interface to be used if this route is selected.position
- the list position to insert the route. A value less than or equal to zero
inserts the new route at the beginning of the list. A value greater than or equal to
the current number of routes adds the new route to the end of the list.NetworkRouteMXBean
used to manage the network route.java.lang.NullPointerException
- if rule
or interfaceName
is null
.javax.slee.InvalidArgumentException
- if the rule is invalid.javax.slee.UnrecognizedComponentException
- if the interface name is not known.javax.slee.management.AlreadyDeployedException
- if an identical route already exists in the routing table.javax.slee.InvalidStateException
- if the specified network interface is not enabled on this SIP Servlet RA instance.javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.NetworkRouteMXBean getRoute(int position) throws javax.slee.UnrecognizedComponentException, javax.slee.management.ManagementException
position
- the route list position to get.NetworkRouteMXBean
used to manage the network route.javax.slee.UnrecognizedComponentException
- if a route does not exist in the specified position.javax.slee.management.ManagementException
- if the Object Name for the route could not be obtained due to a system-level failure.void removeRoute(int position) throws javax.slee.InvalidArgumentException, javax.slee.management.ManagementException
position
- the route list position to remove.javax.slee.InvalidArgumentException
- if an invalid position is specified.javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.NetworkRouteMXBean addDefaultRoute(java.lang.String interfaceName) throws java.lang.NullPointerException, javax.slee.UnrecognizedComponentException, javax.slee.management.AlreadyDeployedException, javax.slee.InvalidStateException, javax.slee.management.ManagementException
interfaceName
- the name of the network interface to be used for the default route.NetworkRouteMXBean
used to manage the network route.java.lang.NullPointerException
- if either argument is null
.javax.slee.UnrecognizedComponentException
- if the interface name is not known.javax.slee.management.AlreadyDeployedException
- if a default route has already been specified for the network
interface type.javax.slee.InvalidStateException
- if the specified network interface is not enabled on this SIS instance.javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.NetworkRouteMXBean getDefaultRoute() throws javax.slee.UnrecognizedComponentException, javax.slee.management.ManagementException
NetworkRouteMXBean
used to manage the network route.javax.slee.UnrecognizedComponentException
- if a default route does not exist.javax.slee.management.ManagementException
- if the Object Name for the route could not be obtained due to a system-level failure.void removeDefaultRoute() throws javax.slee.InvalidStateException, javax.slee.management.ManagementException
javax.slee.InvalidStateException
- if a default route has not been specified for the network
interface type.javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.RouteDescriptor[] getRoutes() throws javax.slee.management.ManagementException
RouteDescriptor
, ordered by positionjavax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.