public class ServerInstance
extends oracle.pgx.api.internal.ApiObject
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPinnedGraph(GraphConfig cfg)
Blocking version of  
addPinnedGraphAsync(GraphConfig). | 
PgxFuture<java.lang.Void> | 
addPinnedGraphAsync(GraphConfig cfg)
Add a pinned graph (will not be unloaded by engine) to be shared between sessions 
 | 
PgxSession | 
createSession(java.lang.String source)
Blocking version of  
createSessionAsync(String). | 
PgxSession | 
createSession(java.lang.String source, java.lang.Long idleTimeout, java.lang.Long taskTimeout, java.util.concurrent.TimeUnit unit)
Blocking version of  
createSessionAsync(String). | 
PgxFuture<PgxSession> | 
createSessionAsync(java.lang.String source)
Create a new session. 
 | 
PgxFuture<PgxSession> | 
createSessionAsync(java.lang.String source, java.lang.Long idleTimeout, java.lang.Long taskTimeout, java.util.concurrent.TimeUnit unit)
Creates a new session. 
 | 
void | 
demotePinnedGraph(GraphConfig cfg)
Blocking version of  
demotePinnedGraphAsync(GraphConfig). | 
PgxFuture<java.lang.Void> | 
demotePinnedGraphAsync(GraphConfig cfg)
Demote pinned graph. 
 | 
boolean | 
equals(java.lang.Object obj)  | 
java.lang.String | 
getBaseUrl()
Gets the base url this instance object is pointing to. 
 | 
oracle.pgx.common.pojo.admin.GraphInfo | 
getGraphInfo(java.lang.String graphName)
Blocking version of  
getGraphInfoAsync(String). | 
oracle.pgx.common.pojo.admin.GraphInfo | 
getGraphInfo(java.lang.String sessionId, java.lang.String graphName)
Blocking version of  
getGraphInfoAsync(String, String). | 
PgxFuture<oracle.pgx.common.pojo.admin.GraphInfo> | 
getGraphInfoAsync(java.lang.String graphName)
Get details of a (shared) persistent graph 
 | 
PgxFuture<oracle.pgx.common.pojo.admin.GraphInfo> | 
getGraphInfoAsync(java.lang.String sessionId, java.lang.String graphName)
Get details of a session-bound, private graph 
 | 
java.util.Collection<oracle.pgx.common.pojo.admin.GraphInfo> | 
getGraphInfos()
Blocking version of  
getGraphInfosAsync(). | 
PgxFuture<java.util.Collection<oracle.pgx.common.pojo.admin.GraphInfo>> | 
getGraphInfosAsync()
Get a list of currently active graphs. 
 | 
oracle.pgx.common.pojo.admin.MemoryInfo | 
getMemoryInfo()
Blocking version of  
getMemoryInfoAsync(). | 
PgxFuture<oracle.pgx.common.pojo.admin.MemoryInfo> | 
getMemoryInfoAsync()
Gets the memory info. 
 | 
java.util.Map<PgxConfig.Field,java.lang.Object> | 
getPgxConfig()
Blocking version of  
getPgxConfigAsync(). | 
PgxFuture<java.util.Map<PgxConfig.Field,java.lang.Object>> | 
getPgxConfigAsync()
Gets the PGX config. 
 | 
PgxConfig | 
getPgxConfigObject()
Blocking version of  
getPgxConfigObjectAsync(). | 
PgxFuture<PgxConfig> | 
getPgxConfigObjectAsync()
Gets the PGX config. 
 | 
java.lang.String | 
getPgxVersion()
Blocking version of  
getPgxVersionAsync(). | 
PgxFuture<java.lang.String> | 
getPgxVersionAsync()
Gets the PGX version of this instance. 
 | 
java.lang.Integer | 
getPrefetchSize()
Gets the prefetchSize of this instance. 
 | 
java.lang.Integer | 
getRemoteFuturePendingRetryInterval()
Gets the remoteFuturePendingRetryInterval of this instance. 
 | 
java.lang.Integer | 
getRemoteFutureTimeout()
Gets the remoteFutureTimeout of this instance. 
 | 
PgxSession | 
getSession(java.lang.String id)
Blocking version of  
getSessionAsync(String). | 
PgxFuture<PgxSession> | 
getSessionAsync(java.lang.String id)
Gets a session by ID. 
 | 
oracle.pgx.common.pojo.admin.SessionInfo | 
getSessionInfo(java.lang.String sessionId)
Blocking version of  
getSessionInfoAsync(String). | 
PgxFuture<oracle.pgx.common.pojo.admin.SessionInfo> | 
getSessionInfoAsync(java.lang.String sessionId)
Gets the session info. 
 | 
java.util.Collection<oracle.pgx.common.pojo.admin.SessionInfo> | 
getSessionInfos()
Blocking version of  
getSessionInfosAsync(). | 
PgxFuture<java.util.Collection<oracle.pgx.common.pojo.admin.SessionInfo>> | 
getSessionInfosAsync()
Gets the session infos. 
 | 
oracle.pgx.common.pojo.admin.PoolInfo | 
getThreadPoolInfo(PoolType type)
Blocking version of  
getThreadPoolInfoAsync(PoolType). | 
PgxFuture<oracle.pgx.common.pojo.admin.PoolInfo> | 
getThreadPoolInfoAsync(PoolType type)
Gets the thread pool info. 
 | 
java.lang.Integer | 
getUploadBatchSize()
Gets the uploadBatchSize of this instance. 
 | 
java.lang.String | 
getUsername()
Gets the user name this instance is using 
 | 
int | 
hashCode()  | 
boolean | 
isEmbeddedInstance()
Checks if is embedded instance. 
 | 
boolean | 
isEngineRunning()
Blocking version of  
isEngineRunningAsync(). | 
PgxFuture<java.lang.Boolean> | 
isEngineRunningAsync()
Check if the engine is currently up 
 | 
void | 
killSession(java.lang.String sessionId)
Blocking version of  
killSessionAsync(String). | 
PgxFuture<java.lang.Void> | 
killSessionAsync(java.lang.String sessionId)
Kill a session. 
 | 
GraphConfig | 
lookupPreloadedGraph(java.lang.String name)
Blocking version of  
lookupPreloadedGraphAsync(String). | 
PgxFuture<GraphConfig> | 
lookupPreloadedGraphAsync(java.lang.String name)
Looks up the config of a pre-loaded graph by name. 
 | 
void | 
resizePool(PoolType poolType, int parallelism)
Blocking version of  
resizePoolAsync(PoolType, int). | 
PgxFuture<java.lang.Void> | 
resizePoolAsync(PoolType poolType, int parallelism)
Resize a pool to use a different degree of parallelism 
 | 
boolean | 
shutdownEngine(long timeout, java.util.concurrent.TimeUnit unit)
Blocking version of  
shutdownEngineAsync(long, TimeUnit). | 
PgxFuture<java.lang.Boolean> | 
shutdownEngineAsync(long timeout, java.util.concurrent.TimeUnit unit)
Gracefully shuts down the engine and cleans up resources. 
 | 
void | 
shutdownEngineNow()
Blocking version of  
shutdownEngineNowAsync(). | 
PgxFuture<java.lang.Void> | 
shutdownEngineNowAsync()
Forces the engine to stop and clean up resources. 
 | 
void | 
shutdownEngineNowIfRunning()
Blocking version of  
shutdownEngineNowIfRunningAsync(). | 
PgxFuture<java.lang.Void> | 
shutdownEngineNowIfRunningAsync()
If the engine is currently up forces it to stop and clean up resources. 
 | 
void | 
startEngine()
Blocking version of  
startEngineAsync(). | 
void | 
startEngine(java.io.InputStream config)
Blocking version of  
startEngineAsync(InputStream). | 
void | 
startEngine(java.util.Map<PgxConfig.Field,java.lang.Object> config)
Blocking version of  
startEngineAsync(Map). | 
void | 
startEngine(PgxConfig config)
Blocking version of  
startEngineAsync(PgxConfig). | 
void | 
startEngine(java.lang.String path)
Blocking version of  
startEngineAsync(String). | 
PgxFuture<java.lang.Void> | 
startEngineAsync()
Starts the PGX engine. 
 | 
PgxFuture<java.lang.Void> | 
startEngineAsync(java.io.InputStream config)
Starts the PGX engine with a custom configuration. 
 | 
PgxFuture<java.lang.Void> | 
startEngineAsync(java.util.Map<PgxConfig.Field,java.lang.Object> config)
Starts the PGX engine with a custom configuration. 
 | 
PgxFuture<java.lang.Void> | 
startEngineAsync(PgxConfig config)
Starts the PGX engine with a custom configuration. 
 | 
PgxFuture<java.lang.Void> | 
startEngineAsync(java.lang.String path)
Starts the PGX engine with a custom configuration given as path. 
 | 
