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