public class NetActCMDumpCollector extends Collector
collectData, collectorDescription, collectorName, collectorPort, dataStore, propsFileName, running| Constructor and Description |
|---|
NetActCMDumpCollector(java.lang.String collectorName,
java.lang.String collectorDescription)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
classToProcess(java.lang.String className) |
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 |
GetAssociatedAddresses(int dataSourceId,
java.lang.String deviceId)
Get LTE associated addresses for a given data source and device ID
|
java.lang.String |
GetConnections(int dataSourceId,
java.lang.String deviceId,
java.lang.String topologyType)
Get LTE Connections name for a given data source, device ID and topology
type
|
java.lang.String |
GetDeviceInfo(int dataSourceId,
java.lang.String deviceId)
Get LTE device info for a given data source and device ID
|
java.lang.String |
GetDeviceList(int dataSourceId)
Get LTE device list for a given data source
|
java.lang.String |
GetENodeBData(int dataSourceId,
java.lang.String deviceId)
Get ENodeB data for a given device.
|
java.lang.String |
GetEntities(int dataSourceId,
java.lang.String deviceId)
Get LTE Entities for a given data source and device ID
|
java.lang.String |
GetInterfaceName(int dataSourceId,
java.lang.String deviceId,
java.lang.String interfaceKey)
Get LTE Interface name for a given data source, device ID and interface
key
|
java.lang.String |
GetInventory(int dataSourceId,
java.lang.String deviceId)
Get LTE Inventory for a given data source and device ID
|
java.lang.String |
GetMmeData(int dataSourceId,
java.lang.String deviceId)
Get MME data for a given device.
|
java.lang.String |
GetPgwData(int dataSourceId,
java.lang.String deviceId)
Get PGW data for a given device.
|
java.util.Set<java.lang.String> |
getProcessedEntity() |
java.lang.String |
GetRanData(int dataSourceId,
java.lang.String deviceId)
Get RAN data for a given device.
|
java.lang.String |
GetSgwData(int dataSourceId,
java.lang.String deviceId)
Get SGW data for a given device.
|
protected void |
initialiseDataStore()
Initialise the data store.
|
static void |
main(java.lang.String[] args)
Entry point for this class
|
boolean |
processInventoryFile(java.lang.String file,
java.lang.String dirName,
java.lang.String nodeId)
Processes all the inventory xml files
|
static java.util.Properties |
reLoadPropertiesFile() |
static void |
setDATA_SOURCE_ID(int dATA_SOURCE_ID) |
static void |
setPropsFile(java.util.Properties propsFile) |
static void |
setRetrieveAllClass(boolean retrieveAllClass) |
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.
|
java.util.List<java.nio.file.Path> |
verifyTimeStamp(java.util.List<java.nio.file.Path> validFiles,
java.util.Map<java.lang.String,java.nio.file.attribute.FileTime> xmlDataLastModifiedTimes)
Verifies the last modified file against the ones in the Map.
|
GetAfData, GetAmfData, GetAssociatedAddresses, GetAusfData, getCommandLineArgument, GetConnections, GetDeviceInfo, GetDeviceInfo, GetDeviceList, GetEirData, GetEntities, GetGNodeBData, GetHssData, GetInfo, GetInventory, GetLayer1Connections, GetLayer1Connections, GetLayer2Connections, GetLayer2Connections, GetLayer2Vpns, GetLayer2Vpns, GetLayer3Connections, GetLayer3Connections, GetLayer3Vpns, GetLayer3Vpns, GetMplsInterfaces, GetMplsInterfaces, GetNefData, GetNrfData, GetNssfData, GetPcfData, GetPcrfData, getPortNumberArgument, getPropertiesFileNameArgument, getPropertyValue, GetSAEGatewayData, GetSmfData, GetUdmData, GetUpfData, isRunning, loadPropertiesFile, setDataStore, setRunning, shutdown, startup, startuppublic NetActCMDumpCollector(java.lang.String collectorName,
java.lang.String collectorDescription)
collectorName - Collector namecollectorDescription - Collector descriptionpublic static java.util.Properties reLoadPropertiesFile()
public 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.lang.String GetAssociatedAddresses(int dataSourceId,
java.lang.String deviceId)
GetAssociatedAddresses in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the devicepublic java.lang.String GetConnections(int dataSourceId,
java.lang.String deviceId,
java.lang.String topologyType)
GetConnections in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the devicetopologyType - The topology typepublic java.lang.String GetDeviceInfo(int dataSourceId,
java.lang.String deviceId)
GetDeviceInfo in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the devicepublic java.lang.String GetDeviceList(int dataSourceId)
dataSourceId - The ID of the data sourcepublic java.lang.String GetENodeBData(int dataSourceId,
java.lang.String deviceId)
GetENodeBData in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the devicepublic java.lang.String GetEntities(int dataSourceId,
java.lang.String deviceId)
GetEntities in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the devicepublic java.lang.String GetInterfaceName(int dataSourceId,
java.lang.String deviceId,
java.lang.String interfaceKey)
dataSourceId - The ID of the data sourcedeviceId - The ID of the deviceinterfaceKey - The interface keypublic java.lang.String GetInventory(int dataSourceId,
java.lang.String deviceId)
GetInventory in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the devicepublic java.lang.String GetMmeData(int dataSourceId,
java.lang.String deviceId)
GetMmeData in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the devicepublic java.lang.String GetPgwData(int dataSourceId,
java.lang.String deviceId)
GetPgwData in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the devicepublic 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 java.lang.String GetSgwData(int dataSourceId,
java.lang.String deviceId)
GetSgwData in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the deviceprotected void initialiseDataStore()
RANDataStore instead of the default DataStore. Also adds
a single data source (with ID 1) to the data store.initialiseDataStore in class Collectorpublic boolean processInventoryFile(java.lang.String file,
java.lang.String dirName,
java.lang.String nodeId)
file - The file namedirName - The directory where the file is availablenodeId - Node id, for partial discovery. Null otherwisepublic boolean classToProcess(java.lang.String className)
className - public java.util.List<java.nio.file.Path> verifyTimeStamp(java.util.List<java.nio.file.Path> validFiles,
java.util.Map<java.lang.String,java.nio.file.attribute.FileTime> xmlDataLastModifiedTimes)
throws java.io.IOException
listOfFiles - The list of files in an array listxmlDataLastModifiedTimes - Map containing the list of files with last modified timestampsjava.io.IOExceptionpublic java.util.Set<java.lang.String> getProcessedEntity()
public 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 static void setPropsFile(java.util.Properties propsFile)
public static void setRetrieveAllClass(boolean retrieveAllClass)
public static void setDATA_SOURCE_ID(int dATA_SOURCE_ID)