com.ireasoning.protocol.snmp
Class SnmpInform
java.lang.Object
com.ireasoning.protocol.snmp.VarBindContainer
com.ireasoning.protocol.snmp.SnmpPdu
com.ireasoning.protocol.snmp.SnmpV2Notification
com.ireasoning.protocol.snmp.SnmpInform
- All Implemented Interfaces:
- Msg, Serializable, SnmpDataType
- public class SnmpInform
- extends SnmpV2Notification
This class represents SNMPv2 and SNMPv3 Inform type object.
- See Also:
SnmpTrap
,
Serialized Form
Fields inherited from interface com.ireasoning.protocol.snmp.SnmpDataType |
BITS, BITSTRING, COUNTER32, COUNTER64, END_OF_MIB_VIEW, END_OF_MIB_VIEW_OBJECT, GAUGE32, INTEGER, IPADDRESS, NO_SUCH_INSTANCE, NO_SUCH_INSTANCE_OBJECT, NO_SUCH_OBJECT, NO_SUCH_OBJECT_OBJECT, NULL, OCTETSTRING, OID, OPAQUE, PDU, SEQUENCE, SEQUENCEOF, serialVersionUID, TIMETICKS, UNSIGNED32, VARBIND |
Fields inherited from interface com.ireasoning.protocol.Msg |
ERROR_TYPE |
Methods inherited from class com.ireasoning.protocol.snmp.SnmpV2Notification |
getIpAddress, getObjects, getSnmpTrapOID, getSysUpTime, getSysUpTimeString, setIpAddress, setIpAddress, setSysUpTime, toString, toV1Trap, toV1Trap |
Methods inherited from class com.ireasoning.protocol.snmp.SnmpPdu |
decodePdu, encode, encodePdu, getCommand, getCommunity, getContextEngineID, getContextName, getDestinationAddress, getDestinationPort, getErrorIndex, getErrorStatus, getErrorStatusString, getErrorStatusString, getErrorString, getMaxRepetitions, getNonRepeaters, getRequestID, getSnmpV3MsgHeader, getSnmpv3MsgSecurityParameters, getSourceAddress, getSourcePort, getVersion, hasMore, isSnmpV3AuthenticationFailed, setCommand, setCommunity, setContextEngineID, setContextName, setDestinationAddress, setDestinationPort, setErrorIndex, setErrorStatus, setHasMore, setMaxRepetitions, setNonRepeaters, setOID, setOID, setOIDs, setOIDs, setRequestID, setSourceAddress, setSourcePort, setVersion |
Methods inherited from class com.ireasoning.protocol.snmp.VarBindContainer |
addVarBind, addVarBinds, addVarBinds, getFirstVarBind, getLastVarBind, getVarBind, getVarBindCount, getVarBinds, removeAllVarBinds, removeAllVarBinds, removeVarBind, setVarBinds, setVarBinds |
SnmpInform
public SnmpInform(long sysUpTime,
SnmpOID snmpTrapOID,
SnmpVarBind[] varbinds)
- Creates an SnmpInform object using passed parameters
- Parameters:
sysUpTime
- the sysUpTime valuesnmpTrapOID
- the snmpTrapOID valuevarbinds
- the other variable bindings of this object
SnmpInform
public SnmpInform(long sysUpTime,
SnmpOID snmpTrapOID)
- Creates an SnmpInform object using passed parameters
- Parameters:
sysUpTime
- the sysUpTime valuesnmpTrapOID
- the snmpTrapOID value
SnmpInform
public SnmpInform(SnmpInform inform)
- Makes a copy of passed
SnmpInform
object
getType
public int getType()
- Returns SnmpConst.INFORM
- Specified by:
getType
in interface SnmpDataType
- Overrides:
getType
in class SnmpPdu
getTypeString
public String getTypeString()
- Returns "Inform"
- Specified by:
getTypeString
in interface SnmpDataType
- Overrides:
getTypeString
in class SnmpPdu
copy
public SnmpDataType copy()
- Description copied from interface:
SnmpDataType
- Makes a copy of itself
- Specified by:
copy
in interface SnmpDataType
- Overrides:
copy
in class SnmpPdu
Copyright © 2002 iReasoning Inc. All Rights Reserved.