public interface NetworkInterfaceDefinitionMBean
| Modifier and Type | Field and Description |
|---|---|
static String |
SIS_MANAGEMENT_TYPE |
| Modifier and Type | Method and Description |
|---|---|
CompositeData |
getDescriptor()
Get a JMX
CompositeData object describing the properties that are currently
configured on this interface. |
String |
getName()
Get the name of this interface.
|
Map<String,String> |
getProperties()
Get this network interface's properties as a map.
|
void |
remove()
Remove this network interface from the SIS.
|
void |
updateProperties(Map<String,String> properties)
Update this network interface definition's properties.
|
static final String SIS_MANAGEMENT_TYPE
String getName() throws ManagementException
ManagementException - if the operation could not be completed due to a system-level failure.CompositeData getDescriptor() throws ManagementException
CompositeData object describing the properties that are currently
configured on this interface.
The CompositeData object returned is dynamic and contains a String field for
each property currently set on the interface. The field names may be obtained by inspecting the
CompositeData object's type.
There are several automatically generated fields that cannot be directly updated by clients:
enabling or
disabling the network interface.
InvalidArgumentException.CompositeData object as described above.ManagementException - if the operation could not be completed due to a system-level failure.Map<String,String> getProperties() throws ManagementException
ManagementException - if the operation could not be completed due to a system-level failure.void updateProperties(Map<String,String> properties) throws NullPointerException, InvalidArgumentException, InvalidConfigurationException, ManagementException
properties - a map of property names and values. The properties in this map replace all
existing properties on the network interface.NullPointerException - if properties is null.InvalidArgumentException - if the interface properties use any restricted names (see getDescriptor()).InvalidConfigurationException - if the SIS instance determines that the network
interface configuration is not valid.ManagementException - if the update could not be completed due to a system-level failure.void remove()
throws InvalidStateException,
ManagementException
InvalidStateException - if the interface cannot be removed because it is enabled on a SIS instance.ManagementException - if the interface could not be removed due to a system-level failure.