public interface NetworkRouteMXBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInterfaceName()
Get the name of the network interface used by this route.
|
int |
getPosition()
Get the current position of the route within the routing table.
|
java.lang.String |
getRule()
Get the rule required to match for this route to be selected.
|
boolean |
isDefaultRoute()
Determine if this route represents a default route.
|
void |
remove()
Remove this network route.
|
void |
reposition(int newPosition)
Move the route to a new position within the route list.
|
void |
setInterfaceName(java.lang.String interfaceName)
Set the name of the network interface to be used by this rule.
|
void |
setRule(java.lang.String rule)
Update the rule for this route.
|
static final java.lang.String TYPE
java.lang.String getRule() throws javax.slee.management.ManagementException
null
if this route represents the default route (which has no rule).javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.void setRule(java.lang.String rule) throws java.lang.NullPointerException, javax.slee.InvalidStateException, javax.slee.InvalidArgumentException, javax.slee.management.AlreadyDeployedException, javax.slee.management.ManagementException
Rules are of the format "<type> [<value>]":
rule
- the rule to match for this route to be selected.java.lang.NullPointerException
- if rule
is null
.javax.slee.InvalidStateException
- if this route represents the default route. The default route has
no rule associated with it.javax.slee.InvalidArgumentException
- if the rule is invalid.javax.slee.management.AlreadyDeployedException
- if changing the route to use the specified rule would produce a route
that is identical to an existing route in the routing table.javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.java.lang.String getInterfaceName() throws javax.slee.management.ManagementException
javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.void setInterfaceName(java.lang.String interfaceName) throws java.lang.NullPointerException, javax.slee.UnrecognizedComponentException, javax.slee.InvalidStateException, javax.slee.management.AlreadyDeployedException, javax.slee.management.ManagementException
interfaceName
- the network interface name.java.lang.NullPointerException
- if interfaceName
is null
.javax.slee.UnrecognizedComponentException
- if the interface name is not known.javax.slee.InvalidStateException
- if the specified network interface is not enabled on this SIS instance.javax.slee.management.AlreadyDeployedException
- if changing the route to use the specified interface would produce a
route that is identical to an existing route in the routing table.javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.int getPosition() throws javax.slee.management.ManagementException
The default route has a position equal to Integer.MAX_VALUE
.
javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.void reposition(int newPosition) throws javax.slee.management.ManagementException, javax.slee.InvalidStateException
newPosition
- the route list position to move the route to. A value less than or equal to
zero moves the route to the beginning of the route list. A value greater than or equal to
the current number of routes moves the route to the end of the list.javax.slee.InvalidStateException
- if this route represents the default route. The default route cannot
be repositioned.javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.boolean isDefaultRoute() throws javax.slee.management.ManagementException
true
if this is a default route, false
otherwise.javax.slee.management.ManagementException
- if the operation could not be completed due to a system-level failure.void remove() throws javax.slee.management.ManagementException, javax.slee.InvalidStateException
javax.slee.InvalidStateException
- if the interface cannot be removed because it is enabled on a SIS instance.javax.slee.management.ManagementException
- if the interface could not be removed due to a system-level failure.