public class AgentXProtocol extends Object implements org.snmp4j.transport.MessageLengthDecoder
| Constructor and Description |
|---|
AgentXProtocol() |
| Modifier and Type | Method and Description |
|---|---|
static AgentXMessageHeader |
decodeHeader(ByteBuffer buf) |
static org.snmp4j.smi.OctetString |
decodeOctetString(ByteBuffer buf) |
static boolean |
decodeOID(ByteBuffer buf,
org.snmp4j.smi.OID oid) |
static org.snmp4j.agent.MOScope[] |
decodeRanges(ByteBuffer buf) |
static org.snmp4j.agent.MOScope[] |
decodeRanges(ByteBuffer buf,
boolean lowerAlwaysIncluded) |
static org.snmp4j.smi.VariableBinding[] |
decodeVariableBindings(ByteBuffer buf) |
static org.snmp4j.smi.Variable |
decodeVariableData(ByteBuffer buf,
int syntax) |
static void |
encodeOctetString(ByteBuffer buf,
org.snmp4j.smi.OctetString os) |
static void |
encodeOID(ByteBuffer buf,
org.snmp4j.smi.OID oid,
boolean include) |
static void |
encodeRanges(ByteBuffer buf,
org.snmp4j.agent.MOScope[] searchRanges) |
static void |
encodeVariableData(ByteBuffer buf,
org.snmp4j.smi.Variable v) |
static void |
encodeVaribleBindings(ByteBuffer buf,
org.snmp4j.smi.VariableBinding[] vbs) |
org.snmp4j.transport.MessageLength |
getMessageLength(ByteBuffer buf) |
int |
getMinHeaderLength() |
static int |
getOctetStringLength(int length) |
static int |
getOIDLength(int[] oid) |
static int |
getOIDLength(org.snmp4j.smi.OID oid) |
static int |
getRangesLength(org.snmp4j.agent.MOScope[] ranges) |
static int |
getVariableBindingsLength(org.snmp4j.smi.VariableBinding[] vbs) |
static int |
getVariableDataLength(org.snmp4j.smi.Variable v) |
static boolean |
isNonDefaultContextsEnabled() |
static void |
setNonDefaultContextsEnabled(boolean enabled) |
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, org.snmp4j.smi.OID oid, boolean include)
public static int getOIDLength(org.snmp4j.smi.OID oid)
public static int getOIDLength(int[] oid)
public static boolean decodeOID(ByteBuffer buf, org.snmp4j.smi.OID oid)
public static void encodeVariableData(ByteBuffer buf, org.snmp4j.smi.Variable v)
public static int getVariableDataLength(org.snmp4j.smi.Variable v)
public static org.snmp4j.smi.Variable decodeVariableData(ByteBuffer buf, int syntax)
public static org.snmp4j.smi.VariableBinding[] decodeVariableBindings(ByteBuffer buf)
public static void encodeVaribleBindings(ByteBuffer buf, org.snmp4j.smi.VariableBinding[] vbs)
public static void encodeRanges(ByteBuffer buf, org.snmp4j.agent.MOScope[] searchRanges)
public static int getOctetStringLength(int length)
public static void encodeOctetString(ByteBuffer buf, org.snmp4j.smi.OctetString os)
public static org.snmp4j.smi.OctetString decodeOctetString(ByteBuffer buf)
public static org.snmp4j.agent.MOScope[] decodeRanges(ByteBuffer buf)
public static org.snmp4j.agent.MOScope[] decodeRanges(ByteBuffer buf, boolean lowerAlwaysIncluded)
public static int getRangesLength(org.snmp4j.agent.MOScope[] ranges)
public static int getVariableBindingsLength(org.snmp4j.smi.VariableBinding[] vbs)
public int getMinHeaderLength()
getMinHeaderLength in interface org.snmp4j.transport.MessageLengthDecoderpublic org.snmp4j.transport.MessageLength getMessageLength(ByteBuffer buf) throws IOException
getMessageLength in interface org.snmp4j.transport.MessageLengthDecoderIOExceptionpublic static AgentXMessageHeader decodeHeader(ByteBuffer buf) throws IOException
IOExceptionpublic static void setNonDefaultContextsEnabled(boolean enabled)
public static boolean isNonDefaultContextsEnabled()
Copyright © 2020 SNMP4J.org. All rights reserved.