Class GetOltApiClient
java.lang.Object
org.bgerp.plugin.bgb.getolt.dao.GetOltApiClient
HTTP client for GetOLT External API.
Calls GET /api/v1/external/onus/erp-search endpoint.
Uses shared HttpClient with connection pooling and static ObjectMapper.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.fasterxml.jackson.databind.JsonNode> getOlts()Gets list of all OLTs from external APIrebootOnu(int oltId, int port, int onuId) Reboots ONUrefreshPort(String oltIp, int portNumber) Starts OLT port refreshSearches for ONU by contract data
-
Constructor Details
-
GetOltApiClient
-
-
Method Details
-
searchOnu
Searches for ONU by contract data -
getOlts
Gets list of all OLTs from external API- Returns:
- list of OLT data maps (id, ip, vendor, portCount, status, operator, city, etc.)
-
refreshPort
Starts OLT port refresh -
rebootOnu
Reboots ONU
-