|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.snmp4j.agent.BaseAgent
org.opennms.mock.snmp.MockSnmpAgent
public class MockSnmpAgent
| Field Summary | |
|---|---|
protected java.lang.String |
m_address
|
| Fields inherited from class org.snmp4j.agent.BaseAgent |
|---|
agent, agentState, bootCounterFile, configFile, defaultContext, defaultProxyForwarder, dispatcher, mpv3, notificationOriginator, server, session, snmp4jConfigMIB, snmp4jLogMIB, snmpCommunityMIB, snmpFrameworkMIB, snmpNotificationMIB, snmpProxyMIB, snmpTargetMIB, snmpv2MIB, STATE_CREATED, STATE_INIT_FINISHED, STATE_INIT_STARTED, STATE_RUNNING, STATE_STOPPED, sysDescr, sysOID, sysServices, transportMappings, usm, usmMIB, vacmMIB |
| Constructor Summary | |
|---|---|
MockSnmpAgent(java.io.File bootFile,
java.io.File confFile,
org.springframework.core.io.Resource moFile,
java.lang.String bindAddress)
|
|
| Method Summary | |
|---|---|
protected void |
addCommunities(org.snmp4j.agent.mo.snmp.SnmpCommunityMIB communityMIB)
|
protected void |
addNotificationTargets(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB,
org.snmp4j.agent.mo.snmp.SnmpNotificationMIB notificationMIB)
|
protected void |
addUsmUser(org.snmp4j.security.USM usm)
|
protected void |
addViews(org.snmp4j.agent.mo.snmp.VacmMIB vacm)
|
static MockSnmpAgent |
createAgentAndRun(org.springframework.core.io.Resource moFile,
java.lang.String bindAddress)
|
protected java.util.ArrayList<org.snmp4j.agent.ManagedObject> |
createMockMOs()
|
protected void |
initTransportMappings()
|
boolean |
isRunning()
|
boolean |
isStopped()
|
protected void |
registerManagedObjects()
|
protected void |
registerSnmpMIBs()
|
void |
run()
|
void |
shutDown()
|
void |
shutDownAndWait()
|
protected void |
unregisterManagedObjects()
|
protected void |
unregisterSnmpMIBs()
|
| Methods inherited from class org.snmp4j.agent.BaseAgent |
|---|
addShutdownHook, finishInit, getAgent, getAgentState, getBootCounterFile, getConfigFile, getContext, getDefaultContext, getDefaultProxyForwarder, getEngineBoots, getMPv3, getNotificationOriginator, getServer, getSession, getSnmp4jConfigMIB, getSnmp4jLogMIB, getSnmpCommunityMIB, getSnmpFrameworkMIB, getSnmpNotificationMIB, getSnmpProxyMIB, getSnmpTargetMIB, getSnmpv2MIB, getSysDescr, getSysOID, getSysServices, getUsm, getUsmMIB, getVacmMIB, init, initMessageDispatcher, initSnmpSession, loadConfig, loadConfig, saveConfig, saveConfig, sendColdStartNotification, setAgent, setBootCounterFile, setConfigFile, setDefaultContext, setDefaultProxyForwarder, setEngineBoots, setSysDescr, setSysOID, setSysServices, setupDefaultProxyForwarder, stop, updateEngineBoots |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String m_address
| Constructor Detail |
|---|
public MockSnmpAgent(java.io.File bootFile,
java.io.File confFile,
org.springframework.core.io.Resource moFile,
java.lang.String bindAddress)
| Method Detail |
|---|
public static MockSnmpAgent createAgentAndRun(org.springframework.core.io.Resource moFile,
java.lang.String bindAddress)
throws java.lang.InterruptedException
java.lang.InterruptedException
public void shutDownAndWait()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void run()
run in interface java.lang.Runnablerun in class org.snmp4j.agent.BaseAgentpublic void shutDown()
public boolean isRunning()
public boolean isStopped()
protected void addCommunities(org.snmp4j.agent.mo.snmp.SnmpCommunityMIB communityMIB)
addCommunities in class org.snmp4j.agent.BaseAgentprotected void addViews(org.snmp4j.agent.mo.snmp.VacmMIB vacm)
addViews in class org.snmp4j.agent.BaseAgent
protected void addNotificationTargets(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB,
org.snmp4j.agent.mo.snmp.SnmpNotificationMIB notificationMIB)
addNotificationTargets in class org.snmp4j.agent.BaseAgentprotected void addUsmUser(org.snmp4j.security.USM usm)
addUsmUser in class org.snmp4j.agent.BaseAgent
protected void initTransportMappings()
throws java.io.IOException
initTransportMappings in class org.snmp4j.agent.BaseAgentjava.io.IOExceptionprotected void registerSnmpMIBs()
registerSnmpMIBs in class org.snmp4j.agent.BaseAgentprotected void unregisterSnmpMIBs()
unregisterSnmpMIBs in class org.snmp4j.agent.BaseAgentprotected void registerManagedObjects()
registerManagedObjects in class org.snmp4j.agent.BaseAgentprotected void unregisterManagedObjects()
unregisterManagedObjects in class org.snmp4j.agent.BaseAgentprotected java.util.ArrayList<org.snmp4j.agent.ManagedObject> createMockMOs()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||