public class AgentXRequest extends AbstractRequest<AgentXRequest.AgentXSubRequest,AgentXCommandEvent,AgentXResponsePDU>
AgentXRequest
class represents AgentX sub-agent requests.
AgentX sub-agent requests are similar to SNMP requests but especially for
SET request processing and query scopes differences apply.Modifier and Type | Class and Description |
---|---|
class |
AgentXRequest.AgentXSubRequest
The
AgentXSubRequest implements the SubRequest
interface for AgentX sub-requests. |
class |
AgentXRequest.AgentXSubRequestIterator
The AgentXSubRequestIterator iterates over the subrequests in a AgentX
request.
|
Modifier and Type | Field and Description |
---|---|
static OctetString |
DEFAULT_CONTEXT |
protected Map<Object,Object> |
processingUserObjects |
errorStatus, phase, repeaterRowSize, repeaterStartIndex, reprocessCounter, response, source, subrequests, transactionID
PHASE_1PC, PHASE_2PC_CLEANUP, PHASE_2PC_COMMIT, PHASE_2PC_PREPARE, PHASE_2PC_UNDO, PHASE_INIT
Constructor and Description |
---|
AgentXRequest(AgentXCommandEvent request) |
Modifier and Type | Method and Description |
---|---|
protected void |
addRepeaterSubRequest() |
protected void |
assignErrorStatus2Response() |
OctetString |
getContext() |
protected int |
getMaxPhase() |
int |
getMaxRepetitions() |
int |
getMessageProcessingModel() |
int |
getNonRepeaters() |
Object |
getProcessingUserObject(Object key) |
AgentXResponsePDU |
getResponse() |
AgentXResponsePDU |
getResponsePDU() |
int |
getSecurityLevel() |
int |
getSecurityModel() |
OctetString |
getSecurityName() |
OctetString |
getViewName() |
int |
getViewType() |
protected boolean |
is2PC() |
boolean |
isBulkRequest() |
boolean |
isPhaseComplete() |
Iterator<AgentXRequest.AgentXSubRequest> |
iterator() |
static int |
nextTransactionID() |
Object |
setProcessingUserObject(Object key,
Object value) |
void |
setRequestEvent(AgentXCommandEvent source) |
protected void |
setupSubRequests() |
void |
setViewName(OctetString viewName) |
int |
size() |
String |
toString() |
equals, find, get, getErrorIndex, getErrorStatus, getPhase, getReprocessCounter, getSource, getTransactionID, hashCode, incReprocessCounter, initSubRequests, isComplete, nextPhase, resetCompletionStatus, resetProcessedStatus, setErrorStatus, setPhase
public static final OctetString DEFAULT_CONTEXT
public AgentXRequest(AgentXCommandEvent request)
public static int nextTransactionID()
public int size()
public boolean isBulkRequest()
isBulkRequest
in class AbstractRequest<AgentXRequest.AgentXSubRequest,AgentXCommandEvent,AgentXResponsePDU>
protected void setupSubRequests()
setupSubRequests
in class AbstractRequest<AgentXRequest.AgentXSubRequest,AgentXCommandEvent,AgentXResponsePDU>
public int getMaxRepetitions()
public int getNonRepeaters()
protected int getMaxPhase()
getMaxPhase
in class AbstractRequest<AgentXRequest.AgentXSubRequest,AgentXCommandEvent,AgentXResponsePDU>
public void setRequestEvent(AgentXCommandEvent source)
protected void assignErrorStatus2Response()
public AgentXResponsePDU getResponsePDU()
public AgentXResponsePDU getResponse()
getResponse
in interface Request<AgentXCommandEvent,AgentXResponsePDU,AgentXRequest.AgentXSubRequest>
getResponse
in class AbstractRequest<AgentXRequest.AgentXSubRequest,AgentXCommandEvent,AgentXResponsePDU>
public Iterator<AgentXRequest.AgentXSubRequest> iterator()
protected boolean is2PC()
public OctetString getContext()
public OctetString getViewName()
public void setViewName(OctetString viewName)
public int getSecurityLevel()
public int getSecurityModel()
public OctetString getSecurityName()
public int getViewType()
protected void addRepeaterSubRequest()
public int getMessageProcessingModel()
public String toString()
toString
in class AbstractRequest<AgentXRequest.AgentXSubRequest,AgentXCommandEvent,AgentXResponsePDU>
public boolean isPhaseComplete()
Copyright © 2016 SNMP4J.org. All rights reserved.