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
CollectorGrpcEmbeddedServer.runEmbeddedServer(Collector, int) method
to run the collector on a port specified either on the command line or in
a supplied properties file. |
static void |
setPropsFile(java.util.Properties propsFile) |
GetAfData, GetAmfData, GetAssociatedAddresses, GetAssociatedAddresses, GetAusfData, getCommandLineArgument, GetConnections, GetConnections, GetDeviceInfo, GetDeviceInfo, GetDeviceInfo, GetDeviceList, GetEirData, GetENodeBData, GetEntities, GetEntities, GetGNodeBData, GetHssData, GetInfo, GetInventory, GetInventory, GetLayer1Connections, GetLayer1Connections, GetLayer2Connections, GetLayer2Connections, GetLayer2Vpns, GetLayer2Vpns, GetLayer3Connections, GetLayer3Connections, GetLayer3Vpns, GetLayer3Vpns, GetMmeData, GetMplsInterfaces, GetMplsInterfaces, GetNefData, GetNrfData, GetNssfData, GetPcfData, GetPcrfData, GetPgwData, getPortNumberArgument, getPropertiesFileNameArgument, getPropertyValue, GetRanData, GetSAEGatewayData, GetSgwData, GetSmfData, GetUdmData, GetUpfData, isRunning, loadPropertiesFile, setDataStore, setRunning, shutdown, startup, startup, UpdateDatapublic 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)
CollectorGrpcEmbeddedServer.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 CollectordataSourceId - 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 Collectorpublic static void setPropsFile(java.util.Properties propsFile)