Modifier and Type | Field and Description |
---|---|
protected AgentWorker |
agent
SNMP agent
|
protected FConfig |
config
Configuration object
|
protected Storage |
storageNotify
Storage for notify
|
protected Storage |
storageVacmAccess
Storage for Vacm access
|
protected Storage |
storageVacmGroup
Storage for Vacm group
|
protected Storage |
storageVacmViewTree
Storage for Vacm view tree
|
Modifier | Constructor and Description |
---|---|
protected |
TargetBase(java.lang.String targetName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addCommunities(org.snmp4j.agent.mo.snmp.SnmpCommunityMIB communityMIB)
Adds communities
|
protected void |
addNotificationEntry(org.snmp4j.agent.mo.snmp.SnmpNotificationMIB notificationMIB,
org.friendlysnmp.target.TargetBase.NotificationType type)
Adds notification entry with default tag to notification MIB
|
protected void |
addNotificationEntry(org.snmp4j.agent.mo.snmp.SnmpNotificationMIB notificationMIB,
org.friendlysnmp.target.TargetBase.NotificationType type,
org.snmp4j.smi.OctetString octTag)
Adds notification entry to notification MIB
|
abstract void |
addNotificationTargets(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB,
org.snmp4j.agent.mo.snmp.SnmpNotificationMIB notificationMIB)
Adds notification target
|
protected void |
addTargetAddress(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB)
Adds target address to the target MIB.
|
protected void |
addTargetAddress(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB,
org.snmp4j.smi.OctetString octTagList)
Adds target address to the target MIB.
|
protected void |
addTargetParams(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB)
Adds target parameters to the target MIB
|
void |
addUsmUser(org.snmp4j.security.USM usm)
Adds USM user
|
abstract void |
addViews(org.snmp4j.agent.mo.snmp.VacmMIB vacm)
Adds VACM views
|
protected org.snmp4j.smi.OctetString |
createNotificationName()
Returns notification name which is used to create an entry index
|
protected int |
getProcessingModel()
Return message processing model.
|
protected int |
getSecurityLevel()
Returns security level.
|
protected int |
getSecurityModel()
Returns security model.
|
protected org.snmp4j.smi.OctetString |
getTargetAddrName()
The method creates read-only "Name" for the column snmpTargetAddrName
in the table snmpTargetMIB.snmpTargetAddrTable.
|
java.lang.String |
getTargetName() |
protected org.snmp4j.smi.OctetString |
getTargetParamsName()
The method creates read-only "Name" which is used in two places
linking them:
1. |
protected org.snmp4j.smi.OctetString |
getTransportAddress()
Return transport address.
|
protected org.snmp4j.smi.OID |
getTransportDomainOID()
Returns transport domain OID
|
void |
init(AgentWorker aw)
Initializes target
|
protected void |
setSNMP(int secModel,
int procModel,
int secLevel) |
java.lang.String |
toString()
Returns a string representation of the object.
|
protected AgentWorker agent
protected FConfig config
protected Storage storageVacmGroup
protected Storage storageVacmAccess
protected Storage storageVacmViewTree
protected Storage storageNotify
protected TargetBase(java.lang.String targetName)
targetName
- targetprotected void setSNMP(int secModel, int procModel, int secLevel)
public void init(AgentWorker aw) throws FException
aw
- agentFException
- exception may be thrown in derived classpublic void addCommunities(org.snmp4j.agent.mo.snmp.SnmpCommunityMIB communityMIB)
communityMIB
- community MIBpublic abstract void addViews(org.snmp4j.agent.mo.snmp.VacmMIB vacm)
vacm
- VACM MIBpublic void addUsmUser(org.snmp4j.security.USM usm)
usm
- USM userpublic abstract void addNotificationTargets(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB, org.snmp4j.agent.mo.snmp.SnmpNotificationMIB notificationMIB)
targetMIB
- target MIBnotificationMIB
- notification MIBprotected void addTargetAddress(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB)
targetMIB
- target MIB.protected void addTargetAddress(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB, org.snmp4j.smi.OctetString octTagList)
targetMIB
- target MIB.octTagList
- space delimited tag list in OctetString format.protected void addTargetParams(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB)
targetMIB
- target MIBprotected void addNotificationEntry(org.snmp4j.agent.mo.snmp.SnmpNotificationMIB notificationMIB, org.friendlysnmp.target.TargetBase.NotificationType type)
notificationMIB
- notification MIBtype
- notification typeprotected void addNotificationEntry(org.snmp4j.agent.mo.snmp.SnmpNotificationMIB notificationMIB, org.friendlysnmp.target.TargetBase.NotificationType type, org.snmp4j.smi.OctetString octTag)
notificationMIB
- notification MIBtype
- notification typeoctTag
- tagpublic java.lang.String getTargetName()
protected int getSecurityModel()
protected int getProcessingModel()
protected int getSecurityLevel()
protected org.snmp4j.smi.OctetString getTargetAddrName()
protected org.snmp4j.smi.OctetString getTargetParamsName()
protected org.snmp4j.smi.OctetString createNotificationName()
protected org.snmp4j.smi.OID getTransportDomainOID()
protected org.snmp4j.smi.OctetString getTransportAddress()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()