public interface Bootstrap
Bootstrap.Factory.newInstance()
.Modifier and Type | Interface and Description |
---|---|
static class |
Bootstrap.Configuration
The configuration for server bootstrap.
|
static interface |
Bootstrap.ConfigurationPersisterFactory
A factory for the
ExtensibleConfigurationPersister to be used by this server |
static class |
Bootstrap.Factory
The factory for creating new instances of
Bootstrap . |
Modifier and Type | Method and Description |
---|---|
org.jboss.threads.AsyncFuture<org.jboss.msc.service.ServiceContainer> |
bootstrap(Bootstrap.Configuration configuration,
List<org.jboss.msc.service.ServiceActivator> extraServices)
Bootstrap a new server instance, providing a
Future that will provide the
server's MSC ServiceContainer once the root service for the server is started. |
void |
failed()
Alerts this bootstrap instance that a failure has occurred during bootstrap or startup and it should
clean up resources.
|
org.jboss.threads.AsyncFuture<org.jboss.msc.service.ServiceContainer> |
startup(Bootstrap.Configuration configuration,
List<org.jboss.msc.service.ServiceActivator> extraServices)
Calls
bootstrap(Configuration, List) to bootstrap the container. |
org.jboss.threads.AsyncFuture<org.jboss.msc.service.ServiceContainer> bootstrap(Bootstrap.Configuration configuration, List<org.jboss.msc.service.ServiceActivator> extraServices)
Future
that will provide the
server's MSC ServiceContainer
once the root service for the server is started.
Note: The future will provide its value before the full server boot is
complete. To await the full boot, use startup(Configuration, List)
.configuration
- the server configurationextraServices
- additional services to start and stop with the server instanceorg.jboss.threads.AsyncFuture<org.jboss.msc.service.ServiceContainer> startup(Bootstrap.Configuration configuration, List<org.jboss.msc.service.ServiceActivator> extraServices)
bootstrap(Configuration, List)
to bootstrap the container. The value for the returned future
becomes available when all installed services have been started/failed.configuration
- the server configurationextraServices
- additional services to start and stop with the server instancevoid failed()
Copyright © 2023 JBoss by Red Hat. All rights reserved.