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.LongHistogramComputer
Tracks statistics collection for timings stat.
|
static class |
SrvController.LongSeriesCollector
Collects timings stats for a
IStats.Series stat. |
| 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. |
IRogMessageLogger.Stats |
getHeartbeatLogStats()
Get a heartbeat log stats
|
static SrvController |
getInstance(SrvConfigDescriptor configDescriptor)
Get a server controller.
|
boolean |
isHeartbeatLogConfigured()
Get whether a heartbeat log is configured
|
boolean |
isHeartbeatLogOpen()
Get whether a heartbeat log is currently open
|
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, stopgetChecked, getThreaded, getTracerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstop, stoppublic 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 final 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 final Object getBootstrapConfigurer()
SrvController if any is attached.public final boolean isHeartbeatLogConfigured()
public final boolean isHeartbeatLogOpen()
public final IRogMessageLogger.Stats getHeartbeatLogStats()
IllegalStateException - if the heartbeat log is not configuredpublic final SrvAppManager getAppManager()
Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.