public class SampleLTECollector extends Collector
collectData, collectorDescription, collectorName, collectorPort, dataStore, propsFileName, running| Constructor and Description |
|---|
SampleLTECollector(java.lang.String collectorName,
java.lang.String collectorDescription)
Create a new instance of the LTE collector
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectData(int ds,
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)
Optional - The Collector implementation of GetConnections() is responsible for gathering and returning
all resolved connection information for the supplied topology type and supplied device and data source.
|
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 |
GetEirData(int dataSourceId,
java.lang.String deviceId)
Get LTE EIR data for a given data source and EIR Name
|
java.lang.String |
GetENodeBData(int dataSourceId,
java.lang.String deviceId)
Get LTE eNodeB data for a given data source and eNodeB ID
|
java.lang.String |
GetEntities(int dataSourceId,
java.lang.String deviceId)
Optional - The Collector implementation of GetEntities() is responsible for gathering and returning
ENTITY-MIB style entity information for a given device id and data source.
|
java.lang.String |
GetHssData(int dataSourceId,
java.lang.String deviceId)
Get LTE HSS data for a given data source and HSS Name
|
java.lang.String |
GetInterfaceName(int dataSourceId,
java.lang.String deviceId,
java.lang.String interfaceKey) |
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 LTE MME data for a given data source and MME Name
|
java.lang.String |
GetPcrfData(int dataSourceId,
java.lang.String deviceId)
Get LTE PCRF data for a given data source and PCRF Name
|
java.lang.String |
GetPgwData(int dataSourceId,
java.lang.String deviceId)
Get LTE PGW data for a given data source and PGW Name
|
java.lang.String |
GetSgwData(int dataSourceId,
java.lang.String deviceId)
Get LTE SGW data for a given data source and SGW Name
|
protected void |
initialiseDataStore()
Initialise the data store.
|
static void |
main(java.lang.String[] args)
This is how we run the collector
|
GetAfData, GetAmfData, GetAssociatedAddresses, GetAusfData, getCommandLineArgument, GetConnections, GetDeviceInfo, GetDeviceInfo, GetDeviceList, GetEntities, GetGNodeBData, GetInfo, GetInventory, GetLayer1Connections, GetLayer1Connections, GetLayer2Connections, GetLayer2Connections, GetLayer2Vpns, GetLayer2Vpns, GetLayer3Connections, GetLayer3Connections, GetLayer3Vpns, GetLayer3Vpns, GetMplsInterfaces, GetMplsInterfaces, GetNefData, GetNrfData, GetNssfData, GetPcfData, getPortNumberArgument, getPropertiesFileNameArgument, getPropertyValue, GetRanData, GetSAEGatewayData, GetSmfData, GetUdmData, GetUpfData, isRunning, loadPropertiesFile, setDataStore, setRunning, shutdown, startup, startup, UpdateDatapublic SampleLTECollector(java.lang.String collectorName,
java.lang.String collectorDescription)
collectorName - The name of the collectorcollectorDescription - A description of the collectorprotected void collectData(int ds,
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 Collectords - 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 GetDeviceList(int dataSourceId)
dataSourceId - The ID of the data sourcepublic 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 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 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 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 GetMmeData(int dataSourceId,
java.lang.String deviceId)
GetMmeData in class CollectordataSourceId - The ID of the data sourcedeviceId - The Name of the devicepublic java.lang.String GetSgwData(int dataSourceId,
java.lang.String deviceId)
GetSgwData in class CollectordataSourceId - The ID of the data sourcedeviceId - The Name of the devicepublic java.lang.String GetPgwData(int dataSourceId,
java.lang.String deviceId)
GetPgwData in class CollectordataSourceId - The ID of the data sourcedeviceId - The Name of the devicepublic java.lang.String GetHssData(int dataSourceId,
java.lang.String deviceId)
GetHssData in class CollectordataSourceId - The ID of the data sourcedeviceId - The Name of the devicepublic java.lang.String GetPcrfData(int dataSourceId,
java.lang.String deviceId)
GetPcrfData in class CollectordataSourceId - The ID of the data sourcedeviceId - The Name of the devicepublic java.lang.String GetEirData(int dataSourceId,
java.lang.String deviceId)
GetEirData in class CollectordataSourceId - The ID of the data sourcedeviceId - The Name of the devicepublic java.lang.String GetEntities(int dataSourceId,
java.lang.String deviceId)
CollectorOptional - The Collector implementation of GetEntities() is responsible for gathering and returning ENTITY-MIB style entity information for a given device id and data source.
This method is used by the CollectorInventory agent to produce a list of entity information for later use in containment modeling.
GetEntities in class CollectordataSourceId - The ID for the data sourcedeviceId - The ID for the device
<entityData>
<entityList>
<entity>
<name>A Vendor 9-slot Chassis System</name>
<class>3</class>
<index>1</index>
<vendorType>1.3.6.1.4.1.0.3.175</vendorType>
<descr>ACME-2000</descr>
<parentRelPos>-1</parentRelPos>
</entity>
.. other entities ..
</entityList>
</entityData>
public java.lang.String GetInterfaceName(int dataSourceId,
java.lang.String deviceId,
java.lang.String interfaceKey)
public java.lang.String GetConnections(int dataSourceId,
java.lang.String deviceId,
java.lang.String topologyType)
CollectorOptional - The Collector implementation of GetConnections() is responsible for gathering and returning all resolved connection information for the supplied topology type and supplied device and data source.
GetConnections in class CollectordataSourceId - The ID of the data sourcedeviceId - The ID of the devicetopologyType - The connection topology type, for example Layer1, Layer2, Layer3 or Microwave
<microwaveConnections>
<connection>
<dest>10.1.230.1</dest>
<destIfIndex>22</destIfIndex>
<srcIfIndex>9</srcIfIndex>
<src>10.1.254.1</src>
</connection>
<connection>
<dest>10.1.230.1</dest>
<destInterfaceId>MyUniqueId22</destInterfaceId>
<srcInterfaceId>MyUniqueId9</srcInterfaceId>
<src>10.1.254.1</src>
</connection>
</microwaveConnections>
protected void initialiseDataStore()
LTEDataStore.initialiseDataStore in class Collectorpublic static void main(java.lang.String[] args)
args - Command line arguments to the collector, e.g.
-port <port_number>