Package org.snmp4j.agent.agentx
Class AgentXRemoveAgentCapsPDU
java.lang.Object
org.snmp4j.agent.agentx.AgentXPDU
org.snmp4j.agent.agentx.AgentXContextPDU
org.snmp4j.agent.agentx.AgentXRemoveAgentCapsPDU
- All Implemented Interfaces:
Serializable
The
AgentXRemoveAgentCapsPDU
represents a MIB region which can be an entire MIB or a single object-instance.- See Also:
-
Field Summary
Fields inherited from class org.snmp4j.agent.agentx.AgentXContextPDU
context
Fields inherited from class org.snmp4j.agent.agentx.AgentXPDU
AGENTX_ADDAGENTCAPS_PDU, AGENTX_CLEANUPSET_PDU, AGENTX_CLOSE_PDU, AGENTX_COMMITSET_PDU, AGENTX_GET_PDU, AGENTX_GETBULK_PDU, AGENTX_GETNEXT_PDU, AGENTX_INDEXALLOCATE_PDU, AGENTX_INDEXDEALLOCATE_PDU, AGENTX_NOTIFY_PDU, AGENTX_OPEN_PDU, AGENTX_PING_PDU, AGENTX_REGISTER_PDU, AGENTX_REMOVEAGENTCAPS_PDU, AGENTX_RESPONSE_PDU, AGENTX_TESTSET_PDU, AGENTX_UNDOSET_PDU, AGENTX_UNREGISTER_PDU, byteOrder, flags, packetID, RESERVED, sessionID, transactionID, type, version
-
Constructor Summary
ConstructorDescriptionCreates aAgentXRemoveAgentCapsPDU
from aAgentXMessageHeader
.AgentXRemoveAgentCapsPDU
(org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID id) Creates a newAgentXRemoveAgentCapsPDU
from context and agent capsOID
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decodeAfterContext
(ByteBuffer buf, int length) Decode this PDU after the end of the encoded context.protected void
Encode this PDU after already encoded context (thus context will not be encoded by this operation).protected int
Gets the encoded length after an already encoded context.org.snmp4j.smi.OID
getId()
Gets the agent capsOID
.void
setId
(org.snmp4j.smi.OID id) Sets the agent capsOID
associated with this region entry.Methods inherited from class org.snmp4j.agent.agentx.AgentXContextPDU
beforeEncode, decodePayload, encodePayload, getContext, getPayloadLength, setContext, toStringExtMembers
Methods inherited from class org.snmp4j.agent.agentx.AgentXPDU
addFlag, decode, encode, getByteOrder, getFlags, getPacketID, getSessionID, getTransactionID, getType, getVersion, isConfirmedPDU, isFlagSet, setByteOrder, setFlags, setPacketID, setSessionAttributes, setSessionID, setTransactionID, setType, setVersion, toString
-
Constructor Details
-
AgentXRemoveAgentCapsPDU
public AgentXRemoveAgentCapsPDU(org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID id) Creates a newAgentXRemoveAgentCapsPDU
from context and agent capsOID
.- Parameters:
context
- the SNMPv3 context.id
- the agent capsOID
.
-
AgentXRemoveAgentCapsPDU
Creates aAgentXRemoveAgentCapsPDU
from aAgentXMessageHeader
.- Parameters:
header
- the message header.
-
-
Method Details
-
decodeAfterContext
Description copied from class:AgentXContextPDU
Decode this PDU after the end of the encoded context.- Specified by:
decodeAfterContext
in classAgentXContextPDU
- Parameters:
buf
- the buffer positioned at the end of the encoded context.length
- the length of the PDU to be decoded.- Throws:
IOException
- if the buffer contains less data than expected.
-
encodeAfterContext
Description copied from class:AgentXContextPDU
Encode this PDU after already encoded context (thus context will not be encoded by this operation).- Specified by:
encodeAfterContext
in classAgentXContextPDU
- Parameters:
buf
- the target buffer.
-
getAfterContextLength
protected int getAfterContextLength()Description copied from class:AgentXContextPDU
Gets the encoded length after an already encoded context.- Specified by:
getAfterContextLength
in classAgentXContextPDU
- Returns:
- the BER encoded length (without context).
-
getId
public org.snmp4j.smi.OID getId()Gets the agent capsOID
.- Returns:
- the agent caps
OID
.
-
setId
public void setId(org.snmp4j.smi.OID id) Sets the agent capsOID
associated with this region entry.- Parameters:
id
- an agent capsOID
.
-