Package org.jboss.as.server
Interface Bootstrap
public interface Bootstrap
The application server bootstrap interface. Get a new instance via
Bootstrap.Factory.newInstance().- Author:
- David M. Lloyd, Thomas.Diesler@jboss.com
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThe configuration for server bootstrap.static interfaceA factory for theExtensibleConfigurationPersisterto be used by this serverstatic final classThe factory for creating new instances ofBootstrap. -
Method Summary
Modifier and TypeMethodDescriptionorg.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 aFuturethat will provide the server's MSCServiceContaineronce the root service for the server is started.voidfailed()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) Callsbootstrap(Configuration, List)to bootstrap the container.
-
Method Details
-
bootstrap
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 aFuturethat will provide the server's MSCServiceContaineronce 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, usestartup(Configuration, List).- Parameters:
configuration- the server configurationextraServices- additional services to start and stop with the server instance- Returns:
- the future service container
-
startup
org.jboss.threads.AsyncFuture<org.jboss.msc.service.ServiceContainer> startup(Bootstrap.Configuration configuration, List<org.jboss.msc.service.ServiceActivator> extraServices) Callsbootstrap(Configuration, List)to bootstrap the container. The value for the returned future becomes available when all installed services have been started/failed.- Parameters:
configuration- the server configurationextraServices- additional services to start and stop with the server instance- Returns:
- the future service container
-
failed
void failed()Alerts this bootstrap instance that a failure has occurred during bootstrap or startup and it should clean up resources.
-