org.snmp4j.agent.agentx
Class AgentXRegisterPDU

java.lang.Object
  extended by org.snmp4j.agent.agentx.AgentXPDU
      extended by org.snmp4j.agent.agentx.AgentXContextPDU
          extended by org.snmp4j.agent.agentx.AgentXRegisterPDU
Direct Known Subclasses:
AgentXUnregisterPDU

public class AgentXRegisterPDU
extends AgentXContextPDU


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
  AgentXRegisterPDU(AgentXMessageHeader header)
           
  AgentXRegisterPDU(byte flags, int sessionID, int transactionID, int packetID)
           
protected AgentXRegisterPDU(byte type, org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID subtree, byte priority, byte rangeSubID, int upperBound)
           
  AgentXRegisterPDU(org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID subtree, byte priority, byte rangeSubID, int upperBound)
           
 
Method Summary
 void decodeAfterContext(java.nio.ByteBuffer buf, int length)
           
protected  void encodeAfterContext(java.nio.ByteBuffer buf)
           
 int getAfterContextLength()
           
 org.snmp4j.smi.OctetString getContext()
           
 byte getPriority()
           
 byte getRangeSubID()
           
 AgentXRegion getRegion()
           
 org.snmp4j.smi.OID getSubtree()
           
 byte getTimeout()
           
 int getUpperBound()
           
 void setContext(org.snmp4j.smi.OctetString context)
           
 void setPriority(byte priority)
           
 void setRangeSubID(byte rangeSubID)
           
 void setSubtree(org.snmp4j.smi.OID subtree)
           
 void setTimeout(byte timeout)
           
 void setUpperBound(int upperBound)
           
protected  java.lang.String toStringExtMembers()
           
 
Methods inherited from class org.snmp4j.agent.agentx.AgentXContextPDU
beforeEncode, decodePayload, encodePayload, getPayloadLength
 
Methods inherited from class org.snmp4j.agent.agentx.AgentXPDU
addFlag, decode, encode, getByteOrder, getFlags, getPacketID, getSessionID, getTransactionID, getType, getVersion, isConfirmedPDU, isFlagSet, main, setByteOrder, setFlags, setPacketID, setSessionAttributes, setSessionID, setTransactionID, setType, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentXRegisterPDU

public AgentXRegisterPDU(byte flags,
                         int sessionID,
                         int transactionID,
                         int packetID)

AgentXRegisterPDU

public AgentXRegisterPDU(AgentXMessageHeader header)

AgentXRegisterPDU

public AgentXRegisterPDU(org.snmp4j.smi.OctetString context,
                         org.snmp4j.smi.OID subtree,
                         byte priority,
                         byte rangeSubID,
                         int upperBound)

AgentXRegisterPDU

protected AgentXRegisterPDU(byte type,
                            org.snmp4j.smi.OctetString context,
                            org.snmp4j.smi.OID subtree,
                            byte priority,
                            byte rangeSubID,
                            int upperBound)
Method Detail

decodeAfterContext

public void decodeAfterContext(java.nio.ByteBuffer buf,
                               int length)
                        throws java.io.IOException
Specified by:
decodeAfterContext in class AgentXContextPDU
Throws:
java.io.IOException

getContext

public org.snmp4j.smi.OctetString getContext()
Overrides:
getContext in class AgentXContextPDU

getPriority

public byte getPriority()

getRangeSubID

public byte getRangeSubID()

getSubtree

public org.snmp4j.smi.OID getSubtree()

getTimeout

public byte getTimeout()

getUpperBound

public int getUpperBound()

setContext

public void setContext(org.snmp4j.smi.OctetString context)
Overrides:
setContext in class AgentXContextPDU

setPriority

public void setPriority(byte priority)

setRangeSubID

public void setRangeSubID(byte rangeSubID)

setSubtree

public void setSubtree(org.snmp4j.smi.OID subtree)

setTimeout

public void setTimeout(byte timeout)

setUpperBound

public void setUpperBound(int upperBound)

getAfterContextLength

public int getAfterContextLength()
Specified by:
getAfterContextLength in class AgentXContextPDU

getRegion

public AgentXRegion getRegion()

encodeAfterContext

protected void encodeAfterContext(java.nio.ByteBuffer buf)
Specified by:
encodeAfterContext in class AgentXContextPDU

toStringExtMembers

protected java.lang.String toStringExtMembers()
Overrides:
toStringExtMembers in class AgentXContextPDU

Copyright 2005-2011 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.