Package com.yahoo.jdisc.client
Class AbstractClientApplication
java.lang.Object
com.yahoo.jdisc.application.AbstractApplication
com.yahoo.jdisc.client.AbstractClientApplication
- All Implemented Interfaces:
Application
,ClientApplication
,Runnable
public abstract class AbstractClientApplication
extends AbstractApplication
implements ClientApplication
This is a convenient parent class for ClientApplication
developers. It extends AbstractApplication
and implements Runnable
to wait for shutdown()
to be called. When using this class, you implement
Application.start()
(and optionally AbstractApplication.stop()
), and provide a reference to it to whatever component is responsible
for signaling shutdown.
- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorDescriptionAbstractClientApplication
(BundleInstaller bundleInstaller, ContainerActivator activator, CurrentContainer container) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final boolean
awaitShutdown
(int timeout, TimeUnit unit) final boolean
final void
run()
final void
shutdown()
Methods inherited from class com.yahoo.jdisc.application.AbstractApplication
activateContainer, awaitTermination, awaitTermination, container, destroy, installAndStartBundle, installAndStartBundle, isTerminated, newContainerBuilder, stop, stopAndUninstallBundle, stopAndUninstallBundle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.yahoo.jdisc.application.Application
destroy, start, stop
-
Constructor Details
-
AbstractClientApplication
@Inject public AbstractClientApplication(BundleInstaller bundleInstaller, ContainerActivator activator, CurrentContainer container)
-
-
Method Details
-
run
public final void run() -
shutdown
public final void shutdown() -
isShutdown
public final boolean isShutdown() -
awaitShutdown
- Throws:
InterruptedException
-
awaitShutdown
- Throws:
InterruptedException
-