public final class Application extends Object
Constructor and Description |
---|
Application(Adaptor adaptor,
Config config) |
Modifier and Type | Method and Description |
---|---|
Config |
getConfig()
Returns the
Config used by this instance. |
GsaCommunicationHandler |
getGsaCommunicationHandler()
Returns the
GsaCommunicationHandler used by this instance. |
static Application |
main(Adaptor adaptor,
String[] args)
Main for adaptors to utilize when wanting to act as an application.
|
void |
start()
Start necessary services for receiving requests and managing background
tasks.
|
void |
stop(long time,
TimeUnit unit)
Stop processing incoming requests and background tasks, allowing graceful
shutdown.
|
public void start() throws IOException, InterruptedException
stop(long, java.util.concurrent.TimeUnit)
for graceful
manual shutdown. A shutdown hook is automatically installed that calls
stop()
.IOException
InterruptedException
public void stop(long time, TimeUnit unit)
public GsaCommunicationHandler getGsaCommunicationHandler()
GsaCommunicationHandler
used by this instance.public static Application main(Adaptor adaptor, String[] args)
start()
.