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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
snmpAdaptor
private SnmpAdaptor snmpAdaptor
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.
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.