campus.snmp
Class SnmpSource
java.lang.Object
|
+--solar.service.dan.GraphNode
|
+--solar.service.dan.Source
|
+--campus.snmp.SnmpSource
- All Implemented Interfaces:
- DanConstants, Identifiable
- public class SnmpSource
- extends Source
A Solar source that polls access points to get MAC-IP mapping using SNMP.
It current calls an external Perl script and parses its output, will be
nice to poll the AP using a Java library.
- Version:
- $Id: SnmpSource.java,v 1.3 2003/09/19 00:38:22 glchen Exp $
- Author:
- Guanling Chen
Constructor Summary |
SnmpSource(serp.util.Options opts)
|
Method Summary |
java.lang.Object |
handleQuery(Request query)
Handle the query being actively pulled by downstream operators. |
static void |
main(java.lang.String[] args)
Start the snmp source and advertise a name for it. |
void |
run()
The execution body of this source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_outputPath
protected java.lang.String _outputPath
_scriptPath
protected java.lang.String _scriptPath
_community
protected java.lang.String _community
SnmpSource
public SnmpSource(serp.util.Options opts)
run
public void run()
throws java.lang.Exception
- Description copied from class:
Source
- The execution body of this source.
- Specified by:
run
in class Source
java.lang.Exception
handleQuery
public java.lang.Object handleQuery(Request query)
throws java.lang.Exception
- Description copied from class:
GraphNode
- Handle the query being actively pulled by downstream operators.
- Specified by:
handleQuery
in class GraphNode
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Start the snmp source and advertise a name for it. Command line
usage:
-host tahoe -port 5470 -name "[source=snmp] -community snmp"
java.lang.Exception