Package org.bgerp.plugin.bgb.getolt.dao
Class ExternalGetOltApiClient
java.lang.Object
org.bgerp.plugin.bgb.getolt.dao.ExternalGetOltApiClient
Тонкий HTTP-прокси к External API standalone-сервиса GetOLT v2.
Возвращает сырой JSON-body — никаких DTO, парсинг и рендер на клиенте.
Используется вкладкой «Массовая авария» (ТЗ #11). Заголовок X-API-Key,
один retry на 5xx/IOException.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGET {base}/olts?city=...&operator=...&size=100— сырой JSON.listOltsByCity(String city) GET {base}/olts?city=...&size=100— сырой JSON.listOnusByOlt(String ip) GET {base}/onus?oltIp={ip}&size=2000— все ONU OLT, сырой JSON.listOnusByPort(String ip, int portNumber) GET {base}/onus/olt/{ip}/port/{portNumber}— сырой JSON.GET {base}/olts/{ip}/ports— сырой JSON.GET {base}/olts/statistics— все OLT с per-port разбивкой ONU по статусу/сигналу.refreshOlt(String ip) POST {base}/actions/refresh/olt/{ip}— требует FULL ключ.
-
Constructor Details
-
ExternalGetOltApiClient
-
-
Method Details
-
listOltsByCity
GET {base}/olts?city=...&size=100— сырой JSON.- Throws:
IOException
-
oltStatistics
GET {base}/olts/statistics— все OLT с per-port разбивкой ONU по статусу/сигналу. Один запрос вместо/olts+ N×/olts/{ip}/ports.- Throws:
IOException
-
listOlts
GET {base}/olts?city=...&operator=...&size=100— сырой JSON.- Throws:
IOException
-
listPorts
GET {base}/olts/{ip}/ports— сырой JSON.- Throws:
IOException
-
listOnusByOlt
GET {base}/onus?oltIp={ip}&size=2000— все ONU OLT, сырой JSON.- Throws:
IOException
-
listOnusByPort
GET {base}/onus/olt/{ip}/port/{portNumber}— сырой JSON.- Throws:
IOException
-
refreshOlt
POST {base}/actions/refresh/olt/{ip}— требует FULL ключ.- Throws:
IOException
-