public class Settings extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Settings.AuthenticationSettingsSettings for the  Authenticatorimplementation. | 
| static class  | Settings.BaseMetrics | 
| static class  | Settings.ConsoleReporterMetricsSettings for a  Metricsreporter that writes to the console. | 
| static class  | Settings.CsvReporterMetricsSettings for a  Metricsreporter that writes to a CSV file. | 
| static class  | Settings.GangliaReporterMetricsSettings for a  Metricsreporter that writes to Ganglia. | 
| static class  | Settings.GraphiteReporterMetricsSettings for a  Metricsreporter that writes to Graphite. | 
| static class  | Settings.HostPortIntervalMetrics | 
| static class  | Settings.IntervalMetrics | 
| static class  | Settings.JmxReporterMetricsSettings for a  Metricsreporter that writes to JMX. | 
| static class  | Settings.ProcessorSettingsCustom configurations for any  OpProcessorimplementations. | 
| static class  | Settings.ScriptEngineSettingsSettings for the  ScriptEngine. | 
| static class  | Settings.SerializerSettingsSettings for the  MessageSerializerimplementations. | 
| static class  | Settings.ServerMetricsSettings for  Metricsrecorded by Gremlin Server. | 
| static class  | Settings.Slf4jReporterMetricsSettings for a  Metricsreporter that writes to the SL4J output. | 
| static class  | Settings.SslSettingsSettings to configure SSL support. | 
| Modifier and Type | Field and Description | 
|---|---|
| Settings.AuthenticationSettings | authentication | 
| String | channelizerThe full class name of the  Channelizerto use in Gremlin Server. | 
| Map<String,String> | graphs | 
| int | gremlinPoolSize of the Gremlin thread pool. | 
| String | hostHost to bind the server to. | 
| int | maxAccumulationBufferComponentsMaximum number of request components that can be aggregated for a message. | 
| int | maxChunkSizeThe maximum length of the content or each chunk. | 
| int | maxContentLengthThe maximum length of the aggregated content for a message. | 
| int | maxHeaderSizeThe maximum length of all headers. | 
| int | maxInitialLineLengthThe maximum length of the initial line (e.g. | 
| Settings.ServerMetrics | metricsConfigured metrics for Gremlin Server. | 
| List<String> | pluginsThe list of plugins to enable for the server. | 
| int | portPort to bind the server to. | 
| List<Settings.ProcessorSettings> | processorsCustom settings for  OpProcessorimplementations. | 
| int | resultIterationBatchSizeNumber of items in a particular resultset to iterate and serialize prior to pushing the data down the wire
 to the client. | 
| Map<String,Settings.ScriptEngineSettings> | scriptEnginesMapof settings forScriptEnginesetting objects keyed by the name of theScriptEngineimplementation. | 
| long | scriptEvaluationTimeoutTime in milliseconds to wait for a script to complete execution. | 
| long | serializedResponseTimeoutTime in milliseconds to wait while an evaluated script serializes its results. | 
| List<Settings.SerializerSettings> | serializersList of  MessageSerializerto configure. | 
| Settings.SslSettings | sslConfigures settings for SSL. | 
| int | threadPoolBossSize of the boss thread pool. | 
| int | threadPoolWorkerSize of the worker thread pool. | 
| boolean | useEpollEventLoopdetect if the OS is linux, then use epoll instead of NIO which causes less GC | 
| int | writeBufferHighWaterMarkIf the number of bytes in the network send buffer exceeds this value then the channel is no longer writeable,
 accepting no additional writes until buffer is drained and the  writeBufferLowWaterMarkis met. | 
| int | writeBufferLowWaterMarkOnce the number of bytes queued in the network send buffer exceeds the high water mark, the channel will not
 become writeable again until the buffer is drained and it drops below this value. | 
| Constructor and Description | 
|---|
| Settings() | 
| Modifier and Type | Method and Description | 
|---|---|
| Optional<Settings.ServerMetrics> | optionalMetrics() | 
| Optional<Settings.SslSettings> | optionalSsl() | 
| static Settings | read(InputStream stream)Read configuration from a file into a new  Settingsobject. | 
| static Settings | read(String file)Read configuration from a file into a new  Settingsobject. | 
public String host
public int port
public int threadPoolWorker
public boolean useEpollEventLoop
public int gremlinPool
public int threadPoolBoss
public long scriptEvaluationTimeout
public long serializedResponseTimeout
public int resultIterationBatchSize
public int maxInitialLineLength
"GET / HTTP/1.0") processed in a request, which essentially
 controls the maximum length of the submitted URI. This setting ties to the Netty HttpRequestDecoder.public int maxHeaderSize
HttpRequestDecoderpublic int maxChunkSize
HttpContents.  If the transfer encoding of the HTTP request is 'chunked' already, each chunk will be
 split into smaller chunks if the length of the chunk exceeds this value.public int maxContentLength
maxChunkSize where
 chunked requests are accumulated back into a single message.  A request exceeding this size will
 return a 413 - Request Entity Too Large status code.  A response exceeding this size will raise an internal
 exception.public int maxAccumulationBufferComponents
public int writeBufferHighWaterMark
writeBufferLowWaterMark is met.public int writeBufferLowWaterMark
public String channelizer
Channelizer to use in Gremlin Server.public Settings.ServerMetrics metrics
public Map<String,Settings.ScriptEngineSettings> scriptEngines
Map of settings for ScriptEngine setting objects keyed by the name of the ScriptEngine
 implementation.public List<Settings.SerializerSettings> serializers
MessageSerializer to configure.public Settings.SslSettings ssl
public Settings.AuthenticationSettings authentication
public List<String> plugins
public List<Settings.ProcessorSettings> processors
OpProcessor implementations. Implementations are loaded via
 ServiceLoader but custom configurations can be supplied through this configuration.public Optional<Settings.ServerMetrics> optionalMetrics()
public Optional<Settings.SslSettings> optionalSsl()
public static Settings read(String file) throws Exception
Settings object.public static Settings read(InputStream stream)
Settings object.Copyright © 2013–2015 Apache Software Foundation. All rights reserved.