public class NetActCsvCollector extends Collector
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
loadFirst
Flag to indicate whether loadFirstRun has been called
|
collectData, collectorDescription, collectorName, collectorPort, dataStore, propsFileName, running| Constructor and Description |
|---|
NetActCsvCollector(java.lang.String collectorName,
java.lang.String collectorDescription)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> |
buildRANNetworkDevices(java.util.List<java.lang.String[]> data)
Builds a list of NetworkDevices based on the list of HashMaps and the
fileId
|
protected void |
collectData(int dataSourceId,
java.lang.String address,
java.lang.String mask)
This method is responsible for ensuring that data is updated as appropriate, that is, the Collector should check
the EMS for new data and update any internal stores as appropriate.
|
java.lang.String |
GetRanData(int dataSourceId,
java.lang.String deviceId)
Get RAN data for a given device.
|
protected void |
initialiseDataStore()
Initialise the data store.
|
static void |
main(java.lang.String[] args)
Entry point for this class
|
static void |
setDATA_SOURCE_ID(int dATA_SOURCE_ID) |
static void |
setLoadFirst(boolean loadFirst) |
java.lang.String |
UpdateData(int dataSourceId,
int requestType,
java.lang.String address,
java.lang.String mask)
UpdateData invokes the collectData method which is responsible for ensuring that data is updated as appropriate,
that is, the Collector should check the EMS for new data and update any internal stores as appropriate.
|
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, GetSAEGatewayData, GetSgwData, GetSmfData, GetUdmData, GetUpfData, isRunning, loadPropertiesFile, setDataStore, setRunning, shutdown, startup, startupprotected static boolean loadFirst
public NetActCsvCollector(java.lang.String collectorName,
java.lang.String collectorDescription)
collectorName - Collector namecollectorDescription - Collector descriptionpublic java.lang.String UpdateData(int dataSourceId,
int requestType,
java.lang.String address,
java.lang.String mask)
CollectorUpdateData invokes the collectData method which is responsible for ensuring that data is updated as appropriate, that is, the Collector should check the EMS for new data and update any internal stores as appropriate.
If the Collector does not need to update its data then it does not need to perform any work other than returning the response message "<updateResponse></updateResponse>".
Note: Is it the Collector's responsibility to determine which devices the supplied IP relates to; the IP is NOT guaranteed to be the device id.
UpdateData in class CollectordataSourceId - Holds the ID of the data source which should be updatedrequestType - The type of requestaddress - If mask is not defined then it holds the address of the device to refresh, or else it holds the subnet to
refresh. If requestType is 1 then the address may be an IP or EMS native identifier.mask - Holds the subnet mask, or is not defined
<updateResponse></updateResponse>
protected void collectData(int dataSourceId,
java.lang.String address,
java.lang.String mask)
CollectorThis method is responsible for ensuring that data is updated as appropriate, that is, the Collector should check the EMS for new data and update any internal stores as appropriate.
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 definedpublic java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> buildRANNetworkDevices(java.util.List<java.lang.String[]> data)
cleanedData - A List of HashMaps containing the raw entity information from
the csv fileprotected void initialiseDataStore()
CollectorDataStore . Should be overridden if a
different kind of data store is to be used.initialiseDataStore in class Collectorpublic static void main(java.lang.String[] args)
args - The following are acceptable arguments for this Collector:
If no arguments are specified, the default values will be used.
public java.lang.String GetRanData(int dataSourceId,
java.lang.String deviceId)
RANDataStore.getRANData(int, String) method of
RANDataStore to generate the XML String.GetRanData in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the devicepublic static void setDATA_SOURCE_ID(int dATA_SOURCE_ID)
public static void setLoadFirst(boolean loadFirst)