public final class ClusteredServiceContainer extends Object implements AutoCloseable
ClusteredServiceContainer.Configuration.SERVICE_CLASS_NAME_PROP_NAME or
ClusteredServiceContainer.Context.clusteredService(ClusteredService).| Modifier and Type | Class and Description |
|---|---|
static class |
ClusteredServiceContainer.Configuration
Configuration options for the consensus module and service container within a cluster.
|
static class |
ClusteredServiceContainer.Context
The context will be owned by
ClusteredServiceAgent after a successful
launch(Context) and closed via close(). |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ClusteredServiceContainer.Context |
context()
Get the
ClusteredServiceContainer.Context that is used by this ClusteredServiceContainer. |
static ClusteredServiceContainer |
launch()
Launch an ClusteredServiceContainer using a default configuration.
|
static ClusteredServiceContainer |
launch(ClusteredServiceContainer.Context ctx)
Launch a ClusteredServiceContainer by providing a configuration context.
|
static void |
main(String[] args)
Launch the clustered service container and await a shutdown signal.
|
public static void main(String[] args)
args - command line argument which is a list for properties files as URLs or filenames.public static ClusteredServiceContainer launch()
public static ClusteredServiceContainer launch(ClusteredServiceContainer.Context ctx)
ctx - for the configuration parameters.public ClusteredServiceContainer.Context context()
ClusteredServiceContainer.Context that is used by this ClusteredServiceContainer.ClusteredServiceContainer.Context that is used by this ClusteredServiceContainer.public void close()
close in interface AutoCloseableCopyright © 2014-2023 Real Logic Limited. All Rights Reserved.