com.tivoli.twg.snmp
Interface SNMPRemoteResponse


public interface SNMPRemoteResponse

This interface is designed to work in conjunction with SNMPRemoteRequest. It is to be implemented by user of that interface to allow the results to be communicated back. Since all operations of the SNMPRemoteRequest interface methods complete asyncronously, the methods of this interface act as callback or response handlers. For coorelation purposes, each method carries a reference to the instance of SNMPRemoteRequest that originated the request.

See Also:
SNMPRemoteRequest

Field Summary
static long AUTHORIZATION_ERROR
           
static long BAD_VALUE
           
static long COMMIT_FAILED
           
static long DECODE_ERROR
           
static long GENERAL_ERROR
           
static int GET
           
static int GETBULK
           
static int GETNEXT
           
static long INCONSISTENT_NAME
           
static long INCONSISTENT_VALUE
           
static int INFORM
           
static long NO_ACCESS
           
static long NO_CREATION
           
static long NO_ERROR
           
static long NO_SUCH_NAME
           
static long NOT_WRITEABLE
           
static long READ_ONLY
           
static long RESOURCE_UNAVAILABLE
           
static long SEND_ERROR
           
static long SESSION_CLOSED
           
static int SET
           
static long TIMEOUT
           
static long TOO_BIG
           
static long UNDO_FAILED
           
static long WRONG_ENCODING
           
static long WRONG_LENGTH
           
static long WRONG_TYPE
           
static long WRONG_VALUE
           
static long WRONG_VERSION
           
 
Method Summary
 void response(SNMPRemoteRequest caller, long moid, int requestType, long requestID, VariableBinding[] vbl, long errorIndex)
          Called by the implemention of SNMPRemoteRequest when a SNMP request has completed successfully.
 

Field Detail

GET

public static final int GET
See Also:
Constant Field Values

GETNEXT

public static final int GETNEXT
See Also:
Constant Field Values

SET

public static final int SET
See Also:
Constant Field Values

GETBULK

public static final int GETBULK
See Also:
Constant Field Values

INFORM

public static final int INFORM
See Also:
Constant Field Values

NO_ERROR

public static final long NO_ERROR
See Also:
Constant Field Values

TOO_BIG

public static final long TOO_BIG
See Also:
Constant Field Values

NO_SUCH_NAME

public static final long NO_SUCH_NAME
See Also:
Constant Field Values

BAD_VALUE

public static final long BAD_VALUE
See Also:
Constant Field Values

READ_ONLY

public static final long READ_ONLY
See Also:
Constant Field Values

GENERAL_ERROR

public static final long GENERAL_ERROR
See Also:
Constant Field Values

NO_ACCESS

public static final long NO_ACCESS
See Also:
Constant Field Values

WRONG_TYPE

public static final long WRONG_TYPE
See Also:
Constant Field Values

WRONG_LENGTH

public static final long WRONG_LENGTH
See Also:
Constant Field Values

WRONG_ENCODING

public static final long WRONG_ENCODING
See Also:
Constant Field Values

WRONG_VALUE

public static final long WRONG_VALUE
See Also:
Constant Field Values

NO_CREATION

public static final long NO_CREATION
See Also:
Constant Field Values

INCONSISTENT_VALUE

public static final long INCONSISTENT_VALUE
See Also:
Constant Field Values

RESOURCE_UNAVAILABLE

public static final long RESOURCE_UNAVAILABLE
See Also:
Constant Field Values

COMMIT_FAILED

public static final long COMMIT_FAILED
See Also:
Constant Field Values

UNDO_FAILED

public static final long UNDO_FAILED
See Also:
Constant Field Values

AUTHORIZATION_ERROR

public static final long AUTHORIZATION_ERROR
See Also:
Constant Field Values

NOT_WRITEABLE

public static final long NOT_WRITEABLE
See Also:
Constant Field Values

INCONSISTENT_NAME

public static final long INCONSISTENT_NAME
See Also:
Constant Field Values

TIMEOUT

public static final long TIMEOUT
See Also:
Constant Field Values

SEND_ERROR

public static final long SEND_ERROR
See Also:
Constant Field Values

SESSION_CLOSED

public static final long SESSION_CLOSED
See Also:
Constant Field Values

DECODE_ERROR

public static final long DECODE_ERROR
See Also:
Constant Field Values

WRONG_VERSION

public static final long WRONG_VERSION
See Also:
Constant Field Values
Method Detail

response

public void response(SNMPRemoteRequest caller,
                     long moid,
                     int requestType,
                     long requestID,
                     VariableBinding[] vbl,
                     long errorIndex)
Called by the implemention of SNMPRemoteRequest when a SNMP request has completed successfully.

Parameters:
caller - the object that sent the PDU
moid - the target moid
requestType - one of 5 request types that expect reponses, Get, GetNext, etc
requestID - ID of the request PDU correlated to this repsonse
vbl - a VariableBinding with oids, types, and values
errorIndex - value of the error code
See Also:
SNMPRemoteRequest, VariableBinding