public interface SNMPNodeMBean
SNMPNodeMBean
interface provides methods to interact with
the per-node configuration of Rhino's SNMP agent.Modifier and Type | Method and Description |
---|---|
void |
clearAddressConfig()
Clears explicit address bindings from the node this
SNMPNodeMBean manages. |
String[] |
getBindAddresses()
Returns the list of addresses that the SNMP agent will bind to for the
node this
SNMPNodeMBean manages. |
int |
getBindPort()
Returns the port that the SNMP agent will bind to for the node this
SNMPNodeMBean manages. |
void |
setBindAddresses(String[] addresses)
Sets the list of addresses that the SNMP agent will bind to for the node
this
SNMPNodeMBean manages. |
void |
setBindConfig(String[] addresses,
int port)
Sets the addresses and port that the SNMP agent will bind to for the node
this
SNMPNodeMBean manages. |
void |
setBindPort(int port)
Sets the port that the SNMP agent will bind to for the node this
SNMPNodeMBean manages. |
void setBindAddresses(String[] addresses) throws ConfigurationException, IllegalArgumentException
SNMPNodeMBean
manages. Can be set to the empty list to
force the node to use the 'default' SNMP address binding configuration.addresses
- ConfigurationException
IllegalArgumentException
String[] getBindAddresses() throws ConfigurationException, IllegalArgumentException
SNMPNodeMBean
manages. Returns an empty list if
this node does not have addresses specified.addresses
- ConfigurationException
IllegalArgumentException
void setBindPort(int port) throws ConfigurationException, IllegalArgumentException
SNMPNodeMBean
manages. Can be set to -1 to force the node to
use the 'default' SNMP port binding configuration.port
- ConfigurationException
IllegalArgumentException
int getBindPort() throws ConfigurationException, IllegalArgumentException
SNMPNodeMBean
manages. Returns -1 if this node does not have
a port binding specified.port
- ConfigurationException
IllegalArgumentException
void setBindConfig(String[] addresses, int port) throws ConfigurationException, IllegalArgumentException
SNMPNodeMBean
manages.
This is the atomic equivalent of calling setBindAddresses()
and setBindPort
together.addresses
- port
- ConfigurationException
IllegalArgumentException
void clearAddressConfig() throws ConfigurationException, IllegalArgumentException
SNMPNodeMBean
manages.