public class ServerInstance extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addPinnedGraph(GraphConfig cfg)
Blocking version of
#addPinnedGraphAsync(). |
PgxFuture<Void> |
addPinnedGraphAsync(GraphConfig cfg)
Add a pinned graph (will not be unloaded by engine) to be shared between sessions
|
PgxSession |
createSession(String source)
Blocking version of
#createSessionAsync(). |
PgxSession |
createSession(String source, Long idleTimeout, Long taskTimeout, TimeUnit unit)
Blocking version of
#createSessionAsync(). |
PgxFuture<PgxSession> |
createSessionAsync(String source)
Create a new session.
|
PgxFuture<PgxSession> |
createSessionAsync(String source, Long idleTimeout, Long taskTimeout, TimeUnit unit)
Creates a new session.
|
void |
demotePinnedGraph(GraphConfig cfg)
Blocking version of
#demotePinnedGraphAsync(). |
PgxFuture<Void> |
demotePinnedGraphAsync(GraphConfig cfg)
Demote pinned graph.
|
String |
getBaseUrl()
Gets the base url this instance object is pointing to.
|
GraphInfo |
getGraphInfo(String graphName)
Blocking version of
#getGraphInfoAsync(). |
GraphInfo |
getGraphInfo(String sessionId, String graphName)
Blocking version of
#getGraphInfoAsync(). |
PgxFuture<GraphInfo> |
getGraphInfoAsync(String graphName)
Get details of a (shared) persistent graph
|
PgxFuture<GraphInfo> |
getGraphInfoAsync(String sessionId, String graphName)
Get details of a session-bound, private graph
|
Collection<GraphInfo> |
getGraphInfos()
Blocking version of
getGraphInfosAsync(). |
PgxFuture<Collection<GraphInfo>> |
getGraphInfosAsync()
Get a list of currently active graphs.
|
MemoryInfo |
getMemoryInfo()
Blocking version of
getMemoryInfoAsync(). |
PgxFuture<MemoryInfo> |
getMemoryInfoAsync()
Gets the memory info.
|
Map<PgxConfig.Field,Object> |
getPgxConfig()
Blocking version of
getPgxConfigAsync(). |
PgxFuture<Map<PgxConfig.Field,Object>> |
getPgxConfigAsync()
Gets the PGX config.
|
String |
getPgxVersion()
Gets the PGX version.
|
Integer |
getPrefetchSize()
Gets the prefetchSize of this instance.
|
Integer |
getRemoteFutureTimeout()
Gets the remoteFutureTimeout of this instance.
|
SessionInfo |
getSessionInfo(String sessionId)
Blocking version of
#getSessionInfoAsync(). |
PgxFuture<SessionInfo> |
getSessionInfoAsync(String sessionId)
Gets the session info.
|
Collection<SessionInfo> |
getSessionInfos()
Blocking version of
getSessionInfosAsync(). |
PgxFuture<Collection<SessionInfo>> |
getSessionInfosAsync()
Gets the session infos.
|
PoolInfo |
getThreadPoolInfo(PoolType type)
Blocking version of
#getThreadPoolInfoAsync(). |
PgxFuture<PoolInfo> |
getThreadPoolInfoAsync(PoolType type)
Gets the thread pool info.
|
Integer |
getUploadBatchSize()
Gets the uploadBatchSize of this instance.
|
boolean |
isEmbeddedInstance()
Checks if is embedded instance.
|
boolean |
isEngineRunning()
Blocking version of
isEngineRunningAsync(). |
PgxFuture<Boolean> |
isEngineRunningAsync()
Check if the engine is currently up
|
void |
killSession(String sessionId)
Blocking version of
#killSessionAsync(). |
PgxFuture<Void> |
killSessionAsync(String sessionId)
Kill a session.
|
GraphConfig |
lookupPreloadedGraph(String name)
Blocking version of
#lookupPreloadedGraphAsync(). |
PgxFuture<GraphConfig> |
lookupPreloadedGraphAsync(String name)
Looks up the config of a pre-loaded graph by name.
|
void |
resizePool(PoolType poolType, int parallelism)
Blocking version of
#resizePoolAsync(). |
PgxFuture<Void> |
resizePoolAsync(PoolType poolType, int parallelism)
Resize a pool to use a different degree of parallelism
|
boolean |
shutdownEngine(long timeout, TimeUnit unit)
Blocking version of
#shutdownEngineAsync(). |
PgxFuture<Boolean> |
shutdownEngineAsync(long timeout, TimeUnit unit)
Gracefully shuts down the engine and cleans up resources.
|
void |
shutdownEngineNow()
Blocking version of
shutdownEngineNowAsync(). |
PgxFuture<Void> |
shutdownEngineNowAsync()
Forces the engine to stop and clean up resources.
|
void |
shutdownEngineNowIfRunning()
Blocking version of
shutdownEngineNowIfRunningAsync(). |
PgxFuture<Void> |
shutdownEngineNowIfRunningAsync()
If the engine is currently up forces it to stop and clean up resources.
|
void |
startEngine()
Blocking version of
startEngineAsync(). |
void |
startEngine(InputStream config)
Blocking version of
startEngineAsync(InputStream). |
void |
startEngine(Map<PgxConfig.Field,Object> config)
Blocking version of
startEngineAsync(Map). |
void |
startEngine(String json)
Blocking version of
startEngineAsync(). |
PgxFuture<Void> |
startEngineAsync()
Starts the PGX engine.
|
PgxFuture<Void> |
startEngineAsync(InputStream config)
Starts the PGX engine with a custom configuration.
|
PgxFuture<Void> |
startEngineAsync(Map<PgxConfig.Field,Object> config)
Starts the PGX engine with a custom configuration.
|
PgxFuture<Void> |
startEngineAsync(String path)
Starts the PGX engine with a custom configuration given as path.
|
String |
toString() |
@Generated(value="src/python/synchronize.py") public void addPinnedGraph(GraphConfig cfg) throws ExecutionException, InterruptedException
#addPinnedGraphAsync(). Calls #addPinnedGraphAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Void> addPinnedGraphAsync(GraphConfig cfg)
cfg -@Generated(value="src/python/synchronize.py") public PgxSession createSession(String source) throws ExecutionException, InterruptedException
#createSessionAsync(). Calls #createSessionAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public PgxSession createSession(String source, Long idleTimeout, Long taskTimeout, TimeUnit unit) throws ExecutionException, InterruptedException
#createSessionAsync(). Calls #createSessionAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<PgxSession> createSessionAsync(String source)
source - a descriptive string identifying the clientpublic PgxFuture<PgxSession> createSessionAsync(String source, Long idleTimeout, Long taskTimeout, TimeUnit unit)
source - a descriptive string identifying the clientidleTimeout - if not null, tries to overwrite server default idle timeouttaskTimeout - if not null, tries to overwrite server default task timeoutunit - time unit of idleTimeout and taskTimeout@Generated(value="src/python/synchronize.py") public void demotePinnedGraph(GraphConfig cfg) throws ExecutionException, InterruptedException
#demotePinnedGraphAsync(). Calls #demotePinnedGraphAsync() and waits for returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Void> demotePinnedGraphAsync(GraphConfig cfg)
cfg - the cfgpublic String getBaseUrl()
@Generated(value="src/python/synchronize.py") public GraphInfo getGraphInfo(String graphName) throws ExecutionException, InterruptedException
#getGraphInfoAsync(). Calls #getGraphInfoAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public GraphInfo getGraphInfo(String sessionId, String graphName) throws ExecutionException, InterruptedException
#getGraphInfoAsync(). Calls #getGraphInfoAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<GraphInfo> getGraphInfoAsync(String graphName)
graphName - internal name of persistent graphpublic PgxFuture<GraphInfo> getGraphInfoAsync(String sessionId, String graphName)
sessionId - session id of session holding the graphgraphName - name of graph@Generated(value="src/python/synchronize.py") public Collection<GraphInfo> getGraphInfos() throws ExecutionException, InterruptedException
getGraphInfosAsync(). Calls getGraphInfosAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Collection<GraphInfo>> getGraphInfosAsync()
@Generated(value="src/python/synchronize.py") public MemoryInfo getMemoryInfo() throws ExecutionException, InterruptedException
getMemoryInfoAsync(). Calls getMemoryInfoAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<MemoryInfo> getMemoryInfoAsync()
@Generated(value="src/python/synchronize.py") public Map<PgxConfig.Field,Object> getPgxConfig() throws ExecutionException, InterruptedException
getPgxConfigAsync(). Calls getPgxConfigAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Map<PgxConfig.Field,Object>> getPgxConfigAsync()
public String getPgxVersion()
public Integer getPrefetchSize()
isEmbeddedInstance()).public Integer getRemoteFutureTimeout()
isEmbeddedInstance()).@Generated(value="src/python/synchronize.py") public SessionInfo getSessionInfo(String sessionId) throws ExecutionException, InterruptedException
#getSessionInfoAsync(). Calls #getSessionInfoAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<SessionInfo> getSessionInfoAsync(String sessionId)
sessionId - the session id@Generated(value="src/python/synchronize.py") public Collection<SessionInfo> getSessionInfos() throws ExecutionException, InterruptedException
getSessionInfosAsync(). Calls getSessionInfosAsync() and waits for returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Collection<SessionInfo>> getSessionInfosAsync()
@Generated(value="src/python/synchronize.py") public PoolInfo getThreadPoolInfo(PoolType type) throws ExecutionException, InterruptedException
#getThreadPoolInfoAsync(). Calls #getThreadPoolInfoAsync() and waits for returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<PoolInfo> getThreadPoolInfoAsync(PoolType type)
type - which thread poolpublic Integer getUploadBatchSize()
isEmbeddedInstance()).public boolean isEmbeddedInstance()
@Generated(value="src/python/synchronize.py") public boolean isEngineRunning() throws ExecutionException, InterruptedException
isEngineRunningAsync(). Calls isEngineRunningAsync() and waits for returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Boolean> isEngineRunningAsync()
@Generated(value="src/python/synchronize.py") public void killSession(String sessionId) throws ExecutionException, InterruptedException
#killSessionAsync(). Calls #killSessionAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Void> killSessionAsync(String sessionId)
sessionId - the session to be killed@Generated(value="src/python/synchronize.py") public GraphConfig lookupPreloadedGraph(String name) throws ExecutionException, InterruptedException
#lookupPreloadedGraphAsync(). Calls #lookupPreloadedGraphAsync() and waits for returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<GraphConfig> lookupPreloadedGraphAsync(String name)
name - the name of the graphnull if no such graph was pre-loaded.@Generated(value="src/python/synchronize.py") public void resizePool(PoolType poolType, int parallelism) throws ExecutionException, InterruptedException
#resizePoolAsync(). Calls #resizePoolAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Void> resizePoolAsync(PoolType poolType, int parallelism)
poolType - which pool to resizeparallelism - the target parallelism@Generated(value="src/python/synchronize.py") public boolean shutdownEngine(long timeout, TimeUnit unit) throws ExecutionException, InterruptedException
#shutdownEngineAsync(). Calls #shutdownEngineAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Boolean> shutdownEngineAsync(long timeout, TimeUnit unit)
@Generated(value="src/python/synchronize.py") public void shutdownEngineNow() throws ExecutionException, InterruptedException
shutdownEngineNowAsync(). Calls shutdownEngineNowAsync() and waits for returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Void> shutdownEngineNowAsync()
@Generated(value="src/python/synchronize.py") public void shutdownEngineNowIfRunning() throws ExecutionException, InterruptedException
shutdownEngineNowIfRunningAsync(). Calls shutdownEngineNowIfRunningAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Void> shutdownEngineNowIfRunningAsync()
@Generated(value="src/python/synchronize.py") public void startEngine() throws ExecutionException, InterruptedException
startEngineAsync(). Calls startEngineAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public void startEngine(InputStream config) throws ExecutionException, InterruptedException
startEngineAsync(InputStream). Calls startEngineAsync(InputStream) and waits for returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public void startEngine(Map<PgxConfig.Field,Object> config) throws ExecutionException, InterruptedException
startEngineAsync(Map). Calls startEngineAsync(Map) and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.@Generated(value="src/python/synchronize.py") public void startEngine(String json) throws ExecutionException, InterruptedException
startEngineAsync(). Calls startEngineAsync() and waits for the returned PgxFuture to complete.InterruptedException - if the caller thread gets interrupted while waiting for completion.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<Void> startEngineAsync(InputStream config)
config - the configpublic PgxFuture<Void> startEngineAsync(Map<PgxConfig.Field,Object> config)
config - the configpublic PgxFuture<Void> startEngineAsync(String path)
path - the path may be prefixed with resource handlers. See ProtocolCopyright © 2015. All rights reserved.