Interface MasterService
- All Known Implementing Classes:
CertificateNameService,DnsService,DomainService,TopLevelDomainService,VirtualHostNameService,WhoisHistoryService,ZoneService
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidstart()Once all the services have been loaded and instantiated, they are all started in dependency (TODO: in dependency order?).default TableHandler.GetObjectHandlerIn order the reduce the number of services listed in /META-INF/services, a handler may provide aTableHandler.GetObjectHandler.default Iterable<TableHandler.GetObjectHandler> In order the reduce the number of services listed in /META-INF/services, a handler may provide a set ofTableHandler.GetObjectHandler.default TableHandler.GetTableHandlerIn order the reduce the number of services listed in /META-INF/services, a handler may provide aTableHandler.GetTableHandler.default Iterable<TableHandler.GetTableHandler> In order the reduce the number of services listed in /META-INF/services, a handler may provide a set ofTableHandler.GetTableHandler.
-
Method Details
-
start
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
In order the reduce the number of services listed in /META-INF/services, a handler may provide a set ofTableHandler.GetObjectHandler. These are registered only after the handler successfullystarts. -
startGetObjectHandler
In order the reduce the number of services listed in /META-INF/services, a handler may provide aTableHandler.GetObjectHandler. This is registered only after the handler successfullystarts.When not null, this is combined into a single list, after the entries from
startGetObjectHandlers(). -
startGetTableHandlers
In order the reduce the number of services listed in /META-INF/services, a handler may provide a set ofTableHandler.GetTableHandler. These are registered only after the handler successfullystarts. -
startGetTableHandler
In order the reduce the number of services listed in /META-INF/services, a handler may provide aTableHandler.GetTableHandler. This is registered only after the handler successfullystarts.When not null, this is combined into a single list, after the entries from
startGetTableHandlers().
-
