|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.agent.VarBindRequestListenerHolder
public class VarBindRequestListenerHolder
This class contains the VarBindRequestListener and the AgentNode attached to
API users would be able to use the generated code in an as is form except when they need some customisation. For most part all such code is generated by the Builder.
In case of forwarding where the Extensible agent is not MIB aware (registrations where the extensible agent has no MIB handle). The user classes could register with an array of integer values [1,3,6,1 ...] or .N.N.N string representation ie .1.3.6.1 etc
| Field Summary | |
|---|---|
(package private) VarBindRequestListenerManager |
manager
|
(package private) AgentNode |
node
|
(package private) VarBindRequestListener |
pduListener
|
(package private) boolean |
proxy
|
(package private) java.util.Vector |
varbindList
|
| Constructor Summary | |
|---|---|
VarBindRequestListenerHolder(VarBindRequestListener listener,
VarBindRequestListenerManager manager,
java.lang.Object oid)
This constructor is used for registering the Listener |
|
| Method Summary | |
|---|---|
(package private) void |
addVarBind(SnmpVarBind varbind,
int globalIndex,
java.util.Vector varbindList,
AgentNode requestCell)
adds the varbind to list of VarBinds which can be processed by the listener later |
int |
compareTo(int[] obj)
Implementations of ComparableObject interface |
int |
compareTo(java.lang.Object obj)
Implementations of ComparableObject interface |
(package private) int[] |
getIntOID()
|
java.lang.Object |
getKey()
Part of ComparableObject interface |
(package private) AgentNode |
getNextProxyCell(AgentNode node)
|
(package private) int |
getNextSubId(int pos)
|
(package private) int |
getNextSubId(SnmpVarBind varb)
|
(package private) AgentNode |
getParentProxyCell(AgentNode node)
|
(package private) AgentNode |
getRequestCell()
Getter method called ny PduRequestHandler |
(package private) int |
getSubId(SnmpVarBind varb)
|
(package private) int[] |
getSubidList()
getter for subIdList |
(package private) VarBindRequestListener |
getVarBindRequestListener()
The VarBindRequestListener instance |
(package private) boolean |
isNoNextObject(VarBindAndFailure vbFail2)
|
(package private) boolean |
isProxy()
|
(package private) boolean |
isValidErrValue(byte val)
Checks if we have a valid errvalue |
(package private) void |
processFailedVarBindList(java.util.Vector failedList,
VarBindRequestEvent pe,
byte req,
AgentResource agentSource)
process the failed varbindList |
(package private) void |
processFailedVarBindList(java.util.Vector failedList,
java.util.Vector totalList)
Processes the failed VarrbindList and sets errindexes to absolute values |
(package private) SnmpVarBind |
processGetBulkRequest(SnmpPDU pdu,
SnmpVarBind varb,
AgentResource agentSource)
Processes getBulk Request |
(package private) void |
processGetNextList(VarBindRequestEvent pe,
java.util.Vector varbindList,
int i,
java.util.Vector dummyFailedList,
java.util.Vector reqVarbindList,
AgentResource agentSource,
boolean forCheckingProxy)
|
(package private) java.util.Vector |
processGetNextVarBinds(SnmpPDU pdu,
java.util.Vector varbindList,
AgentResource agentSource,
boolean forProxy)
Processes the SNMP Get requests and passes the request event to the interested listeners |
(package private) java.util.Vector |
processGetVarBinds(SnmpPDU pdu,
java.util.Vector varbindList,
AgentResource agentSource)
Processes the SNMP Get requests and passes the request event to the interested listeners |
(package private) java.util.Vector |
processSetVarBinds(SnmpPDU pdu,
java.util.Vector varbindList,
AgentResource agentSource)
Processes the SNMP Get requests and passes the request event to the interested listeners |
(package private) SnmpVarBind |
setErrorValueForGetNext(VarBindAndFailure vbfail1,
VarBindRequestEvent pe,
SnmpVarBind varb1,
int index,
AgentResource agentSource)
Sets V2 varBindIndex for GetNext request |
(package private) void |
setErrorValueForGetVarBind(VarBindAndFailure vbfail1,
SnmpVarBind varb1,
int index,
AgentResource agentSource)
Set errvalue (varbindIndex in V2) for get and GetNext failures |
(package private) void |
setErrvalue(SnmpVarBind varb1,
VarBindAndFailure vbfail1,
SnmpPDU pdu)
|
(package private) void |
setProxy(boolean proxy)
|
(package private) void |
setRequestCell(AgentNode cell)
method called ny VarBindRequestManager |
(package private) void |
setSubidList(int[] subidList)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
AgentNode node
VarBindRequestListenerManager manager
VarBindRequestListener pduListener
java.util.Vector varbindList
boolean proxy
| Constructor Detail |
|---|
VarBindRequestListenerHolder(VarBindRequestListener listener,
VarBindRequestListenerManager manager,
java.lang.Object oid)
throws RegistrationException
RegistrationException| Method Detail |
|---|
int[] getSubidList()
Subids are used for getting the NextIdentifiers in case of getNext requests
void setSubidList(int[] subidList)
boolean isProxy()
void setProxy(boolean proxy)
VarBindRequestListener getVarBindRequestListener()
public int compareTo(java.lang.Object obj)
compareTo in interface ComparableObjectobj - ComparableObject to be compared
public int compareTo(int[] obj)
public java.lang.Object getKey()
getKey in interface ComparableObject
void addVarBind(SnmpVarBind varbind,
int globalIndex,
java.util.Vector varbindList,
AgentNode requestCell)
int[] getIntOID()
AgentNode getNextProxyCell(AgentNode node)
AgentNode getParentProxyCell(AgentNode node)
void processGetNextList(VarBindRequestEvent pe,
java.util.Vector varbindList,
int i,
java.util.Vector dummyFailedList,
java.util.Vector reqVarbindList,
AgentResource agentSource,
boolean forCheckingProxy)
java.util.Vector processGetNextVarBinds(SnmpPDU pdu,
java.util.Vector varbindList,
AgentResource agentSource,
boolean forProxy)
throws AgentSnmpException
AgentSnmpException
java.util.Vector processGetVarBinds(SnmpPDU pdu,
java.util.Vector varbindList,
AgentResource agentSource)
throws AgentSnmpException
AgentSnmpException
java.util.Vector processSetVarBinds(SnmpPDU pdu,
java.util.Vector varbindList,
AgentResource agentSource)
throws AgentSnmpException
AgentSnmpException
SnmpVarBind processGetBulkRequest(SnmpPDU pdu,
SnmpVarBind varb,
AgentResource agentSource)
throws AgentSnmpException
the - Varbind whose next varbind needs to be found
AgentSnmpException
void processFailedVarBindList(java.util.Vector failedList,
java.util.Vector totalList)
void processFailedVarBindList(java.util.Vector failedList,
VarBindRequestEvent pe,
byte req,
AgentResource agentSource)
throws AgentSnmpException
AgentSnmpException
SnmpVarBind setErrorValueForGetNext(VarBindAndFailure vbfail1,
VarBindRequestEvent pe,
SnmpVarBind varb1,
int index,
AgentResource agentSource)
throws AgentSnmpException
AgentSnmpExceptionboolean isNoNextObject(VarBindAndFailure vbFail2)
void setErrvalue(SnmpVarBind varb1,
VarBindAndFailure vbfail1,
SnmpPDU pdu)
void setErrorValueForGetVarBind(VarBindAndFailure vbfail1,
SnmpVarBind varb1,
int index,
AgentResource agentSource)
boolean isValidErrValue(byte val)
int getNextSubId(SnmpVarBind varb)
int getNextSubId(int pos)
int getSubId(SnmpVarBind varb)
void setRequestCell(AgentNode cell)
AgentNode getRequestCell()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||