|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.snmp.manager.Request
This class is an abtract representation of a request.
Field Summary | |
protected int |
retry
Number of retries performed for the current polling operation. |
static int |
stAborted
Status of a request: request aborted. |
protected static int |
stBase
Base status of a request. |
static int |
stInProgress
Status of a request: in progress. |
static int |
stInternalError
Status of a request: internal error occured. |
static int |
stNeverUsed
Status of a request: request never used. |
static int |
stReceivedReply
Status of a request: reply received. |
static int |
stResultsAvailable
Status of a request: result available for the request. |
static int |
stTimeout
Status of a request: timeout. |
static int |
stWaitingForReply
Status of a request: waiting for reply. |
static int |
stWaitingToSend
Status of a request: waiting to be sent. |
protected int |
timeout
Timeout. |
Constructor Summary | |
protected |
Request()
Default constructor. |
Method Summary | |
abstract boolean |
allowMultiplex()
Checks to see if this request can be multiplexed with other requests. |
abstract void |
cancelRequest()
Cancels the active request and removes itself from polling list. |
long |
getAbsMaxTimeToWait()
Gets absolute time in milliseconds (based on epoch time) before which a response is expected from a agent. |
long |
getAbsNextPollTime()
Gets absolute time in milliseconds (based on epoch time) when the next polling activity will begin. |
abstract int |
getMaxRetry()
Gets the maximum number of retries before declaring that the peer is not responding. |
long |
getPollTimestamp()
Gets the absolute time (based on epoch time) when the poll started. |
int |
getRequestId()
Gets the request id (invoke identifier) of the current request. |
int |
getRequestStatus()
Gets the current status of the request. |
int |
getRetryCount()
Gets the number of retries performed for the current request. |
protected void |
initNewRequest()
Initializes the request id from the request counter. |
boolean |
inProgress()
Indicates whether or not the request is in progress. |
boolean |
isAborted()
Indicates whether or not the request was aborted. |
boolean |
isResultAvailable()
Indicates whether or not the request result is available. |
java.lang.String |
toString()
Gets a string representation of the request. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected static final int stBase
public static final int stInProgress
public static final int stWaitingToSend
public static final int stWaitingForReply
public static final int stReceivedReply
public static final int stAborted
public static final int stTimeout
public static final int stInternalError
public static final int stResultsAvailable
public static final int stNeverUsed
protected int retry
protected int timeout
Constructor Detail |
protected Request()
Method Detail |
public abstract int getMaxRetry()
public abstract boolean allowMultiplex()
public abstract void cancelRequest()
public final int getRetryCount()
public final int getRequestId()
public final int getRequestStatus()
public final boolean isAborted()
public final boolean inProgress()
public final boolean isResultAvailable()
public final long getAbsNextPollTime()
public final long getAbsMaxTimeToWait()
public final long getPollTimestamp()
protected final void initNewRequest()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |