public class CalixRestProcessor
extends java.lang.Object
| Constructor and Description |
|---|
CalixRestProcessor(CalixRestPropertyHelper propertyHelper,
CalixRestHandler restHandler,
CalixRestDataStoreHandler storeHandler)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
generateCDMType()
Generate CDM type mapping
|
static java.lang.String |
printXML(org.w3c.dom.Document xml,
boolean blnIndent,
boolean isRemoveXmlDeclar)
Prints an XML document
|
java.util.List<NetworkDevice> |
processDevices()
Pull and Process all devices from Calix EMS
|
void |
processEntitiesCall(int dataSourceId,
java.lang.String deviceId)
Process entities for a specific device
|
void |
processInventoryCall(int dataSourceId,
java.lang.String deviceId,
java.util.List<CalixShelf> shelfList)
Process inventory for a specific device
|
java.util.List<NetworkDevice> |
processOntData()
Process ONT data and create NetworkDevices
|
public CalixRestProcessor(CalixRestPropertyHelper propertyHelper, CalixRestHandler restHandler, CalixRestDataStoreHandler storeHandler)
propertyHelper - The property helper for accessing configurationrestHandler - The REST handler for API callspublic java.util.List<NetworkDevice> processDevices()
public void processEntitiesCall(int dataSourceId,
java.lang.String deviceId)
throws java.lang.Exception
dataSourceId - The data source IDdeviceId - The device IDjava.lang.Exception - If an error occurspublic static void generateCDMType()
public void processInventoryCall(int dataSourceId,
java.lang.String deviceId,
java.util.List<CalixShelf> shelfList)
throws java.lang.Exception
dataSourceId - The data source IDdeviceId - The device IDjava.lang.Exception - If an error occurspublic static java.lang.String printXML(org.w3c.dom.Document xml,
boolean blnIndent,
boolean isRemoveXmlDeclar)
throws javax.xml.transform.TransformerException
xml - The XML documentblnIndent - Flag to enable indentationisRemoveXmlDeclar - Flag to remove the XML declarationjavax.xml.transform.TransformerExceptionpublic java.util.List<NetworkDevice> processOntData()