|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.snmp.snmp2.agent.Cache
|
+--com.adventnet.snmp.mibs.agent.InterprettedAgent
InterprettedAgent class interprets all the AGENTCLAUSE commands in a MIB file and registers the AGENTCLAUSES to the VarBindRequestHandler
This class files requires that the MibFile be loaded. Loading of MIBs etc will all be done by this class
AgentMibOperations instance which provides users with utilities for getting MibNodes etc is provided by this class
Typical API users using AGENTCLAUSE will implement InitSnmpAgentData interface for getting a handle to SnmpAgent
getMibOperations() to get a reference to MibOperations which can be used to get references to MibNodes etc
| Field Summary | |
(package private) java.util.Vector |
mibCache
|
(package private) java.lang.String |
mibModules
|
(package private) AgentMibOperations |
mibOps
The miboperations which is handy for all mib related operations. |
| Fields inherited from class com.adventnet.snmp.snmp2.agent.Cache |
cache,
debug |
| Constructor Summary | |
InterprettedAgent()
constructor with reference to SnmpAgent which is used later on by the Interpretted Agent to register listeners etc. |
|
| Method Summary | |
MibModule |
addMib(java.lang.String mibFile)
adds the Mib to the list of modules already loaded. |
(package private) void |
addMibModule(java.lang.String mibFile)
This is for SnmpAgent which just ignores MibModules |
void |
addRegistrationListener(RegistrationListener l)
Add method for registration listener which is interested in registered events. |
boolean |
attachObject(SnmpAgentData agentObject,
AgentMibNode node)
Used by application programmes to attach an SnmpAgentData object to a AgentMibNode. |
boolean |
attachObject(SnmpAgentData agentObject,
java.lang.String nodeName)
Used by application programmes to attach an SnmpAgentData object to a AgentMibNode. |
static java.lang.String |
decodeInstance(int[] instance_oid,
LeafSyntax syntax)
Deprecated. since Agent Builder 3.0 This method is used by AgentClause to decode index for table implemetations. |
static java.util.Vector |
decodeInstance(int[] instance_oid,
java.util.Vector indexMibNodes)
This method is used by AgentMibModule's makeInstances to decode index for table implemetations returns a Vector of Strings |
boolean |
deleteMIB(MibModule module)
Delete the MibModule |
boolean |
deleteMIB(java.lang.String moduleName)
Delete the MibModule from a set of mib module whaic are already loaded. |
boolean |
detachObject(AgentMibNode detachNode)
Used by application programmes to detach an AgentMibNode's ClassCommand object. |
boolean |
detachObject(java.lang.String nodeName)
Used by application programmes to detach an AgentMibNode's data object. |
AgentMibOperations |
getAgentMibOperation()
Getter for AgentMiboperations . |
AgentMibOperations |
getAgentMibOperations()
Getter for AgentMibOperations,which has node information. |
java.lang.String |
getFileName(java.lang.String moduleName)
Getter for fileName,returns the name of the file from mib module. |
MibModule |
getMibModule(java.lang.String name)
Utility method to get a reference to loaded MibModules. |
java.lang.String |
getMibModules()
Get the MIBs loaded in this applet/application |
MibNode |
getMibNode(SnmpOID oid)
Utility method to get a reference to loaded MibNodes |
MibNode |
getMibNode(java.lang.String name)
Utility method to get a reference to loaded MibNodes |
(package private) boolean |
isAgentClauseForTable(AgentMibNode node)
This method is used to avoid the registration of a table column if it is having table with agent clause. |
boolean |
isDebug()
checks whether debug is true or false. |
void |
register()
This method registers the AGENTCLAUSES etc Note : if addMib is used for adding this needent be invoked This method needs to be invoked when the mibs are loaded through a AgentMibOperations created by the user and a subsequent setAgentMibOperatioins. |
void |
removeRegistrationListener(RegistrationListener l)
Deletes the RegistrationsListener from the Holder , which is having listener lists. |
void |
setAgentMibOperations(AgentMibOperations mibs)
setter for AgentMibOperations |
void |
setDebug(boolean val)
Setter for debug values,To display error message. |
void |
setMibModules(java.lang.String mibFiles)
parse the MibFiles in this application and setupAgent clauses. |
(package private) void |
setUpAgentClause(MibModule module)
Setup AGENTCLAUSE |
(package private) void |
setUpAgentClauseForNode(AgentMibNode node)
|
(package private) void |
updateMibs(java.lang.String mibModules)
|
| Methods inherited from class com.adventnet.snmp.snmp2.agent.Cache |
getFromCache,
getMibOperations,
putInCache,
setMibOperations |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
AgentMibOperations mibOps
java.lang.String mibModules
java.util.Vector mibCache
| Constructor Detail |
public InterprettedAgent()
initializes AgentMibOperations.
| Method Detail |
public AgentMibOperations getAgentMibOperations()
().public void setDebug(boolean val)
val - true to set debug false to unsetpublic boolean isDebug()
public void setAgentMibOperations(AgentMibOperations mibs)
mibs - having node details.()void addMibModule(java.lang.String mibFile)
public void setMibModules(java.lang.String mibFiles)
a - white-space separated list of mib files.()public java.lang.String getMibModules()
()public java.lang.String getFileName(java.lang.String moduleName)
moduleName - mib module name.void updateMibs(java.lang.String mibModules)
public MibModule addMib(java.lang.String mibFile)
public MibModule getMibModule(java.lang.String name)
Alternate ways of getting references would be through the getAgentMibOperations() and do a getMibModule(name)
name - required mibmodule name.public MibNode getMibNode(java.lang.String name)
Alternate ways of getting references would be through the getAgentMib , com.adventnet.snmp.mibs.AgentMibNodeOperations() and do a getMibModule(name)
name - of the MibNode eg: "sysDescr"MibNodepublic MibNode getMibNode(SnmpOID oid)
Alternate ways of getting references would be through the getAgentMibOperations() and do a getMibModule(name)
SnmpOID - (varbind.getObjectID() should give you a reference
to the OID)MibNode,
AgentMibNode
public void register()
throws java.lang.NullPointerException
void setUpAgentClause(MibModule module)
boolean isAgentClauseForTable(AgentMibNode node)
node - the AgentMibNode to registervoid setUpAgentClauseForNode(AgentMibNode node)
public boolean deleteMIB(java.lang.String moduleName)
moduleName - name of the module to be deleted.public boolean detachObject(java.lang.String nodeName)
nodename - AgentMibNode whose data object will be detachedpublic boolean detachObject(AgentMibNode detachNode)
node - AgentMibNode whose data object will be detachedpublic boolean deleteMIB(MibModule module)
public static java.lang.String decodeInstance(int[] instance_oid,
LeafSyntax syntax)
AgentMibUtil.decodeInstance()
public boolean attachObject(SnmpAgentData agentObject,
java.lang.String nodeName)
agentObject - data object to be attachednode - nodeLabel to which the data object will be attached
public boolean attachObject(SnmpAgentData agentObject,
AgentMibNode node)
agentObject - data object to be attachednode - AgentMibNode to which the data object will be attached
public static java.util.Vector decodeInstance(int[] instance_oid,
java.util.Vector indexMibNodes)
throws java.lang.Exception
AgentUtil.decodeInstancepublic void addRegistrationListener(RegistrationListener l)
l - having RegistrationListener details.public void removeRegistrationListener(RegistrationListener l)
l - RegistrationListener to be removed.public AgentMibOperations getAgentMibOperation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||