java.lang.String | 
toString()  | 
public void addPinnedGraph(GraphConfig cfg) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
addPinnedGraphAsync(GraphConfig). Calls addPinnedGraphAsync(GraphConfig) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.Void> addPinnedGraphAsync(GraphConfig cfg)
cfg -public PgxSession createSession(java.lang.String source) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
createSessionAsync(String). Calls createSessionAsync(String) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxSession createSession(java.lang.String source, java.lang.Long idleTimeout, java.lang.Long taskTimeout, java.util.concurrent.TimeUnit unit) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
createSessionAsync(String). Calls createSessionAsync(String) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<PgxSession> createSessionAsync(java.lang.String source)
source - a descriptive string identifying the clientpublic PgxFuture<PgxSession> createSessionAsync(java.lang.String source, java.lang.Long idleTimeout, java.lang.Long taskTimeout, java.util.concurrent.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 taskTimeoutpublic void demotePinnedGraph(GraphConfig cfg) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
demotePinnedGraphAsync(GraphConfig). Calls demotePinnedGraphAsync(GraphConfig) and waits for returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.Void> demotePinnedGraphAsync(GraphConfig cfg)
cfg - the cfgpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getBaseUrl()
public oracle.pgx.common.pojo.admin.GraphInfo getGraphInfo(java.lang.String graphName)
                                                    throws java.util.concurrent.ExecutionException,
                                                           java.lang.InterruptedException
getGraphInfoAsync(String). Calls getGraphInfoAsync(String) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.
public oracle.pgx.common.pojo.admin.GraphInfo getGraphInfo(java.lang.String sessionId,
                                                           java.lang.String graphName)
                                                    throws java.util.concurrent.ExecutionException,
                                                           java.lang.InterruptedException
getGraphInfoAsync(String, String). Calls getGraphInfoAsync(String, * String) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<oracle.pgx.common.pojo.admin.GraphInfo> getGraphInfoAsync(java.lang.String graphName)
graphName - internal name of persistent graphpublic PgxFuture<oracle.pgx.common.pojo.admin.GraphInfo> getGraphInfoAsync(java.lang.String sessionId, java.lang.String graphName)
sessionId - session id of session holding the graphgraphName - name of graph
public java.util.Collection<oracle.pgx.common.pojo.admin.GraphInfo> getGraphInfos()
                                                                           throws java.util.concurrent.ExecutionException,
                                                                                  java.lang.InterruptedException
getGraphInfosAsync(). Calls getGraphInfosAsync() and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.util.Collection<oracle.pgx.common.pojo.admin.GraphInfo>> getGraphInfosAsync()
public oracle.pgx.common.pojo.admin.MemoryInfo getMemoryInfo()
                                                      throws java.util.concurrent.ExecutionException,
                                                             java.lang.InterruptedException
getMemoryInfoAsync(). Calls getMemoryInfoAsync() and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<oracle.pgx.common.pojo.admin.MemoryInfo> getMemoryInfoAsync()
public java.util.Map<PgxConfig.Field,java.lang.Object> getPgxConfig() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getPgxConfigAsync(). Calls getPgxConfigAsync() and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.util.Map<PgxConfig.Field,java.lang.Object>> getPgxConfigAsync()
public PgxConfig getPgxConfigObject() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getPgxConfigObjectAsync(). Calls getPgxConfigObjectAsync() and waits for returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<PgxConfig> getPgxConfigObjectAsync()
public java.lang.String getPgxVersion()
                               throws java.util.concurrent.ExecutionException,
                                      java.lang.InterruptedException
getPgxVersionAsync(). Calls getPgxVersionAsync() and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.String> getPgxVersionAsync()
public java.lang.Integer getPrefetchSize()
isEmbeddedInstance()).public java.lang.Integer getRemoteFuturePendingRetryInterval()
isEmbeddedInstance()).public java.lang.Integer getRemoteFutureTimeout()
isEmbeddedInstance()).public PgxSession getSession(java.lang.String id) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getSessionAsync(String). Calls getSessionAsync(String) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<PgxSession> getSessionAsync(java.lang.String id)
id - the session ID
public oracle.pgx.common.pojo.admin.SessionInfo getSessionInfo(java.lang.String sessionId)
                                                        throws java.util.concurrent.ExecutionException,
                                                               java.lang.InterruptedException
