|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.snmp4j.agent.BaseAgent
org.snmp4j.agent.test.SnapshotAgent
public class SnapshotAgent
| Field Summary | |
|---|---|
protected java.lang.String |
address
|
protected java.util.List |
groups
|
protected java.io.File |
snapshot
|
| 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 | |
|---|---|
SnapshotAgent(java.io.File bootCounterFile,
java.io.File configFile,
java.io.File snapshot)
|
|
| Method Summary | |
|---|---|
protected void |
addCommunities(SnmpCommunityMIB communityMIB)
Adds community to security name mappings needed for SNMPv1 and SNMPv2c. |
protected void |
addNotificationTargets(SnmpTargetMIB targetMIB,
SnmpNotificationMIB notificationMIB)
Adds initial notification targets and filters. |
protected void |
addUsmUser(org.snmp4j.security.USM usm)
Adds all the necessary initial users to the USM. |
protected void |
addViews(VacmMIB vacm)
Adds initial VACM configuration. |
protected void |
initTransportMappings()
Initializes the transport mappings (ports) to be used by the agent. |
static void |
main(java.lang.String[] args)
|
protected void |
registerManagedObjects()
Register additional managed objects at the agent's server. |
protected void |
unregisterManagedObjects()
Unregister additional managed objects from the agent's server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String address
protected java.io.File snapshot
protected java.util.List groups
| Constructor Detail |
|---|
public SnapshotAgent(java.io.File bootCounterFile,
java.io.File configFile,
java.io.File snapshot)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected void addCommunities(SnmpCommunityMIB communityMIB)
addCommunities in class BaseAgentcommunityMIB - the SnmpCommunityMIB holding coexistence
configuration for community based security models.
protected void addNotificationTargets(SnmpTargetMIB targetMIB,
SnmpNotificationMIB notificationMIB)
addNotificationTargets in class BaseAgenttargetMIB - the SnmpTargetMIB holding the target configuration.notificationMIB - the SnmpNotificationMIB holding the notification
(filter) configuration.protected void addUsmUser(org.snmp4j.security.USM usm)
addUsmUser in class BaseAgentusm - the USM instance used by this agent.protected void addViews(VacmMIB vacm)
addViews in class BaseAgentvacm - the VacmMIB holding the agent's view configuration.protected void registerManagedObjects()
registerManagedObjects in class BaseAgentprotected void unregisterManagedObjects()
unregisterManagedObjects in class BaseAgent
protected void initTransportMappings()
throws java.io.IOException
BaseAgent
initTransportMappings in class BaseAgentjava.io.IOExceptionpublic static void main(java.lang.String[] args)
|
Copyright 2005-2008 Frank Fock (SNMP4J.org) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||