Package com.variant.server.spi
Interface Configuration
public interface Configuration
Variant Server's runtime configuration currently in effect. Can be obtained by calling
Session.getConfiguration()
.- Since:
- 0.10
-
Method Summary
Modifier and TypeMethodDescriptionInitial state for the server-wide default trace event flusher.Server-wide default trace event flusher class.Server-wide default trace event flusher name.int
Event writer buffer size.float
Trace event writer's maximum degree of flushing parallelism.int
Trace event flush size.int
Event writer maximum delay in seconds.int
httpPort()
HTTP port.int
HTTPS port.The schemata directory where Variant server is looking for experiment schemata.int
Session timeout in seconds.int
Session vacuum interval in seconds.
-
Method Details
-
schemataDir
String schemataDir()The schemata directory where Variant server is looking for experiment schemata. Provided by thevariant.schemata.dir
configuration property. Cannot be null.- Since:
- 0.10
-
sessionTimeout
int sessionTimeout()Session timeout in seconds. Provided by thevariant.session.timeout
configuration property. Idle session are periodically cleaned out by the session vacuum.- Since:
- 0.10
-
sessionVacuumInterval
int sessionVacuumInterval()Session vacuum interval in seconds. Provided by thevariant.session.timeout.interval
configuration property.- Since:
- 0.10
-
defaultEventFlusherName
String defaultEventFlusherName()Server-wide default trace event flusher name. Optionally provided by thevariant.event.flusher.name
configuration property. Normally, each schema defines its own event flusher in the top levelflusher
key. If omitted, default to the flusher class' simple name.- Since:
- 0.10
-
defaultEventFlusherClassName
String defaultEventFlusherClassName()Server-wide default trace event flusher class. Provided by thevariant.event.flusher.class.name
configuration property. Normally, each schema defines its own event flusher in the top levelflusher
key. If omitted, Variant server will default to this implementation. Cannot be null.- Since:
- 0.10
-
defaultEventFlusherClassInit
Initial state for the server-wide default trace event flusher. Provided by thevariant.event.flusher.class.init
configuration property. Arbitrary JSON object.- Since:
- 0.10
-
eventWriterBufferSize
int eventWriterBufferSize()Event writer buffer size. Provided by thevariant.event.writer.buffer.size
configuration property. Event writer will be able to temporarily hold in memory up to this many generated trace events.- Since:
- 0.10
-
eventWriterMaxDelay
int eventWriterMaxDelay()Event writer maximum delay in seconds. Provided by thevariant.event.writer.max.delay
configuration property. Normally, event writer is woken up when its buffer is 50 percent full. For testing or demo purposes, you may override this behavior by limiting the time event writer may take to write our pending trace events.- Since:
- 0.10
-
eventWriterFlushSize
int eventWriterFlushSize()Trace event flush size. This limits the number of FlushableTraceEvent objects in the collections passed toTraceEventFlusher.flush(FlushableTraceEvent[], int)
method.- Since:
- 0.10
-
eventWriterFlushParallelism
float eventWriterFlushParallelism()Trace event writer's maximum degree of flushing parallelism. Variant server will execute up to N concurrent calls toTraceEventFlusher.flush(FlushableTraceEvent[], int)
, where N is computed as the product of this value and the number of hyper-threads in the underlying hardware, as reported byRuntime.getRuntime.availableProcessors
, rounded up to the nearest integer.- Since:
- 0.10
-
httpPort
int httpPort()HTTP port. Provided by thehttp.port
configuration property.- Since:
- 0.10
-
httpsPort
int httpsPort()HTTPS port. Provided by thehttp.port
configuration property.- Since:
- 0.10
-