Luky Library - 4.1.1 (20061117-1148)

luky.snmp
Class AdvancedSnmpManagerObject

java.lang.Object
  extended by luky.snmp.AdvancedSnmpManagerObject

public class AdvancedSnmpManagerObject
extends Object

The AdvancedSnmpManagerObject creates a PDU object that will be used by the AdvancedSnmpManager for polling of statuses Revision Changes :

Version:
1.03
Author:
Chris Lukassen
 

Constructor Summary
AdvancedSnmpManagerObject(SnmpContextBasisFace context, String oid, Observer obs)
          Constructor
 
Method Summary
 String getHost()
          returns the host of this AdvancedSnmpManagerObject
 String getOid()
          returns the Oid of this AdvancedSnmpManagerObject
 varbind performBlockingGet(String oid)
          PerformBlockingGet, requests the result and waits for the answer
 varbind performBlockingSet(String oid, String val)
          PerformBlockingSet, requests the result and waits for the answer
 void performGet()
          PerformGet, requests the result, and passes it to the observer
 void setRepeatIntervals(int[] repeats)
          sets the intervals of the polling, default is { 500, 500, 1000, 2000, 2000, 3000 } (ms)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedSnmpManagerObject

public AdvancedSnmpManagerObject(SnmpContextBasisFace context,
                                 String oid,
                                 Observer obs)
Constructor

Parameters:
context - the SnmpContextBasisFace
oid - the oid
obs - the Observer that will be notified when the answer is received
Method Detail

getHost

public String getHost()
returns the host of this AdvancedSnmpManagerObject


setRepeatIntervals

public void setRepeatIntervals(int[] repeats)
sets the intervals of the polling, default is { 500, 500, 1000, 2000, 2000, 3000 } (ms)


getOid

public String getOid()
returns the Oid of this AdvancedSnmpManagerObject


performGet

public void performGet()
                throws PduException,
                       IOException
PerformGet, requests the result, and passes it to the observer

Throws:
PduException
IOException

performBlockingSet

public varbind performBlockingSet(String oid,
                                  String val)
                           throws IllegalArgumentException,
                                  IOException,
                                  PduException
PerformBlockingSet, requests the result and waits for the answer

Throws:
IllegalArgumentException
IOException
PduException

performBlockingGet

public varbind performBlockingGet(String oid)
                           throws IllegalArgumentException,
                                  IOException,
                                  PduException
PerformBlockingGet, requests the result and waits for the answer

Throws:
IllegalArgumentException
IOException
PduException

Luky Library - 4.1.1 (20061117-1148)