Class WhoisHistoryService

All Implemented Interfaces:

public final class WhoisHistoryService extends Object implements MasterService
Handles all the accesses to the whois history.
AO Industries, Inc.
  • Constructor Details

    • WhoisHistoryService

      public WhoisHistoryService()
  • Method Details

    • start

      public void start()
      Description copied from interface: MasterService
      Once all the services have been loaded and instantiated, they are all started in dependency (TODO: in dependency order?).

      Once the master server has attempted to start each service at least once, it will then proceed to accept incoming connections.

      When a service returns from start, without throwing an exception, it is considerer alive and start will not be called again. When a service fails to start, by throwing an exception, start will be re-attempted once per minute indefinitely.

      There is no timeout on calls to start. If a service blocks the entire master server will not start.

      Specified by:
      start in interface MasterService
    • getWhoisHistoryOutput

      public Tuple2<String,String> getWhoisHistoryOutput(DatabaseConnection conn, RequestSource source, int whoisHistoryAccount) throws IOException, SQLException
      Gets the whois output and error for the specific billing.WhoisHistory record.

      The same filtering as startGetTableHandler()

    • startGetTableHandler

      public TableHandler.GetTableHandler startGetTableHandler()
      Description copied from interface: MasterService
      In order the reduce the number of services listed in /META-INF/services, a handler may provide a TableHandler.GetTableHandler. This is registered only after the handler successfully starts.

      When not null, this is combined into a single list, after the entries from MasterService.startGetTableHandlers().

      Specified by:
      startGetTableHandler in interface MasterService