Class Settings
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.driver.Settings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Settings.AuthSettings
static class
Settings.SerializerSettings
-
Field Summary
Fields Modifier and Type Field Description Settings.AuthSettings
auth
Settings for authentication.boolean
bulkResults
Toggles if result from server is bulked.org.apache.tinkerpop.gremlin.driver.Settings.ConnectionPoolSettings
connectionPool
Settings for connections and connection pool.boolean
enableUserAgentOnConnect
Toggles if user agent should be sent in web socket handshakes.List<String>
hosts
The list of hosts that the driver will connect to.int
nioPoolSize
The size of the thread pool defaulted to the number of available processors.String
path
The path to the Gremlin service which is defaulted to "/gremlin".int
port
The port of the Gremlin Server to connect to which defaults to8182
.Settings.SerializerSettings
serializer
The serializer that will be used when communicating with the server.int
workerPoolSize
The number of worker threads defaulted to the number of available processors * 2.
-
Constructor Summary
Constructors Constructor Description Settings()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Settings
from(org.apache.commons.configuration2.Configuration conf)
Read configuration from a file into a newSettings
object.static Settings
read(InputStream stream)
Read configuration from a file into a newSettings
object.
-
-
-
Field Detail
-
port
public int port
The port of the Gremlin Server to connect to which defaults to8182
. The same port will be applied for allhosts
.
-
path
public String path
The path to the Gremlin service which is defaulted to "/gremlin".
-
serializer
public Settings.SerializerSettings serializer
The serializer that will be used when communicating with the server. Note that serializer settings should match what is available on the server.
-
connectionPool
public org.apache.tinkerpop.gremlin.driver.Settings.ConnectionPoolSettings connectionPool
Settings for connections and connection pool.
-
auth
public Settings.AuthSettings auth
Settings for authentication.
-
nioPoolSize
public int nioPoolSize
The size of the thread pool defaulted to the number of available processors.
-
workerPoolSize
public int workerPoolSize
The number of worker threads defaulted to the number of available processors * 2.
-
enableUserAgentOnConnect
public boolean enableUserAgentOnConnect
Toggles if user agent should be sent in web socket handshakes.
-
bulkResults
public boolean bulkResults
Toggles if result from server is bulked. Default is false.
-
-
Method Detail
-
read
public static Settings read(InputStream stream)
Read configuration from a file into a newSettings
object.- Parameters:
stream
- an input stream containing a Gremlin Server YAML configuration
-
-