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 |
FACTORY_ANALYTICS |
static String |
FACTORY_INTERNAL |
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 |
REDIS_SERVER_PORT |
static String |
REDIS_SERVER_URL |
static String |
SERVER_HOST_NAME |
static String |
SERVER_PORT_NUMBER |
static String |
STATIC_FILES_PATH |
static String |
TASK_MANAGER_IMPLEMENTATION |
static String |
ZK_BACKOFF_BASE_SLEEP_TIME |
static String |
ZK_BACKOFF_MAX_RETRIES |
static String |
ZK_CONNECTION_TIMEOUT |
static String |
ZK_NAMESPACE |
static String |
ZK_SERVERS |
static String |
ZK_SESSION_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) |
Optional<String> |
tryProperty(String property) |
String |
uri() |
public static final String GRAKN_VERSION_KEY
public static final String FACTORY_INTERNAL
public static final String FACTORY_ANALYTICS
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 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_SERVER_URL
public static final String REDIS_SERVER_PORT
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 ZK_SERVERS
public static final String ZK_NAMESPACE
public static final String ZK_SESSION_TIMEOUT
public static final String ZK_CONNECTION_TIMEOUT
public static final String ZK_BACKOFF_BASE_SLEEP_TIME
public static final String ZK_BACKOFF_MAX_RETRIES
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 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.