|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.snmp.mibs.AgentClauseUtil
|
+--com.adventnet.snmp.mibs.agent.AgentClause
The AgentClause class is used to parse and then use the AGENTCLAUSE construct of the OBJECT-TYPE macro in a MIB module.
It contains all the COMMAND (e.g. READ-COMMAND, WRITE-COMMAND etc) informations required to implement the AgentClause construct.
API users will not use this class directly. This class is instantiated by AgentMibMacro.
| Fields inherited from class com.adventnet.snmp.mibs.AgentClauseUtil |
_CLASS,
_CORBA,
_DATABASE,
_FILE,
_PROXY,
_READ,
_SIMULATE,
_WRITE,
arguments,
commandTable,
description,
fileString,
node |
| Constructor Summary | |
AgentClause()
This null constructor is used by SnmpAgent.addClient() for instantiating an AgentClause Object. |
|
AgentClause(java.lang.String str)
One Argument constructor which accepts the fileString. |
|
AgentClause(java.lang.String str,
AgentMibNode node)
This constructor is used by MibMacro class if it encounters AGENTCLAUSE construct in the mibfile. |
|
AgentClause(java.lang.String str,
AgentMibNode node,
boolean runTime)
This constructor is used by MibMacro class if it encounters AGENTCLAUSE construct in the mibfile. |
|
| Method Summary | |
protected java.lang.String |
getResponseString(byte type,
AgentMibOperations mibops)
Returns the response as a string which will be encoded and then sent back to the manager in appropriate format. |
(package private) java.lang.String |
getResponseString(byte type,
SnmpVarBind varbind,
AgentMibOperations mibops)
Returns the response as a string which will be encoded and then sent back to the manager in appropriate format. |
| Methods inherited from class com.adventnet.snmp.mibs.AgentClauseUtil |
getAgentClauseCommand,
getArguments,
getCommandTable,
isRuntime,
min,
parseClause,
parseClause,
setArguments,
setMibNode,
setRuntime |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public AgentClause()
public AgentClause(java.lang.String str,
AgentMibNode node,
boolean runTime)
throws MibException
str - String to be parsednode - the AgentMibNode associated with this AgentClauseRuntime - flag which is set to true by default
public AgentClause(java.lang.String str,
AgentMibNode node)
throws MibException
str - String to be parsednode - the AgentMibNode associated with this AgentClause
public AgentClause(java.lang.String str)
throws MibException
the - string to be parsed| Method Detail |
protected java.lang.String getResponseString(byte type,
AgentMibOperations mibops)
throws AgentSnmpException
byte - GET, GETNEXT or SET request types
java.lang.String getResponseString(byte type,
SnmpVarBind varbind,
AgentMibOperations mibops)
throws AgentSnmpException
This method requires associated varbind. Needed for file commands(table implementation) and class.
byte - GET, GETNEXT or SET request typesvarbind - associated variable bindings
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||