MySnmpCrawler API

snmp.agent
Class SnmpAgent

java.lang.Object
  |
  +--snmp.agent.BaseAgent
        |
        +--snmp.agent.SnmpAgent

public class SnmpAgent
extends BaseAgent

This class creates and starts the SNMP Adaptor.

Version:
$Revision: 0.1 $ $Date: 2004/03/09 06:03:56 $
Author:
Scott Cheng

Field Summary
private  SnmpAdaptor snmpAdaptor
           
 
Fields inherited from class snmp.agent.BaseAgent
 
Constructor Summary
SnmpAgent()
          Constructs the SnmpAgent using the host name, port number, and the community string from the configuration file.
SnmpAgent(java.lang.String host, int port, java.lang.String community)
          Constructs the SnmpAgent and starts the SnmpAdaptor with the given host name, port number, and community string.
 
Method Summary
static void main(java.lang.String[] args)
          Initializes and starts the SnmpAgent.
 
Methods inherited from class snmp.agent.BaseAgent
addHtmlAdaptor, addMBean, addMBean, getMBeanServer, startHtmlAdaptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

snmpAdaptor

private SnmpAdaptor snmpAdaptor
Constructor Detail

SnmpAgent

public SnmpAgent()
          throws java.lang.Exception
Constructs the SnmpAgent using the host name, port number, and the community string from the configuration file.

Throws:
java.lang.Exception - Thrown if any error occurs during the object initialization.

SnmpAgent

public SnmpAgent(java.lang.String host,
                 int port,
                 java.lang.String community)
          throws java.lang.Exception
Constructs the SnmpAgent and starts the SnmpAdaptor with the given host name, port number, and community string.

Throws:
java.lang.Exception - Thrown if any error occurs during the object initialization.
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Initializes and starts the SnmpAgent.

Throws:
java.lang.Exception - Thrown if any error occurs during the SnmpAgent initialization.

MySnmpCrawler API