public class CiscoLMSPhysicalEntityCollector
extends java.lang.Object
| Constructor and Description |
|---|
CiscoLMSPhysicalEntityCollector(CiscoLMSDatabaseAccessObject dbAccess,
java.util.Properties propsFile)
Constructor to the class CiscoLMSPhysicalEntityCollector
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> |
getModuleInventory(java.lang.String deviceId)
Retrieves the data row of modules from the database based on device Id
|
java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> |
getProcessorInventory(java.lang.String deviceId)
Retrieving the list of processors, based on a given deviceId
via the database access object
|
java.util.HashMap<java.lang.String,java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Object>>> |
parseModuleInventory(java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> rawListData)
Parses the raw data from database and stores into a HashMap
in a datastore compatible format
|
java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> |
parseProcessorInventory(java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> hashMap)
Given the list of Processors and its attributes, do the attribute
conversion to the ones recognized by the framework
|
public CiscoLMSPhysicalEntityCollector(CiscoLMSDatabaseAccessObject dbAccess, java.util.Properties propsFile)
dbAccess - Database object for making db connectionspropsFile - Property file to read frompublic java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> getModuleInventory(java.lang.String deviceId)
deviceId - The device Id of the managed elementpublic java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> getProcessorInventory(java.lang.String deviceId)
deviceId - Device id, for partial discovery, or nullpublic java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> parseProcessorInventory(java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> hashMap)
hashMap - Hashmap containing EMS to be parsedpublic java.util.HashMap<java.lang.String,java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.Object>>> parseModuleInventory(java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> rawListData)
rawListData - The raw data from the database