public class CSVCollector extends Collector
collectData, collectorDescription, collectorName, collectorPort, dataStore, propsFileName, running
Constructor and Description |
---|
CSVCollector(java.lang.String collectorName,
java.lang.String collectorDescription)
Create a new CSV collector and initialise the logger.
|
Modifier and Type | Method and Description |
---|---|
protected void |
collectData(int dataSourceId,
java.lang.String address,
java.lang.String mask)
Collect data by parsing one or more CSV files as specified in the
supplied CSV collector properties file.
|
protected void |
initialiseDataStore()
Initialise the data store to use the default
DataStore and create
a single data source, either with a default ID of 1, or using the
configuration specified in the associated CSV properties file. |
static void |
main(java.lang.String[] args)
Run the CSV collector by using the
CollectorEmbeddedServer.runEmbeddedServer(Collector, int) method
to run the collector on a port specified either on the command line or in
a supplied properties file. |
GetAssociatedAddresses, GetAssociatedAddresses, getCommandLineArgument, GetConnections, GetConnections, GetDeviceInfo, GetDeviceInfo, GetDeviceInfo, GetDeviceList, GetEntities, GetEntities, GetInfo, GetInventory, GetInventory, GetLayer1Connections, GetLayer1Connections, GetLayer2Connections, GetLayer2Connections, GetLayer2Vpns, GetLayer2Vpns, GetLayer3Connections, GetLayer3Connections, GetLayer3Vpns, GetLayer3Vpns, GetMplsInterfaces, GetMplsInterfaces, getPortNumberArgument, getPropertiesFileNameArgument, getPropertyValue, isRunning, loadPropertiesFile, shutdown, startup, startup, UpdateData
public CSVCollector(java.lang.String collectorName, java.lang.String collectorDescription)
collectorName
- The name of the collectorcollectorDescription
- A description of the collectorpublic static void main(java.lang.String[] args)
CollectorEmbeddedServer.runEmbeddedServer(Collector, int)
method
to run the collector on a port specified either on the command line or in
a supplied properties file.args
- Command line arguments, e.g.
-propsFile <props file name>
protected void collectData(int dataSourceId, java.lang.String address, java.lang.String mask)
collectData
in class Collector
dataSourceId
- Holds the ID of the data source which should be updatedaddress
- If mask is not defined then it holds the address (IP or native id) of the device to refresh, or else it holds the subnet to
refresh.mask
- Holds the subnet mask, or is not definedprotected void initialiseDataStore()
DataStore
and create
a single data source, either with a default ID of 1, or using the
configuration specified in the associated CSV properties file.initialiseDataStore
in class Collector