Overview | Package | Class | Tree | Deprecated | Index | Help
| SNMP Stack 5_1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uk.co.westhawk.snmp.pdu
Class InformPdu_vec

    java.lang.Object
      |
      +--java.util.Observable
            |
            +--uk.co.westhawk.snmp.stack.Pdu
                  |
                  +--uk.co.westhawk.snmp.stack.InformPdu
                        |
                        +--uk.co.westhawk.snmp.pdu.InformPdu_vec

public class InformPdu_vec
extends InformPdu

The InformPdu_vec class will inform a manager about a number of objects (OIDs), based on the Inform request.

Specify with `addOid()` the OIDs that should be informed with this InformPdu request. No more than `count` (see constructor) should be added. Add an Observer to the InformPdu with `addObserver()`, and send the InformPdu with `send()`.

Note, this PDU should be sent to port 162 (the default trap port) by default. You will have to create a SnmpContext with the ListeningContextFace.DEFAULT_TRAP_PORT as parameter!

Inform Requests are sent between managers. It is a kind of 'acknowlegded' trap since the receiving end should send a Response Pdu as reply. The varbind list has the same elements as the TrapPduv2.

Since:
  4_12
Version:
  $Revision: 3.4 $ $Date: 2006/02/09 14:20:09 $
Author:
  Birgit Arkesteijn
See Also:
  `Pdu.addOid(java.lang.String)`, `Pdu.send()`, `varbind`, `ListeningContextFace.DEFAULT_TRAP_PORT`

Field Summary

Fields inherited from class uk.co.westhawk.snmp.stack.Pdu
`added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId`

Constructor Summary
`InformPdu_vec(SnmpContextBasisFace con, int count)` Constructor.

Method Summary
`protected void` | `new_value(int n, varbind var)` The value of the request is set.
`protected void` | `tell_them()` This method notifies all observers.

Methods inherited from class uk.co.westhawk.snmp.stack.Pdu
`addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, isExpectingResponse, isTimedOut, notifyObservers, printVars, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, toString, toString, waitForSelf`

Methods inherited from class java.util.Observable
`addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### InformPdu_vec

    public InformPdu_vec(SnmpContextBasisFace con,
                         int count)

  Constructor.

Parameters:
  `con` - The context of the request
  `count` - The number of OIDs to be get

Method Detail

### new_value

    protected void new_value(int n,
                             varbind var)

  The value of the request is set. This will be called by InformPdu.fillin().

  Overrides:
    `new_value` in class `Pdu`
  Parameters:
    `n` - the index of the value
  See Also:
    `Pdu.new_value(int, uk.co.westhawk.snmp.stack.varbind)`

### tell_them

    protected void tell_them()

  This method notifies all observers. This will be called by InformPdu.fillin().

  If no exception occurred whilst receiving the response, the Object to the update() method of the Observer will be an array of varbinds, so they may contains any AsnObject type. If an exception occurred, that exception will be passed as the Object to the update() method.

  Overrides:
    `tell_them` in class `Pdu`

Overview | Package | Class | Tree | Deprecated | Index | Help
| SNMP Stack 5_1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD