Package com.tick42.glue.internal.acs
Class Acs
java.lang.Object
com.tick42.glue.internal.acs.Acs
- All Implemented Interfaces:
AsynchronousCloseable,ApplicationManager,AutoCloseable
public class Acs extends Object implements ApplicationManager, AsynchronousCloseable
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Map<String,Map<String,Object>>applications()Returns configurations for all available applications.CompletionStage<Void>closeAsync()Initiates a shutdown.Collection<ApplicationInstance>instances()This method shows all open application with their startup options.CompletionStage<Void>onClose()Return a stage that will complete whenAsynchronousCloseable.closeAsync()is called and shutdown completes.CompletionStage<ApplicationInstance>start(String applicationName, Map<String,Object> context)Start an application instance by specified name and context.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.tick42.glue.desktop.applications.ApplicationManager
startMethods inherited from interface com.tick42.glue.core.AsynchronousCloseable
close
-
Constructor Details
-
Acs
-
-
Method Details
-
onClose
Description copied from interface:AsynchronousCloseableReturn a stage that will complete whenAsynchronousCloseable.closeAsync()is called and shutdown completes.- Specified by:
onClosein interfaceAsynchronousCloseable- Returns:
- a stage that will complete when shutdown is complete, never
null
-
closeAsync
Description copied from interface:AsynchronousCloseableInitiates a shutdown.- Specified by:
closeAsyncin interfaceAsynchronousCloseable- Returns:
- a stage that will complete when shutdown is complete, never
null
-
applications
Description copied from interface:ApplicationManagerReturns configurations for all available applications. They keyed by application name.- Specified by:
applicationsin interfaceApplicationManager- Returns:
- a map with available application configurations keyed by application name, never
null
-
instances
Description copied from interface:ApplicationManagerThis method shows all open application with their startup options. The map's keys are the names of the applications.- Specified by:
instancesin interfaceApplicationManager- Returns:
- collection with all running applicaiton instances, never
null
-
start
public CompletionStage<ApplicationInstance> start(String applicationName, Map<String,Object> context)Description copied from interface:ApplicationManagerStart an application instance by specified name and context.- Specified by:
startin interfaceApplicationManager- Parameters:
applicationName- identifying name for the applicationcontext- starting context specification- Returns:
- a stage that completes when application instance is started, never
null
-