net.fenyo.gnetwatch
Class SNMPManager

java.lang.Object
  extended by net.fenyo.gnetwatch.SNMPManager

public class SNMPManager
extends java.lang.Object

This class maintains general structures to deal with SNMP: transport, security model, ... This class delivers SNMP queriers.

Version:
$Id: SNMPManager.java,v 1.11 2008/04/15 23:58:17 fenyo Exp $
Author:
Alexandre Fenyo

Field Summary
private static Log log
           
private  Snmp snmp
           
 
Constructor Summary
SNMPManager()
          Constructor.
 
Method Summary
 SNMPQuerier getQuerier(java.net.InetAddress address)
          Creates a new querier.
protected  Snmp getSNMP()
          Returns the SNMP4J Snmp instance used to perform further SNMP queries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log

snmp

private final Snmp snmp
Constructor Detail

SNMPManager

public SNMPManager()
            throws java.io.IOException
Constructor.

Parameters:
none. -
Throws:
java.io.IOException - SNMP4J exception.
Method Detail

getQuerier

public SNMPQuerier getQuerier(java.net.InetAddress address)
Creates a new querier.

Parameters:
address - target address.
Returns:
SNMPQuerier new querier.

getSNMP

protected Snmp getSNMP()
Returns the SNMP4J Snmp instance used to perform further SNMP queries.

Parameters:
none. -
Returns:
Snmp Snmp instance.