Interface Configuration


public interface Configuration
Variant Server's runtime configuration currently in effect. Can be obtained by calling Session.getConfiguration().
Since:
0.10
  • Method Details

    • schemataDir

      String schemataDir()
      The schemata directory where Variant server is looking for experiment schemata. Provided by the variant.schemata.dir configuration property. Cannot be null.
      Since:
      0.10
    • sessionTimeout

      int sessionTimeout()
      Session timeout in seconds. Provided by the variant.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 the variant.session.timeout.interval configuration property.
      Since:
      0.10
    • defaultEventFlusherName

      String defaultEventFlusherName()
      Server-wide default trace event flusher name. Optionally provided by the variant.event.flusher.name configuration property. Normally, each schema defines its own event flusher in the top level flusher 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 the variant.event.flusher.class.name configuration property. Normally, each schema defines its own event flusher in the top level flusher key. If omitted, Variant server will default to this implementation. Cannot be null.
      Since:
      0.10
    • defaultEventFlusherClassInit

      Optional<String> defaultEventFlusherClassInit()
      Initial state for the server-wide default trace event flusher. Provided by the variant.event.flusher.class.init configuration property. Arbitrary JSON object.
      Since:
      0.10
    • eventWriterBufferSize

      int eventWriterBufferSize()
      Event writer buffer size. Provided by the variant.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 the variant.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 to TraceEventFlusher.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 to TraceEventFlusher.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 by Runtime.getRuntime.availableProcessors, rounded up to the nearest integer.
      Since:
      0.10
    • httpPort

      int httpPort()
      HTTP port. Provided by the http.port configuration property.
      Since:
      0.10
    • httpsPort

      int httpsPort()
      HTTPS port. Provided by the http.port configuration property.
      Since:
      0.10