public final class SrvController extends com.neeve.daemon.controller.DmnController implements ISrvAppServerStopper
This class supplies the main runtime entry point into the server.
Modifier and Type | Class and Description |
---|---|
static class |
SrvController.IntHistogramComputer
Tracks statistics collection for timings stat.
|
static class |
SrvController.IntSeriesCollector
Collects timings stats for a
IStats.Series stat. |
static class |
SrvController.StatsRunner
The statistics runner
Intended For Internal Use Only
|
Modifier and Type | Method and Description |
---|---|
SrvAppManager |
getAppManager()
Get the server application manager
|
Object |
getBootstrapConfigurer()
Gets the bootstrap Configurer for this
SrvController if any is attached. |
static SrvController |
getInstance(SrvConfigDescriptor configDescriptor)
Get a server controller.
|
void |
setBootstrapConfigurer(Object configurer)
Tags this
SrvController with an opaque bootstrap Configurer
This is set by the server's main class at boot when an external configuration
provider is registered. |
getEventHandler, setEventHandler, setLauncher, start, stop, stop, stop
getChecked, getThreaded, getTracer, setChecked, setTracer
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
stop, stop
public static final SrvController getInstance(SrvConfigDescriptor configDescriptor)
configDescriptor
- The configuration descriptor that identifies the controller.There exists a single controller instance per server configuration descriptor i.e per server instance since each descriptor describes a server instance. If a controller for the supplied descriptor already exists, this method returns that instance. Otherwise, it creates a new instance and returns it to the user.
public void setBootstrapConfigurer(Object configurer)
SrvController
with an opaque bootstrap Configurer
This is set by the server's main class at boot when an external configuration provider is registered. The Configurer may also be set by an embedded application that programmatically creates the server, so that the configuration object can be surfaced to applications after the server has loaded them. In this case, the Configurer should be set prior to the SrvController being started.
configurer
- The Configurer to set.public Object getBootstrapConfigurer()
SrvController
if any is attached.public final SrvAppManager getAppManager()
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.