|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.snmp4j.agent.BaseAgent
goldengate.snmp.GgSnmpAgent
public class GgSnmpAgent
This Agent contains some functionalities for running a version 2c and 3 of SNMP agent.
Field Summary | |
---|---|
GgInterfaceMib |
mib
The associated MIB with this Agent |
GgInterfaceMonitor |
monitor
The associated monitor with this Agent |
int |
trapLevel
|
Fields inherited from class org.snmp4j.agent.BaseAgent |
---|
agent, agentState, bootCounterFile, configFileURI, defaultContext, defaultPersistenceProvider, 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 | |
---|---|
GgSnmpAgent(File configurationFile,
GgInterfaceMonitor monitor,
GgInterfaceMib mib)
|
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)
|
GgInterfaceMib |
getMib()
|
GgInterfaceMonitor |
getMonitor()
|
long |
getUptime()
|
long |
getUptimeSystemTime()
|
protected void |
initTransportMappings()
|
protected void |
registerManagedObjects()
|
protected void |
sendColdStartNotification()
|
protected void |
sendShutdownNotification()
Send a Notification just before Shutdown the SNMP service. |
void |
start()
Start method invokes some initialization methods needed to start the agent |
void |
stop()
|
void |
unregisterManagedObject(org.snmp4j.agent.MOGroup moGroup)
|
protected void |
unregisterManagedObjects()
|
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, initConfigMIB, initMessageDispatcher, initSnmpSession, loadConfig, registerSnmpMIBs, run, saveConfig, setAgent, setBootCounterFile, setConfigFile, setDefaultContext, setDefaultProxyForwarder, setEngineBoots, setSysDescr, setSysOID, setSysServices, setupDefaultProxyForwarder, unregisterSnmpMIBs, updateEngineBoots, updateSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int trapLevel
public GgInterfaceMonitor monitor
public GgInterfaceMib mib
Constructor Detail |
---|
public GgSnmpAgent(File configurationFile, GgInterfaceMonitor monitor, GgInterfaceMib mib) throws IllegalArgumentException
configurationFile
- XML formatmonitor
- the associated monitormib
- the associated MIB
IllegalArgumentException
Method Detail |
---|
public GgInterfaceMonitor getMonitor()
public GgInterfaceMib getMib()
public long getUptime()
public long getUptimeSystemTime()
protected void registerManagedObjects()
registerManagedObjects
in class org.snmp4j.agent.BaseAgent
protected void unregisterManagedObjects()
unregisterManagedObjects
in class org.snmp4j.agent.BaseAgent
public void unregisterManagedObject(org.snmp4j.agent.MOGroup moGroup)
moGroup
- protected void addUsmUser(org.snmp4j.security.USM usm)
addUsmUser
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.BaseAgent
protected void addViews(org.snmp4j.agent.mo.snmp.VacmMIB vacm)
addViews
in class org.snmp4j.agent.BaseAgent
protected void addCommunities(org.snmp4j.agent.mo.snmp.SnmpCommunityMIB communityMIB)
addCommunities
in class org.snmp4j.agent.BaseAgent
protected void initTransportMappings() throws IOException
initTransportMappings
in class org.snmp4j.agent.BaseAgent
IOException
public void start() throws IOException
IOException
protected void sendColdStartNotification()
sendColdStartNotification
in class org.snmp4j.agent.BaseAgent
protected void sendShutdownNotification()
public void stop()
stop
in class org.snmp4j.agent.BaseAgent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |