public class NokiaNSPRestProcessor
extends java.lang.Object
| Constructor and Description |
|---|
NokiaNSPRestProcessor(java.util.Properties propsFile,
DataSource ds,
CollectorDataStore dataStore) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
cleanDataStore(int requestType,
java.lang.String address,
java.lang.String mask)
Method cleans the datastore before starting the new Discovery.
|
void |
doFullDiscovery(java.lang.String nodeId)
Performs a Full Discovery operation
|
java.lang.String |
getVLANXml(java.util.List<java.lang.String> vlanList)
Returns the VLAN XML string
|
boolean |
nspAuthenticate() |
java.util.List<NetworkDevice> |
parseNetworkDeviceData(java.util.List<NspEquipmentNetworkElement> responseList) |
void |
processEntitiesCall(int datasource,
java.lang.String deviceId)
Service Method to handle the GetEntities call from the disco
Make EMS call to fetch entities and process them and load to datastore.
|
void |
processInventoryCall(int datasource,
java.lang.String deviceId)
Service Method to handle the GetInventory call from the disco
Make EMS call to fetch interfaces and process them and load to datastore.
|
protected void |
processNEData(java.util.List<NspEquipmentNetworkElement> processResponseList)
Method to process NE Data, create devices and store them to the Datastore
|
public NokiaNSPRestProcessor(java.util.Properties propsFile,
DataSource ds,
CollectorDataStore dataStore)
public boolean nspAuthenticate()
public void doFullDiscovery(java.lang.String nodeId)
throws java.io.IOException
nodeId - Node Id always "0" for full discoveryjava.io.IOExceptionpublic void processEntitiesCall(int datasource,
java.lang.String deviceId)
throws java.lang.Exception
datasource - - datasource IddeviceId - - unique Id devicejava.lang.Exceptionpublic void processInventoryCall(int datasource,
java.lang.String deviceId)
datasource - - datasource IddeviceId - - unique Id devicepublic java.util.List<NetworkDevice> parseNetworkDeviceData(java.util.List<NspEquipmentNetworkElement> responseList)
public java.util.List<java.lang.String> cleanDataStore(int requestType,
java.lang.String address,
java.lang.String mask)
requestType - - discovery request Type 0 - full discovery, 1- address , 2- subnetaddress - - ipAddress to be discoveredmask - - subnet mask for discovery
return List<> - device IP list which is removed/cleaned.public java.lang.String getVLANXml(java.util.List<java.lang.String> vlanList)
throws javax.xml.parsers.ParserConfigurationException,
javax.xml.transform.TransformerException
vlanList - List of IVIF map instancesjavax.xml.parsers.ParserConfigurationExceptionjavax.xml.transform.TransformerExceptionprotected void processNEData(java.util.List<NspEquipmentNetworkElement> processResponseList) throws java.io.IOException
processResponseList - NspEquipmentNetworkElement NspEquipmentNetworkElement List from NSPjava.io.IOException