|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.mibs.AgentClauseUtil
com.adventnet.snmp.mibs.agent.AgentClause
public class 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.
| Field Summary |
|---|
| 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,
com.adventnet.snmp.mibs.AgentMibNode node)
This constructor is used by MibMacro class if it encounters AGENTCLAUSE construct in the mibfile. |
|
AgentClause(java.lang.String str,
com.adventnet.snmp.mibs.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,
com.adventnet.snmp.mibs.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,
com.adventnet.snmp.mibs.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, parseClause, setArguments, setMibNode, setRuntime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgentClause()
public AgentClause(java.lang.String str,
com.adventnet.snmp.mibs.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
Snmp.MibException - thrown while parsing
MibException
public AgentClause(java.lang.String str,
com.adventnet.snmp.mibs.AgentMibNode node)
throws MibException
str - String to be parsednode - the AgentMibNode associated with this AgentClause
Snmp.MibException - thrown while parsing
MibException
public AgentClause(java.lang.String str)
throws MibException
the - string to be parsed
MibException| Method Detail |
|---|
protected java.lang.String getResponseString(byte type,
com.adventnet.snmp.mibs.AgentMibOperations mibops)
throws AgentSnmpException
byte - GET, GETNEXT or SET request types
AgentSnmpException
java.lang.String getResponseString(byte type,
SnmpVarBind varbind,
com.adventnet.snmp.mibs.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
AgentSnmpException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||