org.rhq.plugins.www.snmp
Class SNMPClient

java.lang.Object
  extended by org.rhq.plugins.www.snmp.SNMPClient

public class SNMPClient
extends java.lang.Object


Nested Class Summary
static class SNMPClient.SNMPVersion
           
 
Field Summary
static java.lang.String DEFAULT_COMMUNITY
           
static java.lang.String DEFAULT_HOST
           
static java.lang.String DEFAULT_PASSWORD
           
static int DEFAULT_PORT
           
static java.lang.String DEFAULT_USERNAME
           
static SNMPClient.SNMPVersion DEFAULT_VERSION
           
static java.lang.String[] VALID_AUTHTYPES
           
 
Constructor Summary
SNMPClient()
           
 
Method Summary
 void close()
           
static java.lang.String getOID(java.lang.String mibName)
           
 SNMPSession getSession(java.lang.String host, java.lang.Integer port, java.lang.String community, SNMPClient.SNMPVersion version)
           
 boolean init(java.util.Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HOST

public static final java.lang.String DEFAULT_HOST
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_COMMUNITY

public static final java.lang.String DEFAULT_COMMUNITY
See Also:
Constant Field Values

DEFAULT_USERNAME

public static final java.lang.String DEFAULT_USERNAME
See Also:
Constant Field Values

DEFAULT_PASSWORD

public static final java.lang.String DEFAULT_PASSWORD
See Also:
Constant Field Values

DEFAULT_VERSION

public static final SNMPClient.SNMPVersion DEFAULT_VERSION

VALID_AUTHTYPES

public static final java.lang.String[] VALID_AUTHTYPES
Constructor Detail

SNMPClient

public SNMPClient()
Method Detail

getOID

public static java.lang.String getOID(java.lang.String mibName)

init

public boolean init(java.util.Properties props)
             throws SNMPException
Throws:
SNMPException

close

public void close()

getSession

public SNMPSession getSession(java.lang.String host,
                              java.lang.Integer port,
                              java.lang.String community,
                              SNMPClient.SNMPVersion version)
                       throws SNMPException
Throws:
SNMPException


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.