public class TellabsINM8000Collector extends Collector
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<PhysicalInventory> |
nodeList |
collectData, collectorDescription, collectorName, collectorPort, dataStore, propsFileName, running| Constructor and Description |
|---|
TellabsINM8000Collector(java.lang.String collectorName,
java.lang.String collectorDescription)
Create a new Tellabs collector
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInterfacesEntityData(java.util.ArrayList<PhysicalInventory> iFaceList,
java.util.ArrayList<PhysicalInventory> trunkList,
java.util.ArrayList<PhysicalInventory> nodeList)
This method add a list of Interface object's entity data to the
collector's DataStore for device containment
|
protected void |
addInterfacesId(java.util.ArrayList<PhysicalInventory> iFaceList,
java.util.ArrayList<PhysicalInventory> trunkList)
This method add a list of Interface object's interface data to the
collector's DataStore for connectivity information.
|
protected void |
addModules(java.util.ArrayList<PhysicalInventory> moduleList,
java.util.ArrayList<PhysicalInventory> nodeList,
java.util.ArrayList<PhysicalInventory> unitList)
This method add a list of Module object to the collector's DataStore
|
protected void |
addTrunks(java.util.ArrayList<PhysicalInventory> trunkList,
java.lang.String address,
java.util.ArrayList<PhysicalInventory> nodeList)
This method add a list of Trunk object to the collector's DataStore for
connectivity information.
|
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.
|
protected void |
doFullDiscovery(int nodeId)
Performs a Full Discovery operation
|
protected void |
doPartialDiscovery(int dataSource,
java.lang.String address)
This method performs Partial Discovery by invoking doFullDiscovery(int)
method and supplying a node id as parameter.
|
protected java.lang.String |
getNodeName(int nodeId) |
protected static java.util.Properties |
getPropsFile()
Returns the Properties object for this collector
|
protected void |
initDataStore()
Initialises data source as specified in the properties file
|
static void |
main(java.lang.String[] args)
Run the Tellabs collector
|
java.util.List<NetworkDevice> |
parseNetworkDeviceData(java.util.ArrayList<PhysicalInventory> nodeList)
This method takes a list of node objects and parses the raw data in node
objects and creates a list of network devices objects based on data in
the node object
|
protected void |
populateNodeNameMap(java.util.ArrayList<PhysicalInventory> list) |
static void |
setDATA_SOURCE_ID(int dATA_SOURCE_ID) |
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, GetRanData, GetSAEGatewayData, GetSgwData, GetSmfData, GetUdmData, GetUpfData, initialiseDataStore, isRunning, loadPropertiesFile, setDataStore, setRunning, shutdown, startup, startupprotected java.util.ArrayList<PhysicalInventory> nodeList
public TellabsINM8000Collector(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)
args - Command line arguments, e.g. -propsFile <props file
name>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 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: 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 IP of the device to
refresh, or else it holds the subnet to refreshmask - Holds the subnet mask, or is not defined<updateResponse></updateResponse>protected void initDataStore()
public java.util.List<NetworkDevice> parseNetworkDeviceData(java.util.ArrayList<PhysicalInventory> nodeList)
nodeList - An List of node objectsprotected void addModules(java.util.ArrayList<PhysicalInventory> moduleList, java.util.ArrayList<PhysicalInventory> nodeList, java.util.ArrayList<PhysicalInventory> unitList)
moduleList - A list of initialised Module objectsprotected void addInterfacesEntityData(java.util.ArrayList<PhysicalInventory> iFaceList, java.util.ArrayList<PhysicalInventory> trunkList, java.util.ArrayList<PhysicalInventory> nodeList)
iFaceList - A list of initialised Interface objectsprotected void addInterfacesId(java.util.ArrayList<PhysicalInventory> iFaceList, java.util.ArrayList<PhysicalInventory> trunkList)
iFaceList - A list of initialised Interface objectsprotected void addTrunks(java.util.ArrayList<PhysicalInventory> trunkList, java.lang.String address, java.util.ArrayList<PhysicalInventory> nodeList) throws java.io.IOException, TolAttributeException, TolCommunicationException
trunkList - A list of initialised Trunk objectsjava.io.IOException - , TolAttributeException, TolCommunicationExceptionTolAttributeExceptionTolCommunicationExceptionprotected void populateNodeNameMap(java.util.ArrayList<PhysicalInventory> list)
protected java.lang.String getNodeName(int nodeId)
protected void doFullDiscovery(int nodeId)
throws java.io.IOException,
TolAttributeException,
TolCommunicationException
nodeId - Node Id for Partial Discovery operation. When a non-zero value
is supplied, Partial Discovery is performed, else Full
Discovery is performed insteadjava.io.IOException - ,TolAttributeException,TolCommunicationExceptionTolAttributeExceptionTolCommunicationExceptionprotected void doPartialDiscovery(int dataSource,
java.lang.String address)
throws java.io.IOException,
TolAttributeException,
TolCommunicationException
dataSource - The DataSource Id that is specified in the properties fileaddress - IP address of the target device of the partial discoveryjava.io.IOException - , TolAttributeException, TolCommunicationExceptionTolAttributeExceptionTolCommunicationExceptionprotected static java.util.Properties getPropsFile()
public static void setDATA_SOURCE_ID(int dATA_SOURCE_ID)