public class ArangoConfigure extends Object
Constructor and Description |
---|
ArangoConfigure() |
ArangoConfigure(String propertyPath) |
Modifier and Type | Method and Description |
---|---|
void |
addFallbackArangoHost(ArangoHost arangoHost)
Set the host name and port of the fallback database
|
ArangoHost |
changeCurrentHost() |
ArangoHost |
getArangoHost()
Get the default database host name and port
|
String |
getBaseUrl() |
int |
getBatchSize() |
int |
getClientPort()
Deprecated.
|
int |
getConnectionTimeout() |
int |
getConnectRetryCount() |
int |
getConnectRetryWait() |
String |
getDefaultDatabase() |
static String |
getDefaultHost() |
static int |
getDefaultMaxConnection() |
static int |
getDefaultMaxPerConnection() |
String |
getEndpoint() |
String |
getHost()
Deprecated.
|
BatchHttpManager |
getHttpManager() |
int |
getMaxPerConnection() |
int |
getMaxTotalConnection() |
String |
getPassword() |
int |
getPort()
Deprecated.
|
String |
getProxyHost() |
int |
getProxyPort() |
int |
getRetryCount() |
SSLContext |
getSslContext() |
String |
getSslTrustStore() |
int |
getTimeout() |
String |
getUser() |
boolean |
getUseSsl() |
boolean |
hasFallbackHost() |
void |
init() |
boolean |
isEnableCURLLogger() |
boolean |
isStaleConnectionCheck() |
void |
loadProperties()
Load configure from arangodb.properties in classpath, if exists.
|
void |
loadProperties(String propertyPath)
Load configure from "propertyPath" in classpath, if exists.
|
void |
setArangoHost(ArangoHost arangoHost)
Set the host name and port of the database
|
void |
setBatchSize(int batchSize) |
void |
setClinetPort(int clientPort)
Deprecated.
|
void |
setConnectionTimeout(int connectionTimeout) |
void |
setConnectRetryCount(int connectRetryCount)
Set number of connect retries (0 means infinite)
|
void |
setConnectRetryWait(int connectRetryWait)
Set wait time for a connect retry
|
void |
setDefaultDatabase(String defaultDatabase)
Set the default database for the driver TODO: _system has to be a valid
parameter
|
void |
setEnableCURLLogger(boolean enableCURLLogger) |
void |
setHost(String host)
Deprecated.
|
void |
setHttpManager(BatchHttpManager httpManager) |
void |
setMaxPerConnection(int maxPerConnection) |
void |
setMaxTotalConnection(int maxTotalConnection) |
void |
setPassword(String password) |
void |
setPort(int port)
Deprecated.
|
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(int proxyPort) |
void |
setRetryCount(int retryCount) |
void |
setSslContext(SSLContext sslContext)
Set SSL contest for HTTPS connections.
|
void |
setSslTrustStore(String sslTrustStore)
Set file name of trust store
(do not use setSslTrustStore() together with setSslContext())
|
void |
setStaleConnectionCheck(boolean staleConnectionCheck) |
void |
setTimeout(int timeout) |
void |
setUser(String user) |
void |
setUseSsl(boolean useSsl)
Configure the client to use HTTPS or HTTP
|
void |
shutdown() |
public ArangoConfigure()
public ArangoConfigure(String propertyPath)
public void loadProperties()
public void loadProperties(String propertyPath)
propertyPath
- public void init()
public void shutdown()
public String getBaseUrl()
public String getEndpoint()
public boolean hasFallbackHost()
public ArangoHost changeCurrentHost()
public static String getDefaultHost()
public static int getDefaultMaxPerConnection()
public static int getDefaultMaxConnection()
@Deprecated public int getClientPort()
getArangoHost
@Deprecated public int getPort()
getArangoHost
@Deprecated public String getHost()
getArangoHost
public ArangoHost getArangoHost()
public int getConnectionTimeout()
public int getTimeout()
public int getMaxTotalConnection()
public int getMaxPerConnection()
public String getProxyHost()
public int getProxyPort()
@Deprecated public void setClinetPort(int clientPort)
setArangoHost
clientPort
- the port number@Deprecated public void setPort(int port)
setArangoHost
port
- the port number@Deprecated public void setHost(String host)
setArangoHost
host
- the host namepublic void setArangoHost(ArangoHost arangoHost)
arangoHost
- the host name and portpublic void addFallbackArangoHost(ArangoHost arangoHost)
arangoHost
- the host name and portpublic void setConnectionTimeout(int connectionTimeout)
public void setTimeout(int timeout)
public void setMaxTotalConnection(int maxTotalConnection)
public void setMaxPerConnection(int maxPerConnection)
public void setProxyHost(String proxyHost)
public void setProxyPort(int proxyPort)
public int getRetryCount()
public void setRetryCount(int retryCount)
public BatchHttpManager getHttpManager()
public void setHttpManager(BatchHttpManager httpManager)
public String getUser()
public String getPassword()
public void setUser(String user)
public void setPassword(String password)
public String getDefaultDatabase()
public void setDefaultDatabase(String defaultDatabase)
defaultDatabase
- public boolean isEnableCURLLogger()
public void setEnableCURLLogger(boolean enableCURLLogger)
public boolean isStaleConnectionCheck()
public void setStaleConnectionCheck(boolean staleConnectionCheck)
public int getConnectRetryCount()
public void setConnectRetryCount(int connectRetryCount)
connectRetryCount
- number of connect retriespublic int getConnectRetryWait()
public void setConnectRetryWait(int connectRetryWait)
connectRetryWait
- milliseconds to waitpublic int getBatchSize()
public void setBatchSize(int batchSize)
public boolean getUseSsl()
public void setUseSsl(boolean useSsl)
useSsl
- set true to use HTTPS (default false)public SSLContext getSslContext()
public void setSslContext(SSLContext sslContext)
sslContext
- public String getSslTrustStore()
public void setSslTrustStore(String sslTrustStore)
sslTrustStore
- Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.