org.snmp4j.agent.agentx.subagent
Class AgentXRequest.AgentXSubRequest

java.lang.Object
  extended by org.snmp4j.agent.agentx.subagent.AgentXRequest.AgentXSubRequest
All Implemented Interfaces:
java.util.EventListener, org.snmp4j.agent.request.RequestStatusListener, org.snmp4j.agent.request.SubRequest
Enclosing class:
AgentXRequest

public class AgentXRequest.AgentXSubRequest
extends java.lang.Object
implements org.snmp4j.agent.request.SubRequest, org.snmp4j.agent.request.RequestStatusListener

The AgentXSubRequest implements the SubRequest interface for AgentX sub-requests.

Version:
1.0
Author:
Frank Fock

Constructor Summary
protected AgentXRequest.AgentXSubRequest(AgentXRequest.AgentXSubRequest predecessor, int index)
           
protected AgentXRequest.AgentXSubRequest(org.snmp4j.agent.MOScope searchRange, int index)
           
protected AgentXRequest.AgentXSubRequest(org.snmp4j.smi.VariableBinding subrequest, int index)
           
 
Method Summary
 void completed()
           
 int getErrorStatus()
           
 int getIndex()
           
 org.snmp4j.agent.MOQuery getQuery()
           
 org.snmp4j.agent.request.Request getRequest()
           
 org.snmp4j.agent.MOScope getScope()
           
 org.snmp4j.agent.request.RequestStatus getStatus()
           
 org.snmp4j.agent.ManagedObject getTargetMO()
           
 java.lang.Object getUndoValue()
           
 java.lang.Object getUserObject()
           
 org.snmp4j.smi.VariableBinding getVariableBinding()
           
 boolean hasError()
           
 boolean isComplete()
           
 org.snmp4j.agent.request.SubRequestIterator repetitions()
           
 void requestStatusChanged(org.snmp4j.agent.request.RequestStatusEvent event)
           
 void setErrorStatus(int errorStatus)
           
 void setQuery(org.snmp4j.agent.MOQuery query)
           
 void setStatus(org.snmp4j.agent.request.RequestStatus status)
           
 void setTargetMO(org.snmp4j.agent.ManagedObject managedObject)
           
 void setUndoValue(java.lang.Object undoInformation)
           
 void setUserObject(java.lang.Object userObject)
           
 java.lang.String toString()
           
 void updateNextRepetition()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentXRequest.AgentXSubRequest

protected AgentXRequest.AgentXSubRequest(org.snmp4j.agent.MOScope searchRange,
                                         int index)

AgentXRequest.AgentXSubRequest

protected AgentXRequest.AgentXSubRequest(org.snmp4j.smi.VariableBinding subrequest,
                                         int index)

AgentXRequest.AgentXSubRequest

protected AgentXRequest.AgentXSubRequest(AgentXRequest.AgentXSubRequest predecessor,
                                         int index)
Method Detail

getRequest

public org.snmp4j.agent.request.Request getRequest()
Specified by:
getRequest in interface org.snmp4j.agent.request.SubRequest

getStatus

public org.snmp4j.agent.request.RequestStatus getStatus()
Specified by:
getStatus in interface org.snmp4j.agent.request.SubRequest

getVariableBinding

public org.snmp4j.smi.VariableBinding getVariableBinding()
Specified by:
getVariableBinding in interface org.snmp4j.agent.request.SubRequest

setStatus

public void setStatus(org.snmp4j.agent.request.RequestStatus status)

getUndoValue

public java.lang.Object getUndoValue()
Specified by:
getUndoValue in interface org.snmp4j.agent.request.SubRequest

setUndoValue

public void setUndoValue(java.lang.Object undoInformation)
Specified by:
setUndoValue in interface org.snmp4j.agent.request.SubRequest

requestStatusChanged

public void requestStatusChanged(org.snmp4j.agent.request.RequestStatusEvent event)
Specified by:
requestStatusChanged in interface org.snmp4j.agent.request.RequestStatusListener

getScope

public org.snmp4j.agent.MOScope getScope()
Specified by:
getScope in interface org.snmp4j.agent.request.SubRequest

completed

public void completed()
Specified by:
completed in interface org.snmp4j.agent.request.SubRequest

hasError

public boolean hasError()
Specified by:
hasError in interface org.snmp4j.agent.request.SubRequest

isComplete

public boolean isComplete()
Specified by:
isComplete in interface org.snmp4j.agent.request.SubRequest

setTargetMO

public void setTargetMO(org.snmp4j.agent.ManagedObject managedObject)
Specified by:
setTargetMO in interface org.snmp4j.agent.request.SubRequest

getTargetMO

public org.snmp4j.agent.ManagedObject getTargetMO()
Specified by:
getTargetMO in interface org.snmp4j.agent.request.SubRequest

getIndex

public int getIndex()
Specified by:
getIndex in interface org.snmp4j.agent.request.SubRequest

setQuery

public void setQuery(org.snmp4j.agent.MOQuery query)
Specified by:
setQuery in interface org.snmp4j.agent.request.SubRequest

getQuery

public org.snmp4j.agent.MOQuery getQuery()
Specified by:
getQuery in interface org.snmp4j.agent.request.SubRequest

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

repetitions

public org.snmp4j.agent.request.SubRequestIterator repetitions()
Specified by:
repetitions in interface org.snmp4j.agent.request.SubRequest

updateNextRepetition

public void updateNextRepetition()
Specified by:
updateNextRepetition in interface org.snmp4j.agent.request.SubRequest

setErrorStatus

public final void setErrorStatus(int errorStatus)
Specified by:
setErrorStatus in interface org.snmp4j.agent.request.SubRequest

getErrorStatus

public final int getErrorStatus()
Specified by:
getErrorStatus in interface org.snmp4j.agent.request.SubRequest

getUserObject

public java.lang.Object getUserObject()
Specified by:
getUserObject in interface org.snmp4j.agent.request.SubRequest

setUserObject

public void setUserObject(java.lang.Object userObject)
Specified by:
setUserObject in interface org.snmp4j.agent.request.SubRequest

Copyright 2005-2011 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.