public class GraknEngineConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ADMIN_PASSWORD_PROPERTY |
static String |
DEFAULT_CONFIG_FILE |
static String |
DEFAULT_KEYSPACE_PROPERTY |
static String |
GRAKN_VERSION_KEY |
static String |
JWT_SECRET_PROPERTY |
static String |
LOADER_REPEAT_COMMITS |
static String |
NUM_THREADS_PROPERTY |
static String |
PASSWORD_PROTECTED_PROPERTY |
static String |
POST_PROCESSING_TASK_DELAY |
static String |
QUEUE_CONSUMERS |
static String |
REDIS_HOST |
static String |
REDIS_POOL_SIZE |
static String |
REDIS_SENTINEL_HOST |
static String |
REDIS_SENTINEL_MASTER |
static String |
SERVER_HOST_NAME |
static String |
SERVER_PORT_NUMBER |
static String |
STATIC_FILES_PATH |
static String |
TASK_MANAGER_IMPLEMENTATION |
static String |
TASKS_RETRY_DELAY |
static String |
WEBSERVER_THREADS |
static int |
WEBSOCKET_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
static GraknEngineConfig |
create() |
int |
getAvailableThreads() |
static String |
getConfigFilePath() |
String |
getPath(String path) |
Properties |
getProperties() |
String |
getProperty(String property) |
boolean |
getPropertyAsBool(String property,
boolean defaultValue) |
int |
getPropertyAsInt(String property) |
long |
getPropertyAsLong(String property) |
static GraknEngineConfig |
read(String path) |
void |
setConfigProperty(String key,
String value) |
int |
tryIntProperty(String property,
int defaultValue) |
Optional<String> |
tryProperty(String property) |
String |
uri() |
public static final String GRAKN_VERSION_KEY
public static final String DEFAULT_CONFIG_FILE
public static final String DEFAULT_KEYSPACE_PROPERTY
public static final String NUM_THREADS_PROPERTY
public static final String JWT_SECRET_PROPERTY
public static final String PASSWORD_PROTECTED_PROPERTY
public static final String WEBSERVER_THREADS
public static final String ADMIN_PASSWORD_PROPERTY
public static final String SERVER_HOST_NAME
public static final String SERVER_PORT_NUMBER
public static final String LOADER_REPEAT_COMMITS
public static final String REDIS_HOST
public static final String REDIS_SENTINEL_HOST
public static final String REDIS_SENTINEL_MASTER
public static final String REDIS_POOL_SIZE
public static final String QUEUE_CONSUMERS
public static final String STATIC_FILES_PATH
public static final String TASK_MANAGER_IMPLEMENTATION
public static final String POST_PROCESSING_TASK_DELAY
public static final String TASKS_RETRY_DELAY
public static final int WEBSOCKET_TIMEOUT
public static GraknEngineConfig create()
public static GraknEngineConfig read(String path)
public int getAvailableThreads()
public String getPath(String path)
path - The name of the property inside the Properties map that refers to a pathpublic static String getConfigFilePath()
public Properties getProperties()
public int tryIntProperty(String property, int defaultValue)
public int getPropertyAsInt(String property)
public long getPropertyAsLong(String property)
public boolean getPropertyAsBool(String property, boolean defaultValue)
public String uri()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.