Class GetOltApiClient

java.lang.Object
org.bgerp.plugin.bgb.getolt.dao.GetOltApiClient

public class GetOltApiClient extends Object
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 Details

    • GetOltApiClient

      public GetOltApiClient(Config config)
  • Method Details

    • searchOnu

      public OnuSearchResult searchOnu(String operator, String contractNumber, Integer cid)
      Searches for ONU by contract data
    • getOlts

      public List<com.fasterxml.jackson.databind.JsonNode> getOlts()
      Gets list of all OLTs from external API
      Returns:
      list of OLT data maps (id, ip, vendor, portCount, status, operator, city, etc.)
    • refreshPort

      public RefreshResult refreshPort(String oltIp, int portNumber)
      Starts OLT port refresh
    • rebootOnu

      public RefreshResult rebootOnu(int oltId, int port, int onuId)
      Reboots ONU