Class WhoisHistoryService
- All Implemented Interfaces:
MasterService
- Author:
- AO Industries, Inc.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetWhoisHistoryOutput
(DatabaseConnection conn, RequestSource source, int whoisHistoryAccount) Gets the whois output and error for the specific billing.WhoisHistory record.void
start()
Once all the services have been loaded and instantiated, they are all started in dependency (TODO: in dependency order?).In order the reduce the number of services listed in /META-INF/services, a handler may provide aTableHandler.GetTableHandler
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aoindustries.aoserv.master.MasterService
startGetObjectHandler, startGetObjectHandlers, startGetTableHandlers
-
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 interfaceMasterService
-
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()
- Throws:
IOException
SQLException
-
startGetTableHandler
Description copied from interface:MasterService
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
MasterService.startGetTableHandlers()
.- Specified by:
startGetTableHandler
in interfaceMasterService
-