|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SnmpAdaptorMBean
JMX adaptor for SNMP protocol.
| Method Summary | |
|---|---|
void |
addAppContext(ClassLoader classLoader,
SnmpAppContext appContext)
Adds a new application context. |
String |
getListenerAddress()
Returns the listening IP address of SNMP daemon (127.0.0.1 by default). |
Integer |
getListenerPort()
Returns the UDP port of SNMP daemon (161 by default). |
String |
getListenerReadCommunity()
Returns the read community of SNMP daemon ("public" by default). |
Integer |
getListenerSnmpVersion()
Returns the protocol version of SNMP daemon (SNMP v2 by default). |
String |
getListenerWriteCommunity()
Returns the write community of SNMP daemon ("private" by default). |
List<SnmpManagerConfiguration> |
getManagerList()
Returns the list of managers where to send all notifications (SNMP traps). |
boolean |
isStarted()
Returns TRUE if the SNMP daemon is started. |
void |
removeAppContext(ClassLoader classLoader)
Removes an application context. |
void |
setListenerAddress(String listenerAddress)
Sets the listening IP address of SNMP daemon. |
void |
setListenerPort(Integer listenerPort)
Sets the UDP port of SNMP daemon. |
void |
setListenerReadCommunity(String listenerReadCommunity)
Sets the read community of SNMP daemon. |
void |
setListenerSnmpVersion(Integer listenerSnmpVersion)
Sets the protocol version of SNMP daemon. |
void |
setListenerWriteCommunity(String listenerWriteCommunity)
Sets the write community of SNMP daemon. |
void |
start()
Starts the SNMP daemon. |
void |
stop()
Stops the SNMP daemon. |
| Method Detail |
|---|
void addAppContext(ClassLoader classLoader,
SnmpAppContext appContext)
SnmpAdaptor4j may be used by an application server. In this case you will inform the SNMP adapter to each deployment of a new application.
classLoader - Class loader of application.appContext - Application context.void removeAppContext(ClassLoader classLoader)
classLoader - Class loader of application.String getListenerAddress()
void setListenerAddress(String listenerAddress)
listenerAddress - Listening IP address.Integer getListenerPort()
void setListenerPort(Integer listenerPort)
listenerPort - UDP port.Integer getListenerSnmpVersion()
void setListenerSnmpVersion(Integer listenerSnmpVersion)
listenerSnmpVersion - SNMP protocol version.String getListenerReadCommunity()
void setListenerReadCommunity(String listenerReadCommunity)
listenerReadCommunity - Read community of SNMP daemon.String getListenerWriteCommunity()
void setListenerWriteCommunity(String listenerWriteCommunity)
listenerWriteCommunity - Write community of SNMP daemon.List<SnmpManagerConfiguration> getManagerList()
void start()
throws Exception
Exception - Exception if an error has occurred.
void stop()
throws Exception
Exception - Exception if an error has occurred.boolean isStarted()
TRUE if the SNMP daemon is started.
TRUE if the SNMP daemon is started.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||