T - the type of the DromblerClientConfigurationpublic abstract class DromblerClientStarter<T extends DromblerClientConfiguration> extends Object
| Constructor and Description |
|---|
DromblerClientStarter(T configuration)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAdditionalStarters(BootServiceStarter... additionalStarters)
Adds additional
BootServiceStarters to the list of starters to execute. |
protected abstract ApplicationInstanceListener |
getApplicationInstanceListener()
Gets the application instance listener.
|
T |
getConfiguration()
Gets the client configuration.
|
boolean |
init()
Initialzies this client starter.
|
static void |
main(String[] args)
The main method to execute the client starter using a simple implementation.
|
protected void |
registerShutdownHook(BootServiceStarter starter)
Registers a shutdown hook.
|
void |
start()
Starts this initialized client starter.
|
void |
stop()
Stops this client starter.
|
public DromblerClientStarter(T configuration)
configuration - the client configurationpublic static void main(String[] args) throws URISyntaxException, IOException, MissingPropertyException, Exception
args - the command line argsURISyntaxExceptionIOExceptionMissingPropertyExceptionInterruptedExceptionExceptionprotected final void addAdditionalStarters(BootServiceStarter... additionalStarters)
BootServiceStarters to the list of starters to execute. Only active starters will be added to the effective starters list.additionalStarters - additional startersBootServiceStarter.isActive()public boolean init()
throws Exception
protected abstract ApplicationInstanceListener getApplicationInstanceListener()
protected void registerShutdownHook(BootServiceStarter starter)
starter - a boot service starterRuntime.addShutdownHook(java.lang.Thread)public T getConfiguration()
Copyright © 2012–2019 Drombler. All rights reserved.