public interface Control
Modifier and Type | Field and Description |
---|---|
static String |
PGX_CONFIG_FILE_SYSTEM_PROPERTY |
static String |
SERVER_CONFIG_FILE_NAME |
Modifier and Type | Method and Description |
---|---|
PgxFuture<Void> |
addPinnedGraph(GraphConfig cfg)
Add a pinned graph (will not be unloaded by engine) to be shared between sessions
|
PgxFuture<Void> |
demotePinnedGraph(GraphConfig cfg)
Demote pinned graph.
|
PgxFuture<GraphInfo> |
getGraphInfo(String graphName)
Get details of a (shared) persistent graph
|
PgxFuture<GraphInfo> |
getGraphInfo(String sessionId, String graphName)
Get details of a session-bound, private graph
|
PgxFuture<Collection<GraphInfo>> |
getGraphInfos()
Get a list of currently active graphs.
|
PgxFuture<MemoryInfo> |
getMemoryInfo()
Gets the memory info.
|
PgxFuture<Map<PgxConfig.Field,Object>> |
getPgxConfig()
Gets the pgx config.
|
PgxFuture<SessionInfo> |
getSessionInfo(String sessionId)
Gets the session info.
|
PgxFuture<Collection<SessionInfo>> |
getSessionInfos()
Gets the session infos.
|
PgxFuture<PoolInfo> |
getThreadPoolInfo(PoolType type)
Gets the thread pool info.
|
PgxFuture<Boolean> |
isRunning()
Check if the engine is currently up
|
PgxFuture<Void> |
killSession(String sessionId)
Kill session.
|
PgxFuture<GraphConfig> |
lookupPreloadedGraph(String name)
look up the config of a pre-loaded graph by name.
|
PgxFuture<Void> |
resizePool(PoolType poolType, int parallelism)
resize a pool to use a different degree of parallelism
|
PgxFuture<Boolean> |
shutdown(long timeout, TimeUnit unit)
gracefully shuts down the engine and cleans up resources.
|
PgxFuture<Void> |
shutdownNow()
forces the engine to stop and clean up resources.
|
PgxFuture<Void> |
shutdownNowIfRunning() |
PgxFuture<Void> |
start() |
PgxFuture<Void> |
start(InputStream config) |
PgxFuture<Void> |
start(Map<PgxConfig.Field,Object> config) |
PgxFuture<Void> |
start(String json) |
static final String PGX_CONFIG_FILE_SYSTEM_PROPERTY
static final String SERVER_CONFIG_FILE_NAME
PgxFuture<Void> addPinnedGraph(GraphConfig cfg)
cfg
-PgxFuture<Void> demotePinnedGraph(GraphConfig cfg)
cfg
- the cfgPgxFuture<GraphInfo> getGraphInfo(String graphName)
graphName
- internal name of persistent graphPgxFuture<GraphInfo> getGraphInfo(String sessionId, String graphName)
sessionId
- session id of session holding the graphgraphName
- name of graphPgxFuture<Collection<GraphInfo>> getGraphInfos()
PgxFuture<MemoryInfo> getMemoryInfo()
PgxFuture<Map<PgxConfig.Field,Object>> getPgxConfig()
PgxFuture<SessionInfo> getSessionInfo(String sessionId)
sessionId
- the session idPgxFuture<Collection<SessionInfo>> getSessionInfos()
PgxFuture<PoolInfo> getThreadPoolInfo(PoolType type)
type
- which thread poolPgxFuture<Boolean> isRunning()
PgxFuture<Void> killSession(String sessionId)
sessionId
- the session to be killedPgxFuture<GraphConfig> lookupPreloadedGraph(String name)
name
- the name of the graphnull
if no such graph was pre-loaded.PgxFuture<Void> resizePool(PoolType poolType, int parallelism)
poolType
- which pool to resizeparallelism
- the target parallelismPgxFuture<Boolean> shutdown(long timeout, TimeUnit unit)
PgxFuture<Void> shutdownNow()
PgxFuture<Void> start(InputStream config)
PgxFuture<Void> start(Map<PgxConfig.Field,Object> config)
Copyright © 2015. All rights reserved.