public class NokiaNSPRestCollector extends Collector
collectorDescription, collectorName, collectorPort, dataStore, propsFileName, running| Constructor and Description |
|---|
NokiaNSPRestCollector(java.lang.String collectorName,
java.lang.String collectorDescription)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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 |
GetEntities(int dataSourceId,
java.lang.String deviceId)
Optional - An override method of the GetEntities() is responsible
for gathering device entities information for a specified device id from
EMS.
|
java.lang.String |
GetInventory(int dataSourceId,
java.lang.String deviceId)
Optional - An override method of the GetInventory() is responsible
for gathering device interface information for a specified device id from
EMS.
|
protected void |
initDataStore()
Initializes data source as specified in the properties file
|
protected boolean |
initialiseProperties()
Initialize collector with data gather from properties file
|
static void |
main(java.lang.String[] args)
Runs the Nokia NSP rest collector
|
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, GetGNodeBData, GetHssData, GetInfo, 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, initialiseDataStore, isRunning, loadPropertiesFile, setDataStore, setRunning, shutdown, startup, startuppublic NokiaNSPRestCollector(java.lang.String collectorName,
java.lang.String collectorDescription)
throws CollectorException
collectorName - The name of the collectorcollectorDescription - A description of the collectorCollectorExceptionpublic static void main(java.lang.String[] args)
args - Command line arguments, e.g. -propsFile <props file name>protected boolean initialiseProperties()
protected void initDataStore()
throws CollectorException
CollectorExceptionprotected 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 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.
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: It's 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 IP of the device to
refresh, or else it holds the subnet to refreshmask - Holds the subnet mask, or is not defined<updateResponse></updateResponse>public java.lang.String GetEntities(int dataSourceId,
java.lang.String deviceId)
Optional - An override method of the GetEntities() is responsible for gathering device entities information for a specified device id from EMS.
GetEntities in class CollectordataSourceId - The ID for the data sourcedeviceId - The ID for the devicepublic java.lang.String GetInventory(int dataSourceId,
java.lang.String deviceId)
Optional - An override method of the GetInventory() is responsible for gathering device interface information for a specified device id from EMS.
GetInventory in class CollectordataSourceId - The ID for the data sourcedeviceId - The ID for the device