Interface MasterService

All Known Implementing Classes:
CertificateNameService, DnsService, DomainService, TopLevelDomainService, VirtualHostNameService, WhoisHistoryService, ZoneService

public interface MasterService
A dynamically loaded component of the master server.
Author:
AO Industries, Inc.
  • Method Details

    • start

      default void start() throws Exception
      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.

      Throws:
      Exception
    • startGetObjectHandlers

      default Iterable<TableHandler.GetObjectHandler> startGetObjectHandlers()
      In order the reduce the number of services listed in /META-INF/services, a handler may provide a set of TableHandler.GetObjectHandler. These are registered only after the handler successfully starts.
    • startGetObjectHandler

      default TableHandler.GetObjectHandler startGetObjectHandler()
      In order the reduce the number of services listed in /META-INF/services, a handler may provide a TableHandler.GetObjectHandler. This is registered only after the handler successfully starts.

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

    • startGetTableHandlers

      default Iterable<TableHandler.GetTableHandler> startGetTableHandlers()
      In order the reduce the number of services listed in /META-INF/services, a handler may provide a set of TableHandler.GetTableHandler. These are registered only after the handler successfully starts.
    • startGetTableHandler

      default TableHandler.GetTableHandler startGetTableHandler()
      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 startGetTableHandlers().