Package org.jboss.as.server
Interface Bootstrap
-
public interface BootstrapThe application server bootstrap interface. Get a new instance viaBootstrap.Factory.newInstance().- Author:
- David M. Lloyd, Thomas.Diesler@jboss.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBootstrap.ConfigurationThe configuration for server bootstrap.static interfaceBootstrap.ConfigurationPersisterFactoryA factory for theExtensibleConfigurationPersisterto be used by this serverstatic classBootstrap.FactoryThe factory for creating new instances ofBootstrap.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 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 Detail
-
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.
-
-