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 Classes
    Modifier and Type
    Interface
    Description
    static final class 
    The configuration for server bootstrap.
    static interface 
    A factory for the ExtensibleConfigurationPersister to be used by this server
    static final class 
    The factory for creating new instances of Bootstrap.
  • Method Summary

    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 a Future that will provide the server's MSC ServiceContainer once the root service for the server is started.
    void
    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.
  • 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 a 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).
      Parameters:
      configuration - the server configuration
      extraServices - 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)
      Calls bootstrap(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 configuration
      extraServices - 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.