Interface SNMPNodeMBean
-
public interface SNMPNodeMBeanThe
SNMPNodeMBeaninterface 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 voidclearAddressConfig()Clears explicit address bindings from the node thisSNMPNodeMBeanmanages.String[]getBindAddresses()Returns the list of addresses that the SNMP agent will bind to for the node thisSNMPNodeMBeanmanages.intgetBindPort()Returns the port that the SNMP agent will bind to for the node thisSNMPNodeMBeanmanages.voidsetBindAddresses(String[] addresses)Sets the list of addresses that the SNMP agent will bind to for the node thisSNMPNodeMBeanmanages.voidsetBindConfig(String[] addresses, int port)Sets the addresses and port that the SNMP agent will bind to for the node thisSNMPNodeMBeanmanages.voidsetBindPort(int port)Sets the port that the SNMP agent will bind to for the node thisSNMPNodeMBeanmanages.
-
-
-
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
SNMPNodeMBeanmanages. 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:
ConfigurationExceptionIllegalArgumentException
-
getBindAddresses
String[] getBindAddresses() throws ConfigurationException, IllegalArgumentException
Returns the list of addresses that the SNMP agent will bind to for the node this
SNMPNodeMBeanmanages. Returns an empty list if this node does not have addresses specified.
-
setBindPort
void setBindPort(int port) throws ConfigurationException, IllegalArgumentExceptionSets the port that the SNMP agent will bind to for the node this
SNMPNodeMBeanmanages. Can be set to -1 to force the node to use the 'default' SNMP port binding configuration.- Parameters:
port-- Throws:
ConfigurationExceptionIllegalArgumentException
-
getBindPort
int getBindPort() throws ConfigurationException, IllegalArgumentExceptionReturns the port that the SNMP agent will bind to for the node this
SNMPNodeMBeanmanages. 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
SNMPNodeMBeanmanages. This is the atomic equivalent of callingsetBindAddresses()andsetBindPorttogether.- Parameters:
addresses-port-- Throws:
ConfigurationExceptionIllegalArgumentException
-
clearAddressConfig
void clearAddressConfig() throws ConfigurationException, IllegalArgumentExceptionClears explicit address bindings from the node this
SNMPNodeMBeanmanages.
-
-