public class CalixRestHandler
extends java.lang.Object
| Constructor and Description |
|---|
CalixRestHandler(CalixRestPropertyHelper propertyHelper)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
fetchEmsData(java.lang.String fileName,
java.lang.String requestUri)
Get data from Calix EMS by handling pagination
|
java.lang.String |
fetchEmsData(java.lang.String fileName,
java.lang.String requestURI,
int offset,
int limit)
Fetches EMS data for the given URI
|
java.util.List<CalixBridgeTable> |
getAllBridgeTableData(java.lang.String deviceName)
Get all Bridge Port for a device from Calix EMS by handling pagination
|
java.util.List<CalixDevice> |
getAllDevices()
Get all devices from Calix EMS by handling pagination
|
java.util.concurrent.CompletableFuture<java.util.List<CalixDevice>> |
getAllDevicesAsync()
Get all devices from Calix EMS asynchronously by handling pagination
|
java.util.Map<java.lang.String,java.lang.Object> |
getAllEntityData(java.lang.String deviceName)
Get shelf, slot, and ONT slot data for a specific device from Calix EMS
|
java.util.List<CalixLag> |
getAllLAGData(java.lang.String deviceName)
Get all LAG for a device from Calix EMS by handling pagination
|
java.util.List<CalixOnt> |
getAllOntData()
Get all ONT data from Calix EMS by handling pagination
|
java.util.List<CalixOntPort> |
getAllOntPorts(java.lang.String deviceName,
java.lang.String ontName)
Get all ONT Ports for a device from Calix EMS by handling pagination
|
java.util.Map<java.lang.String,java.util.List<CalixPort>> |
getAllPortData(java.lang.String deviceName,
java.util.List<CalixShelf> shelfList)
Get all port data for a specific device from Calix EMS
|
java.util.List<CalixPort> |
getAllPorts(java.lang.String deviceName,
java.lang.String shelfId,
java.lang.String slotId)
Get all Ports for a device from Calix EMS by handling pagination
|
java.util.List<CalixShelf> |
getAllShelfs(java.lang.String deviceName)
Get all shelfs for a device from Calix EMS by handling pagination
|
java.util.List<CalixDeviceWithSlots> |
getAllSlots(java.lang.String deviceName)
Get all slots for a device from Calix EMS by handling pagination
|
java.util.List<CalixE2WanModule> |
getAllWANModules(java.lang.String deviceName)
Get all WAN Modules for a device from Calix EMS by handling pagination
|
java.util.List<CalixBridgeTable> |
getBridgeTableData(java.lang.String deviceName,
int offset,
int limit)
Get Bridge Table data for a specific device from Calix EMS
|
java.util.List<CalixDevice> |
getDevices(int offset,
int limit)
Get devices from Calix EMS
|
java.util.concurrent.CompletableFuture<java.util.List<CalixDevice>> |
getDevicesAsync(int offset,
int limit)
Get devices asynchronously from Calix EMS
|
java.util.List<CalixLag> |
getLagData(java.lang.String deviceName,
int offset,
int limit)
Get LAG data for a specific device from Calix EMS
|
java.util.List<CalixOnt> |
getOntData(int offset,
int limit)
Get ONT data from Calix EMS
|
java.util.List<CalixOntPort> |
getOntPortData(java.lang.String deviceName,
java.lang.String ontName,
int offset,
int limit)
Get ONT ports data for a specific ONT device for given OLT from Calix EMS
|
CalixOntSlot |
getOntSlotData(java.lang.String deviceName,
int offset,
int limit)
Get ONT slot data for a specific device from Calix EMS
|
java.util.List<CalixPort> |
getPortData(java.lang.String deviceName,
java.lang.String shelfId,
java.lang.String slotId,
int offset,
int limit)
Get port data for a specific device, shelf, and slot from Calix EMS
|
java.util.List<CalixShelf> |
getShelfData(java.lang.String deviceName,
int offset,
int limit)
Get shelf data for a specific device from Calix EMS
|
CalixDeviceWithSlots |
getSlotData(java.lang.String deviceName,
int offset,
int limit)
Get slot data for a specific device from Calix EMS
|
java.util.List<CalixE2WanModule> |
getWANModuleData(java.lang.String deviceName,
int offset,
int limit)
Get E2 WAN data for a specific device from Calix EMS
|
boolean |
initialise()
Method to Initialize this WebSocketTransport instance.
|
java.lang.String |
readDataFromFile(java.lang.String fileName)
Reads node data from server
|
public CalixRestHandler(CalixRestPropertyHelper propertyHelper) throws java.lang.Exception
propertyHelper - The property helper for accessing configurationjava.lang.Exceptionpublic boolean initialise()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<CalixDevice> getDevices(int offset, int limit)
offset - The offset for paginationlimit - The limit for paginationpublic java.util.concurrent.CompletableFuture<java.util.List<CalixDevice>> getDevicesAsync(int offset, int limit)
offset - The offset for paginationlimit - The limit for paginationpublic java.util.List<CalixDevice> getAllDevices()
public java.util.concurrent.CompletableFuture<java.util.List<CalixDevice>> getAllDevicesAsync()
public java.util.List<CalixShelf> getAllShelfs(java.lang.String deviceName)
deviceName - - name of the devicepublic java.util.List<CalixShelf> getShelfData(java.lang.String deviceName, int offset, int limit)
deviceName - The device nameoffset - offset number for the next pagelimit - limit for the resultspublic java.util.List<CalixDeviceWithSlots> getAllSlots(java.lang.String deviceName)
deviceName - - name of the devicepublic CalixDeviceWithSlots getSlotData(java.lang.String deviceName, int offset, int limit)
deviceName - The device nameoffset - offset number for the next pagelimit - limit for the resultspublic CalixOntSlot getOntSlotData(java.lang.String deviceName, int offset, int limit)
deviceName - The device nameoffset - offset number for the next pagelimit - limit for the resultspublic java.util.Map<java.lang.String,java.lang.Object> getAllEntityData(java.lang.String deviceName)
deviceName - The device namepublic java.util.List<CalixPort> getAllPorts(java.lang.String deviceName, java.lang.String shelfId, java.lang.String slotId)
deviceName - - name of the deviceshelfId - - shelfId numberslotId - - slotId Numberpublic java.util.List<CalixBridgeTable> getAllBridgeTableData(java.lang.String deviceName)
deviceName - - name of the devicepublic java.util.List<CalixLag> getAllLAGData(java.lang.String deviceName)
deviceName - - name of the devicepublic java.util.List<CalixE2WanModule> getAllWANModules(java.lang.String deviceName)
deviceName - - name of the devicepublic java.util.List<CalixOntPort> getAllOntPorts(java.lang.String deviceName, java.lang.String ontName)
deviceName - - name of the deviceontName - - name of the ONTpublic java.util.List<CalixPort> getPortData(java.lang.String deviceName, java.lang.String shelfId, java.lang.String slotId, int offset, int limit)
deviceName - The device nameshelfId - The shelf IDslotId - The slot IDoffset - offset number for the next pagelimit - limit for the resultspublic java.util.List<CalixBridgeTable> getBridgeTableData(java.lang.String deviceName, int offset, int limit)
deviceName - The device nameoffset - offset number for the next pagelimit - limit for the resultspublic java.util.List<CalixLag> getLagData(java.lang.String deviceName, int offset, int limit)
deviceName - The device nameoffset - offset number for the next pagelimit - limit for the resultspublic java.util.List<CalixE2WanModule> getWANModuleData(java.lang.String deviceName, int offset, int limit)
deviceName - The device nameoffset - offset number for the next pagelimit - limit for the resultspublic java.util.List<CalixOntPort> getOntPortData(java.lang.String deviceName, java.lang.String ontName, int offset, int limit)
deviceName - The device nameontName - for a given ONToffset - offset number for the next pagelimit - limit for the resultspublic java.util.Map<java.lang.String,java.util.List<CalixPort>> getAllPortData(java.lang.String deviceName, java.util.List<CalixShelf> shelfList)
deviceName - The device nameshelfList - list of shelfs for which ports need to fetchpublic java.util.List<CalixOnt> getOntData(int offset, int limit)
offset - The offset for paginationlimit - The limit for paginationpublic java.util.List<CalixOnt> getAllOntData()
public java.lang.String fetchEmsData(java.lang.String fileName,
java.lang.String requestUri)
public java.lang.String fetchEmsData(java.lang.String fileName,
java.lang.String requestURI,
int offset,
int limit)
fileName - requestURI - offset - limit - public java.lang.String readDataFromFile(java.lang.String fileName)