getSessionInfoAsync(String). Calls getSessionInfoAsync(String) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<oracle.pgx.common.pojo.admin.SessionInfo> getSessionInfoAsync(java.lang.String sessionId)
sessionId - the session id
public java.util.Collection<oracle.pgx.common.pojo.admin.SessionInfo> getSessionInfos()
                                                                               throws java.util.concurrent.ExecutionException,
                                                                                      java.lang.InterruptedException
getSessionInfosAsync(). Calls getSessionInfosAsync() and waits for returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.util.Collection<oracle.pgx.common.pojo.admin.SessionInfo>> getSessionInfosAsync()
public oracle.pgx.common.pojo.admin.PoolInfo getThreadPoolInfo(PoolType type) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getThreadPoolInfoAsync(PoolType). Calls getThreadPoolInfoAsync(PoolType) and waits for returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<oracle.pgx.common.pojo.admin.PoolInfo> getThreadPoolInfoAsync(PoolType type)
type - which thread poolpublic java.lang.Integer getUploadBatchSize()
isEmbeddedInstance()).public java.lang.String getUsername()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isEmbeddedInstance()
public boolean isEngineRunning()
                        throws java.util.concurrent.ExecutionException,
                               java.lang.InterruptedException
isEngineRunningAsync(). Calls isEngineRunningAsync() and waits for returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.Boolean> isEngineRunningAsync()
public void killSession(java.lang.String sessionId)
                 throws java.util.concurrent.ExecutionException,
                        java.lang.InterruptedException
killSessionAsync(String). Calls killSessionAsync(String) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.Void> killSessionAsync(java.lang.String sessionId)
sessionId - the session to be killedpublic GraphConfig lookupPreloadedGraph(java.lang.String name) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
lookupPreloadedGraphAsync(String). Calls (String) and waits for returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<GraphConfig> lookupPreloadedGraphAsync(java.lang.String name)
name - the name of the graphnull if no such graph was pre-loaded.public void resizePool(PoolType poolType, int parallelism) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
resizePoolAsync(PoolType, int). Calls resizePoolAsync(PoolType, int) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.Void> resizePoolAsync(PoolType poolType, int parallelism)
poolType - which pool to resizeparallelism - the target parallelism
public boolean shutdownEngine(long timeout,
                              java.util.concurrent.TimeUnit unit)
                       throws java.util.concurrent.ExecutionException,
                              java.lang.InterruptedException
shutdownEngineAsync(long, TimeUnit). Calls shutdownEngineAsync(long, TimeUnit) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.Boolean> shutdownEngineAsync(long timeout, java.util.concurrent.TimeUnit unit)
public void shutdownEngineNow()
                       throws java.util.concurrent.ExecutionException,
                              java.lang.InterruptedException
shutdownEngineNowAsync(). Calls shutdownEngineNowAsync() and waits for returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.Void> shutdownEngineNowAsync()
public void shutdownEngineNowIfRunning()
                                throws java.util.concurrent.ExecutionException,
                                       java.lang.InterruptedException
shutdownEngineNowIfRunningAsync(). Calls shutdownEngineNowIfRunningAsync() and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.Void> shutdownEngineNowIfRunningAsync()
public void startEngine()
                 throws java.util.concurrent.ExecutionException,
                        java.lang.InterruptedException
startEngineAsync(). Calls startEngineAsync() and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.
public void startEngine(java.io.InputStream config)
                 throws java.util.concurrent.ExecutionException,
                        java.lang.InterruptedException
startEngineAsync(InputStream). Calls startEngineAsync(InputStream) and waits for returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public void startEngine(java.util.Map<PgxConfig.Field,java.lang.Object> config) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
startEngineAsync(Map). Calls startEngineAsync(Map) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public void startEngine(PgxConfig config) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
startEngineAsync(PgxConfig). Calls startEngineAsync(PgxConfig) and waits for returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.
public void startEngine(java.lang.String path)
                 throws java.util.concurrent.ExecutionException,
                        java.lang.InterruptedException
startEngineAsync(String). Calls startEngineAsync(String) and waits for the returned PgxFuture to complete.java.lang.InterruptedException - if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException - if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.Void> startEngineAsync()
public PgxFuture<java.lang.Void> startEngineAsync(java.io.InputStream config)
config - the configpublic PgxFuture<java.lang.Void> startEngineAsync(java.util.Map<PgxConfig.Field,java.lang.Object> config)
config - the configpublic PgxFuture<java.lang.Void> startEngineAsync(PgxConfig config)
config - the configpublic PgxFuture<java.lang.Void> startEngineAsync(java.lang.String path)
path - the path may be prefixed with resource handlers.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.