All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.snmp.manager.Request

java.lang.Object
   |
   +----com.sun.jaw.snmp.manager.Request

public abstract class Request
extends Object
This class is an abtract representation of a request.


Variable Index

 o stAborted
Status of a request: request aborted.
 o stInProgress
Status of a request: in progress.
 o stInternalError
Status of a request: internal error occured.
 o stNeverUsed
Status of a request: request never used.
 o stReceivedReply
Status of a request: reply received.
 o stResultsAvailable
Status of a request: result available for the request.
 o stTimeout
Status of a request: timeout.
 o stWaitingForReply
Status of a request: waiting for reply.
 o stWaitingToSend
Status of a request: waiting to be sent.

Method Index

 o action()
This method decides whether the request is to be retried.
 o allowMultiplex()
Checks to see if this request can be multiplexed with other requests.
 o cancelRequest()
Cancels the active request and removes itself from polling list.
 o getAbsMaxTimeToWait()
Returns absolute time in milliseconds (based on epoch time) before which a response is expected from a agent.
 o getAbsNextPollTime()
Returns absolute time in milliseconds (based on epoch time) when the next polling activity will begin.
 o getMaxRetry()
Returns the maximum number of retries before declaring that the peer is not responding.
 o getPollTimestamp()
Returns the absolute time (based on epoch time) when the poll started.
 o getRequestId()
Get the request id (invoke identifier) of the current request.
 o getRequestStatus()
get current status of the request.
 o getRetryCount()
Get the number of retries performed for the current request.
 o inProgress()
Indicates whether or not the request is in progress.
 o invokeOnResponse(Object)
For Java DMK internal use only.
 o isAborted()
Indicates whether or not the request was aborted.
 o isResultAvailable()
 o setPreviousPollTimestamp(long)
For Java DMK internal use only.
 o setTimeout(int)
For Java DMK internal use only.
 o stopRequest()
This method cancels an active request and removes it from the polling list.
 o timeRemainingForAction(long)
For Java DMK internal use only.
 o toString()
Get a string representation of the request.

Variables

 o stInProgress
 public static final int stInProgress
Status of a request: in progress.

 o stWaitingToSend
 public static final int stWaitingToSend
Status of a request: waiting to be sent.

 o stWaitingForReply
 public static final int stWaitingForReply
Status of a request: waiting for reply.

 o stReceivedReply
 public static final int stReceivedReply
Status of a request: reply received.

 o stAborted
 public static final int stAborted
Status of a request: request aborted.

 o stTimeout
 public static final int stTimeout
Status of a request: timeout.

 o stInternalError
 public static final int stInternalError
Status of a request: internal error occured.

 o stResultsAvailable
 public static final int stResultsAvailable
Status of a request: result available for the request.

 o stNeverUsed
 public static final int stNeverUsed
Status of a request: request never used.

Methods

 o getMaxRetry
 public abstract int getMaxRetry()
Returns the maximum number of retries before declaring that the peer is not responding.

 o allowMultiplex
 public abstract boolean allowMultiplex()
Checks to see if this request can be multiplexed with other requests.

 o cancelRequest
 public abstract void cancelRequest()
Cancels the active request and removes itself from polling list.

 o getRetryCount
 public final synchronized int getRetryCount()
Get the number of retries performed for the current request.

 o getRequestId
 public final synchronized int getRequestId()
Get the request id (invoke identifier) of the current request.

 o getRequestStatus
 public final synchronized int getRequestStatus()
get current status of the request.

 o setTimeout
 public final synchronized void setTimeout(int value)
For Java DMK internal use only.

 o isAborted
 public final synchronized boolean isAborted()
Indicates whether or not the request was aborted.

 o inProgress
 public final synchronized boolean inProgress()
Indicates whether or not the request is in progress.

 o isResultAvailable
 public final synchronized boolean isResultAvailable()
 o stopRequest
 public synchronized void stopRequest()
This method cancels an active request and removes it from the polling list.

 o action
 public void action()
This method decides whether the request is to be retried. This is used if the peer did not respond to a previous request. If the request exceeds the retry limit, a timeout is signaled.

See Also:
SnmpHandlerIf
 o getAbsNextPollTime
 public final synchronized long getAbsNextPollTime()
Returns absolute time in milliseconds (based on epoch time) when the next polling activity will begin.

Returns:
time when polling will begin.
 o getAbsMaxTimeToWait
 public final synchronized long getAbsMaxTimeToWait()
Returns absolute time in milliseconds (based on epoch time) before which a response is expected from a agent.

Returns:
time within which a response is expected.
 o setPreviousPollTimestamp
 public final synchronized void setPreviousPollTimestamp(long prev)
For Java DMK internal use only.

 o getPollTimestamp
 public final synchronized long getPollTimestamp()
Returns the absolute time (based on epoch time) when the poll started.

Returns:
time the polling started.
 o timeRemainingForAction
 public long timeRemainingForAction(long currtime)
For Java DMK internal use only.

 o toString
 public synchronized String toString()
Get a string representation of the request.

Overrides:
toString in class Object
 o invokeOnResponse
 public abstract void invokeOnResponse(Object responseObj)
For Java DMK internal use only.


All Packages  Class Hierarchy  This Package  Previous  Next  Index