public ApplicationContext context() throws InterruptedException { return this.contextController.awaitValue(); }
public S awaitValue(long time, TimeUnit unit) throws IllegalStateException, InterruptedException, TimeoutException { return controller.awaitValue(time, unit); } }
public Resource publicResource() throws InterruptedException { return this.publicResourceController.awaitValue(); }
public S awaitValue() throws IllegalStateException, InterruptedException { return controller.awaitValue(); }
public Resource adminResource() throws InterruptedException { return this.adminResourceController.awaitValue(); }
@Override public Application application(String id) throws InterruptedException { ServiceController<InternalApplication> controller = this.applications.get(id); if (controller == null) { return null; } return controller.awaitValue(); }
/** {@inheritDoc} */ @Override @Deprecated public S awaitValue() throws IllegalStateException, InterruptedException { return getDelegate().awaitValue(); }
/** {@inheritDoc} */ @Override @Deprecated public S awaitValue(final long time, final TimeUnit unit) throws IllegalStateException, InterruptedException, TimeoutException { return getDelegate().awaitValue(time, unit); }
/** {@inheritDoc} */ @Override @Deprecated public S awaitValue() throws IllegalStateException, InterruptedException { return getDelegate().awaitValue(); }
/** {@inheritDoc} */ @Override @Deprecated public S awaitValue(final long time, final TimeUnit unit) throws IllegalStateException, InterruptedException, TimeoutException { return getDelegate().awaitValue(time, unit); }
public InternalApplicationRegistry applicationRegistry() throws InterruptedException { return (InternalApplicationRegistry) this.serviceContainer.getService(Services.APPLICATION_REGISTRY).awaitValue(); }
public ExtensionInstaller extensionInstaller() throws InterruptedException { return (ExtensionInstaller) this.serviceContainer.getService(Services.EXTENSION_INSTALLER).awaitValue(); }
public Object service(ServiceName name) throws InterruptedException, TimeoutException { return this.serviceContainer.getService(name).awaitValue(5, TimeUnit.SECONDS); }
public Client client() throws InterruptedException { return (Client) this.serviceContainer.getService(Services.CLIENT).awaitValue(); }
public ResourceCodecManager codecManager() throws InterruptedException { return (ResourceCodecManager) this.serviceContainer.getService(Services.CODEC_MANAGER).awaitValue(); }
public Vertx vertx() throws InterruptedException { return (Vertx) this.serviceContainer.getService(Services.VERTX).awaitValue(); }
public InternalApplication createApplication(String id, String name, File directory, Consumer<File> gitCommit) throws InterruptedException { ApplicationService app = new ApplicationService(id, name, directory, gitCommit); ServiceController<InternalApplication> controller = this.target.addService(Services.application(id), app) .addDependency(Services.APPLICATIONS_DIR, File.class, app.applicationsDirectoryInjector()) .addDependency(Services.SECURITY_DIRECT_ACCESS_CLIENT, DirectAccessClient.class, app.directAccessClientInjector()) .addDependency(Services.SECURITY_CLIENT, SecurityClient.class, app.securityClientInjector()) .install(); this.applications.put(id, controller); return controller.awaitValue(); }
public Server networkServer(String name) throws InterruptedException { return (Server) this.serviceContainer.getService(Services.server(name, true)).awaitValue(); }
public Server localServer(String name) throws InterruptedException { return (Server) this.serviceContainer.getService(Services.server(name, false)).awaitValue(); }
public LiveOakSystem createInternal(Consumer<ServiceTarget> preWaitSetup) throws Exception { prolog(); createTenancy(); createServers(); createClient(); createExtensions(); createVertx(); // Handle any actions that need to be performed before awaiting stability if (preWaitSetup != null) { preWaitSetup.accept(this.serviceTarget); } this.stabilityMonitor.awaitStability(); return (LiveOakSystem) serviceContainer.getService(LIVEOAK).awaitValue(); }