Class OltPollingService

java.lang.Object
org.bgerp.plugin.bgb.getolt.exec.OltPollingService

public class OltPollingService extends Object
Reusable service for polling a single OLT via Telnet. Used by both OltPollingTask (scheduler) and OltManageAction (UI).
  • Constructor Details

    • OltPollingService

      public OltPollingService()
  • Method Details

    • pollSingleOlt

      public static OltPollingService.PollResult pollSingleOlt(Connection con, Olt olt) throws Exception
      Throws:
      Exception
    • pollAllAsync

      public static void pollAllAsync(List<Olt> olts)
      Poll all OLTs asynchronously. Each OLT gets its own DB connection. OLTs must already have UPDATING status set by the caller.
    • pollSinglePort

      public static void pollSinglePort(Connection con, Olt olt, int portNum) throws Exception
      Poll a single port of an OLT via Telnet.
      Throws:
      Exception