public interface INNetworkInterfaceManagementMBean extends NetworkInterfaceManagementMBean
INNetworkInterfaceManagementMBean
provides additional IN-specific management
operations for SIS network interfaces created in a SIS RA entity.SIS_MANAGEMENT_TYPE
Modifier and Type | Method and Description |
---|---|
ObjectName |
addRoute(String rule,
String interfaceName,
int position)
Add a new network route in the SIS.
|
addDefaultRoute, createNetworkInterfaceDefinition, disableNetworkInterface, enableNetworkInterface, getDefaultRoute, getEnabledNetworkInterfaces, getNetworkInterfaceDefinition, getNetworkInterfaceDefinitions, getRoute, getRoutes, getSupportedNetworkInterfaceProperties, removeDefaultRoute, removeNetworkInterfaceDefinition, removeRoute
ObjectName addRoute(String rule, String interfaceName, int position) throws NullPointerException, InvalidArgumentException, UnrecognizedComponentException, AlreadyDeployedException, InvalidStateException, ManagementException
Rules are of the format "<type> [<value>]". The rule type may be "protocol", "orig-address", or "dest-address", and a value must always be specified. Multiple rules to be specified, delimited using the ampersand '&' character.
addRoute
in interface NetworkInterfaceManagementMBean
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.NetworkRouteMBean
used to manage the network route.NullPointerException
- if rule
, or interfaceName
is null
.InvalidArgumentException
- if the rule is invalid.UnrecognizedComponentException
- if the interface name is not known.AlreadyDeployedException
- if an identical route already exists in the routing table.InvalidStateException
- if the specified network interface is not enabled on this SIS instance.ManagementException
- if the operation could not be completed due to a system-level failure.