Package org.bgerp.plugin.bgb.getolt.dao
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()Get list of all OLTs from external API.rebootOnu(int oltId, int port, int onuId) Reboot ONU.refreshPort(String oltIp, int portNumber) Start OLT port refresh.Search for ONU by contract data.
-
Constructor Details
-
GetOltApiClient
-
-
Method Details
-
searchOnu
Search for ONU by contract data. -
getOlts
Get list of all OLTs from external API.- Returns:
- list of OLT data maps (id, ip, vendor, portCount, status, operator, city, etc.)
-
refreshPort
Start OLT port refresh. -
rebootOnu
Reboot ONU.
-