public class AgentXProtocol extends Object implements MessageLengthDecoder
Constructor and Description |
---|
AgentXProtocol() |
public static final byte VERSION_1_0
public static final byte REASON_OTHER
public static final byte REASON_PARSE_ERROR
public static final byte REASON_PROTOCOL_ERROR
public static final byte REASON_TIMEOUTS
public static final byte REASON_SHUTDOWN
public static final byte REASON_BY_MANAGER
public static final int AGENTX_OPEN_FAILED
public static final int AGENTX_NOT_OPEN
public static final int AGENTX_INDEX_WRONG_TYPE
public static final int AGENTX_INDEX_ALREADY_ALLOCATED
public static final int AGENTX_INDEX_NONE_AVAILABLE
public static final int AGENTX_INDEX_NOT_ALLOCATED
public static final int AGENTX_UNSUPPORTED_CONTEXT
public static final int AGENTX_DUPLICATE_REGISTRATION
public static final int AGENTX_UNKNOWN_REGISTRATION
public static final int AGENTX_UNKNOWN_AGENTCAPS
public static final int AGENTX_PARSE_ERROR
public static final int AGENTX_REQUEST_DENIED
public static final int AGENTX_PROCESSING_ERROR
public static final int AGENTX_MAX_OID_LENGTH
public static final int AGENTX_SUCCESS
public static final int AGENTX_ERROR
public static final int AGENTX_DISCONNECT
public static final int AGENTX_BADVER
public static final int AGENTX_TIMEOUT
public static final int AGENTX_NOREG
public static final int AGENTX_DUPMAP
public static final byte FLAG_INSTANCE_REGISTRATION
public static final byte FLAG_NEW_INDEX
public static final byte FLAG_ANY_INDEX
public static final byte FLAG_NON_DEFAULT_CONTEXT
public static final byte FLAG_NETWORK_BYTE_ORDER
protected static final int AGENTX_INT_SIZE
public static final int HEADER_LENGTH
public static final int DEFAULT_TIMEOUT_SECONDS
public static final int DEFAULT_MAX_CONSECUTIVE_TIMEOUTS
public static final int DEFAULT_MAX_PARSE_ERRORS
public static final int MAX_TIMEOUT_SECONDS
public static final byte DEFAULT_PRIORITY
public static final int FLAG_ALLOCATE_INDEX
public static void encodeOID(ByteBuffer buf, OID oid, boolean include)
public static int getOIDLength(OID oid)
public static int getOIDLength(int[] oid)
public static boolean decodeOID(ByteBuffer buf, OID oid)
public static void encodeVariableData(ByteBuffer buf, Variable v)
public static int getVariableDataLength(Variable v)
public static Variable decodeVariableData(ByteBuffer buf, int syntax)
public static VariableBinding[] decodeVariableBindings(ByteBuffer buf)
public static void encodeVaribleBindings(ByteBuffer buf, VariableBinding[] vbs)
public static void encodeRanges(ByteBuffer buf, MOScope[] searchRanges)
public static int getOctetStringLength(int length)
public static void encodeOctetString(ByteBuffer buf, OctetString os)
public static OctetString decodeOctetString(ByteBuffer buf)
public static MOScope[] decodeRanges(ByteBuffer buf)
public static MOScope[] decodeRanges(ByteBuffer buf, boolean lowerAlwaysIncluded)
public static int getRangesLength(MOScope[] ranges)
public static int getVariableBindingsLength(VariableBinding[] vbs)
public int getMinHeaderLength()
getMinHeaderLength
in interface MessageLengthDecoder
public MessageLength getMessageLength(ByteBuffer buf) throws IOException
getMessageLength
in interface MessageLengthDecoder
IOException
public static AgentXMessageHeader decodeHeader(ByteBuffer buf) throws IOException
IOException
public static void setNonDefaultContextsEnabled(boolean enabled)
public static boolean isNonDefaultContextsEnabled()
Copyright © 2016 SNMP4J.org. All rights reserved.