Package oracle.pgx.api
Class ServerInstance
java.lang.Object
oracle.pgx.api.internal.ApiObject
oracle.pgx.api.ServerInstance
public class ServerInstance
extends oracle.pgx.api.internal.ApiObject
A PGX server instance.
-
Method Summary
Modifier and TypeMethodDescriptioncreateSession(String source) Blocking version ofcreateSessionAsync(String).createSession(String source, Long idleTimeout, Long taskTimeout, TimeUnit unit) Blocking version ofcreateSessionAsync(String).createSessionAsync(String source) Create a new session.createSessionAsync(String source, Long idleTimeout, Long taskTimeout, TimeUnit unit) Creates a new session.booleanoracle.pgx.common.pojo.admin.CacheStatisticsBlocking version offreeCachedMemoryAsync().oracle.pgx.common.pojo.admin.CacheStatisticsfreeCachedMemory(double threshold) Blocking version offreeCachedMemoryAsync(double).PgxFuture<oracle.pgx.common.pojo.admin.CacheStatistics>Trigger memory cleanup to free unused graphs if RELEASE_MEMORY_THRESHOLD is reachedPgxFuture<oracle.pgx.common.pojo.admin.CacheStatistics>freeCachedMemoryAsync(double threshold) Trigger memory cleanup to free unused graphs if threshold is reached.Gets the base url this instance object is pointing to.Gets the client/server interaction mode (InteractionMode.BLOCKING,InteractionMode.ASYNC_POLLING)PgxFuture<oracle.pgx.api.internal.Core>getCore()Blocking version ofgetPgxConfigAsync().Gets the PGX config.Blocking version ofgetPgxConfigObjectAsync().Gets the PGX config.Blocking version ofgetPgxGenericPermissionsAsync().Get the static permissions of the current user i.e.Blocking version ofgetPgxUsernameAsync().Get the name of the current user.Blocking version ofgetPgxUserRolesAsync().Get the roles of the current user.Gets the prefetchSize of this instance.oracle.pgx.api.internal.ProxyServerGets the remoteFuturePendingRetryInterval of this instance.Gets the remoteFutureTimeout of this instance.com.fasterxml.jackson.databind.JsonNodeBlocking version ofgetServerMemoryUsageAsync().PgxFuture<com.fasterxml.jackson.databind.JsonNode>Gets the server memory usage.com.fasterxml.jackson.databind.JsonNodeBlocking version ofgetServerStateAsync().PgxFuture<com.fasterxml.jackson.databind.JsonNode>Gets the server state info.getSession(String id) Blocking version ofgetSessionAsync(String).getSession(SessionContext sessionContext) Blocking version ofgetSessionAsync(SessionContext).Gets a session by ID.getSessionAsync(SessionContext sessionContext) Gets a session bySessionContext.Gets the uploadBatchSize of this instance.com.fasterxml.jackson.databind.JsonNodeBlocking version ofgetUsersGraphsInfoAsync().PgxFuture<com.fasterxml.jackson.databind.JsonNode>Gets the users graphs info.com.fasterxml.jackson.databind.JsonNodeBlocking version ofgetUsersSessionsInfoAsync().PgxFuture<com.fasterxml.jackson.databind.JsonNode>Gets the users sessions info.oracle.pgx.common.VersionInfoBlocking version ofgetVersionAsync().PgxFuture<oracle.pgx.common.VersionInfo>Gets the PGX extended version of this instance.inthashCode()booleanChecks if the graph builder should create partitioned graphs by default.booleanChecks if is embedded instance.booleanBlocking version ofisEngineReadyAsync().Check if the engine is ready to accept new requestsbooleanBlocking version ofisEngineRunningAsync().Check if the engine is currently upbooleanBlocking version ofisGraphPreloadingDoneAsync().Check if the preloading of the graphs has completedvoidkillSession(String sessionId) Blocking version ofkillSessionAsync(String).killSessionAsync(String sessionId) Kill a session.voidsetSessionIdleTimeout(String sessionId, long idleTimeout, TimeUnit unit) Blocking version ofsetSessionIdleTimeoutAsync(String, long, TimeUnit).setSessionIdleTimeoutAsync(String sessionId, long idleTimeout, TimeUnit unit) Updates the session idle timeout.setSessionMaxMemorySize(PgxSession session, int size, oracle.pgx.common.MemoryUnit unit) Set the maximum memory limit for the given session.voidSets the current auth token for thisServerInstance.booleanshutdownEngine(long timeout, TimeUnit unit) Blocking version ofshutdownEngineAsync(long, TimeUnit).shutdownEngineAsync(long timeout, TimeUnit unit) Gracefully shuts down the engine and cleans up resources.voidBlocking version ofshutdownEngineNowAsync().Forces the engine to stop and clean up resources.voidBlocking version ofshutdownEngineNowIfRunningAsync().If the engine is currently up forces it to stop and clean up resources.voidBlocking version ofstartEngineAsync().voidstartEngine(InputStream config) Blocking version ofstartEngineAsync(InputStream).voidstartEngine(String path) Blocking version ofstartEngineAsync(String).voidstartEngine(Map<PgxConfig.Field, Object> config) Blocking version ofstartEngineAsync(Map).voidstartEngine(PgxConfig config) Blocking version ofstartEngineAsync(PgxConfig).Starts the PGX engine.startEngineAsync(InputStream config) Starts the PGX engine with a custom configuration.startEngineAsync(String path) Starts the PGX engine with a custom configuration given as path.startEngineAsync(Map<PgxConfig.Field, Object> config) Starts the PGX engine with a custom configuration.startEngineAsync(PgxConfig config) Starts the PGX engine with a custom configuration.toString()voidunpinGraph(String graphName) Blocking version ofunpinGraphAsync(String)(String, long)}.unpinGraphAsync(String graphName) Unpins the specified published graph so that if no session uses any of its snapshot, it can be removed.voidupdatePgxConfig(InputStream config) Blocking version ofupdatePgxConfigAsync(InputStream).voidupdatePgxConfig(String path) Blocking version ofupdatePgxConfigAsync(String).voidupdatePgxConfig(Map<PgxConfig.Field, Object> config) Blocking version ofupdatePgxConfigAsync(Map).voidupdatePgxConfig(PgxConfig config) Blocking version ofupdatePgxConfigAsync(PgxConfig).updatePgxConfigAsync(InputStream config) Replaces the current PGX config with the given configuration.updatePgxConfigAsync(String path) Replaces the current PGX config with the given configuration.updatePgxConfigAsync(Map<PgxConfig.Field, Object> config) Replaces the current PGX config with the given configuration.updatePgxConfigAsync(PgxConfig config) Replaces the current PGX config with the given configuration.
-
Method Details
-
isEmbeddedInstance
public boolean isEmbeddedInstance()Checks if is embedded instance.- Returns:
- true, if is embedded instance
-
getBaseUrl
Gets the base url this instance object is pointing to.- Returns:
- base url
-
getPrefetchSize
Gets the prefetchSize of this instance. Note that prefetchSize is ignored if this instance is an embedded instance (isEmbeddedInstance()).- Returns:
- the prefetchSize.
-
getUploadBatchSize
Gets the uploadBatchSize of this instance. Note that uploadBatchSize is ignored if this instance is an embedded instance (isEmbeddedInstance()).- Returns:
- the uploadBatchSize.
-
getRemoteFutureTimeout
Gets the remoteFutureTimeout of this instance. Note that remoteFutureTimeout is ignored if this instance is an embedded instance (isEmbeddedInstance()).- Returns:
- the remoteFutureTimeout.
-
getClientServerInteractionMode
Gets the client/server interaction mode (InteractionMode.BLOCKING,InteractionMode.ASYNC_POLLING)- Returns:
- interaction mode.
-
getRemoteFuturePendingRetryInterval
Gets the remoteFuturePendingRetryInterval of this instance. Note that remoteFuturePendingRetryInterval is ignored if this instance is an embedded instance (isEmbeddedInstance()).- Returns:
- the remoteFuturePendingRetryInterval.
-
isCreatePartitionedGraphsWithGraphBuilder
public boolean isCreatePartitionedGraphsWithGraphBuilder()Checks if the graph builder should create partitioned graphs by default.- Returns:
- true if the graph builder should create non-partitioned graphs by default
-
createSessionAsync
Create a new session.- Parameters:
source- a descriptive string identifying the client- Returns:
- created session
-
getControl
-
getCore
-
getProxyServer
public oracle.pgx.api.internal.ProxyServer getProxyServer() -
createSessionAsync
public PgxFuture<PgxSession> createSessionAsync(String source, Long idleTimeout, Long taskTimeout, TimeUnit unit) Creates a new session.- Parameters:
source- a descriptive string identifying the clientidleTimeout- if notnull, tries to overwrite server default idle timeouttaskTimeout- if notnull, tries to overwrite server default task timeoutunit- time unit of idleTimeout and taskTimeout- Returns:
- created session
-
getSessionAsync
Gets a session by ID.- Parameters:
id- the session ID- Returns:
- a future completing with the requested PGX session or completing exceptionally if the requested session ID could not be found.
-
getSessionAsync
Gets a session bySessionContext.- Parameters:
sessionContext- the session context- Returns:
- a future completing with the requested PGX session or completing exceptionally if the requested session could not be found.
-
setToken
Sets the current auth token for thisServerInstance. Note depending on theRealmClientimplementation used, this might not be supported or have no effect.- Parameters:
token- the new auth token
-
getPgxUsername
Blocking version ofgetPgxUsernameAsync(). CallsgetPgxUsernameAsync()and waits for the returnedPgxFutureto complete.- Since:
- 21.3.0
-
getPgxUserRoles
Blocking version ofgetPgxUserRolesAsync(). CallsgetPgxUserRolesAsync()and waits for the returnedPgxFutureto complete.- Since:
- 21.3.0
-
getPgxGenericPermissions
Blocking version ofgetPgxGenericPermissionsAsync(). CallsgetPgxGenericPermissionsAsync()and waits for the returnedPgxFutureto complete.- Since:
- 21.3.0
-
getPgxUsernameAsync
Get the name of the current user. Returnsnullin embedded mode- Returns:
- the name of the current user
- Since:
- 21.3.0
-
getPgxUserRolesAsync
Get the roles of the current user. Returnsnullin embedded mode- Returns:
- the roles of the current user
- Since:
- 21.3.0
-
getPgxGenericPermissionsAsync
Get the static permissions of the current user i.e. file-location permissions and system permissions. Returnsnullin embedded mode- Returns:
- set containing the current user's static permissions
- Since:
- 21.3.0
-
getVersionAsync
Gets the PGX extended version of this instance.- Returns:
- VersionInfo holding information about this PGX version
-
getPgxConfigAsync
Gets the PGX config.- Returns:
- current PGX server configuration as JSON string
-
getPgxConfigObjectAsync
Gets the PGX config.- Returns:
- current PGX server configuration as PgxConfig instance
-
startEngineAsync
Starts the PGX engine. -
startEngineAsync
Starts the PGX engine with a custom configuration.- Parameters:
config- the config
-
startEngineAsync
Starts the PGX engine with a custom configuration.- Parameters:
config- the config
-
startEngineAsync
Starts the PGX engine with a custom configuration.- Parameters:
config- the config
-
startEngineAsync
Starts the PGX engine with a custom configuration given as path.- Parameters:
path- the path may be prefixed with resource handlers.- See Also:
-
updatePgxConfigAsync
Replaces the current PGX config with the given configuration. This only affects static permissions (i.e. non-graph) and redaction rules for pre-loaded graphs. Existing permissions on graphs and frames will not be changed.- Parameters:
config- PGX config containing the new authorization config
-
updatePgxConfigAsync
Replaces the current PGX config with the given configuration. This only affects static permissions (i.e. non-graph) and redaction rules for pre-loaded graphs. Existing permissions on graphs and frames will not be changed.- Parameters:
config- PGX config containing the new authorization config
-
updatePgxConfigAsync
Replaces the current PGX config with the given configuration. This only affects static permissions (i.e. non-graph) and redaction rules for pre-loaded graphs. Existing permissions on graphs and frames will not be changed.- Parameters:
config- stream that can be read to a PGX config containing the new authorization config
-
updatePgxConfigAsync
Replaces the current PGX config with the given configuration. This only affects static permissions (i.e. non-graph) and redaction rules for pre-loaded graphs. Existing permissions on graphs and frames will not be changed.- Parameters:
path- path pointing to a PGX config file
-
isEngineRunningAsync
Check if the engine is currently up- Returns:
- true if engine is currently running and using less than RUNNING_MEMORY_USAGE_RATIO, false otherwise
-
isEngineReadyAsync
Check if the engine is ready to accept new requests- Returns:
- true if engine is using less than READINESS_MEMORY_USAGE_RATIO , false otherwise
-
isGraphPreloadingDoneAsync
Check if the preloading of the graphs has completed- Returns:
- true if engine has finished loading the preloaded graphs, false otherwise
-
shutdownEngineAsync
Gracefully shuts down the engine and cleans up resources. All currently enqueued tasks will be worked off prior shut down, new incoming requests get rejected. This call blocks until shut down is complete or timed out.- Returns:
- true if gracefully shut down. false if timed out before shut down.
-
shutdownEngineNowAsync
Forces the engine to stop and clean up resources. Currently running tasks are interrupted. New incoming requests get rejected.
Throws an exception when current tasks didn't finish after a short grace period. -
shutdownEngineNowIfRunningAsync
If the engine is currently up forces it to stop and clean up resources. Currently running tasks are interrupted. New incoming requests get rejected. -
setSessionIdleTimeoutAsync
public PgxFuture<Void> setSessionIdleTimeoutAsync(String sessionId, long idleTimeout, TimeUnit unit) Updates the session idle timeout.- Parameters:
sessionId- the session ididleTimeout- the new idle timeout valueunit- the unit in which the idle timeout is presented (example:TimeUnit.SECONDS)- Since:
- 24.3.0
-
setSessionIdleTimeout
public void setSessionIdleTimeout(String sessionId, long idleTimeout, TimeUnit unit) throws ExecutionException, InterruptedException Blocking version ofsetSessionIdleTimeoutAsync(String, long, TimeUnit).- Parameters:
sessionId- the session ididleTimeout- the new idle timeout valueunit- the unit in which the idle timeout is presented (example:TimeUnit.SECONDS)- Throws:
ExecutionExceptionInterruptedException- Since:
- 24.3.0
-
getServerStateAsync
Gets the server state info.- Returns:
- sessions, graphs, tasks, threadPools and memory statistics
- Since:
- 2.7.0
-
getServerMemoryUsageAsync
Gets the server memory usage.- Returns:
- information about server memory usage
- Since:
- 25.4.0
-
getUsersSessionsInfoAsync
Gets the users sessions info.- Returns:
- information about current users sessions
- Since:
- 25.4.0
-
getUsersGraphsInfoAsync
Gets the users graphs info.- Returns:
- information about current users graphs
- Since:
- 25.4.0
-
freeCachedMemoryAsync
Trigger memory cleanup to free unused graphs if RELEASE_MEMORY_THRESHOLD is reached- Returns:
- amount of released memory
- See Also:
-
freeCachedMemoryAsync
public PgxFuture<oracle.pgx.common.pojo.admin.CacheStatistics> freeCachedMemoryAsync(double threshold) Trigger memory cleanup to free unused graphs if threshold is reached.- Parameters:
threshold- percentage of used memory after which the engine starts freeing un-used graphs- Returns:
- amount of released memory
- See Also:
-
killSessionAsync
Kill a session.- Parameters:
sessionId- the session to be killed
-
unpinGraphAsync
Unpins the specified published graph so that if no session uses any of its snapshot, it can be removed.- Parameters:
graphName- name of the published graph to unpin
-
toString
-
equals
-
hashCode
public int hashCode() -
getVersion
Blocking version ofgetVersionAsync(). CallsgetVersionAsync()and waits for the returnedPgxFutureto complete.- Throws:
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.
-
createSession
Blocking version ofcreateSessionAsync(String). CallscreateSessionAsync(String)and waits for the returnedPgxFutureto complete.- Throws:
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.
-
getSession
Blocking version ofgetSessionAsync(String). CallsgetSessionAsync(String)and waits for the returnedPgxFutureto complete.- Throws:
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.
-
getSession
public PgxSession getSession(SessionContext sessionContext) throws ExecutionException, InterruptedException Blocking version ofgetSessionAsync(SessionContext). CallsgetSessionAsync(SessionContext)and waits for the returnedPgxFutureto complete.- Throws:
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.
-
createSession
public PgxSession createSession(String source, Long idleTimeout, Long taskTimeout, TimeUnit unit) throws ExecutionException, InterruptedException Blocking version ofcreateSessionAsync(String). CallscreateSessionAsync(String)and waits for the returnedPgxFutureto complete.- Throws:
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.
-
getPgxConfig
Blocking version ofgetPgxConfigAsync(). CallsgetPgxConfigAsync()and waits for the returnedPgxFutureto complete.- Throws:
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.
-
getPgxConfigObject
Blocking version ofgetPgxConfigObjectAsync(). CallsgetPgxConfigObjectAsync()and waits for returnedPgxFutureto complete.- Throws:
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.
-
startEngine
Blocking version ofstartEngineAsync(String). CallsstartEngineAsync(String)and waits for the returnedPgxFutureto complete.- Throws:
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.
-
isEngineRunning
Blocking version ofisEngineRunningAsync(). CallsisEngineRunningAsync()and waits for returnedPgxFutureto complete.- Throws:
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.
-
isEngineReady
Blocking version ofisEngineReadyAsync(). CallsisEngineReadyAsync()and waits for the returnedPgxFutureto complete.- Throws:
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.
-
isGraphPreloadingDone
Blocking version ofisGraphPreloadingDoneAsync(). CallsisGraphPreloadingDoneAsync()and waits for returnedPgxFutureto complete.- Throws:
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.
-
shutdownEngine
public boolean shutdownEngine(long timeout, TimeUnit unit) throws ExecutionException, InterruptedException Blocking version ofshutdownEngineAsync(long, TimeUnit). CallsshutdownEngineAsync(long, TimeUnit)and waits for the returnedPgxFutureto complete.- Throws:
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.
-
shutdownEngineNow
Blocking version ofshutdownEngineNowAsync(). CallsshutdownEngineNowAsync()and waits for returnedPgxFutureto complete.- Throws:
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.
-
shutdownEngineNowIfRunning
Blocking version ofshutdownEngineNowIfRunningAsync(). CallsshutdownEngineNowIfRunningAsync()and waits for the returnedPgxFutureto complete.- Throws:
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.
-
getServerState
@BetaApi public com.fasterxml.jackson.databind.JsonNode getServerState() throws ExecutionException, InterruptedExceptionBlocking version ofgetServerStateAsync(). CallsgetServerStateAsync()and waits for the returnedPgxFutureto complete.- Throws:
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.- Since:
- 2.7.0
-
getServerMemoryUsage
@BetaApi public com.fasterxml.jackson.databind.JsonNode getServerMemoryUsage() throws ExecutionException, InterruptedExceptionBlocking version ofgetServerMemoryUsageAsync(). CallsgetServerMemoryUsageAsync()and waits for the returnedPgxFutureto complete.- Throws:
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.- Since:
- 25.4.0
-
getUsersSessionsInfo
@BetaApi public com.fasterxml.jackson.databind.JsonNode getUsersSessionsInfo() throws ExecutionException, InterruptedExceptionBlocking version ofgetUsersSessionsInfoAsync(). CallsgetUsersSessionsInfoAsync()and waits for the returnedPgxFutureto complete.- Throws:
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.- Since:
- 25.4.0
-
getUsersGraphsInfo
@BetaApi public com.fasterxml.jackson.databind.JsonNode getUsersGraphsInfo() throws ExecutionException, InterruptedExceptionBlocking version ofgetUsersGraphsInfoAsync(). CallsgetUsersGraphsInfoAsync()and waits for the returnedPgxFutureto complete.- Throws:
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.- Since:
- 25.4.0
-
freeCachedMemory
public oracle.pgx.common.pojo.admin.CacheStatistics freeCachedMemory() throws ExecutionException, InterruptedExceptionBlocking version offreeCachedMemoryAsync(). CallsfreeCachedMemoryAsync()and waits for the returnedPgxFutureto complete.- Throws:
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.
-
freeCachedMemory
public oracle.pgx.common.pojo.admin.CacheStatistics freeCachedMemory(double threshold) throws ExecutionException, InterruptedException Blocking version offreeCachedMemoryAsync(double). CallsfreeCachedMemoryAsync(double)and waits for the returnedPgxFutureto complete.- Throws:
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.
-
killSession
Blocking version ofkillSessionAsync(String). CallskillSessionAsync(String)and waits for the returnedPgxFutureto complete.- Throws:
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.
-
startEngine
Blocking version ofstartEngineAsync(). CallsstartEngineAsync()and waits for the returnedPgxFutureto complete.- Throws:
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.
-
startEngine
public void startEngine(Map<PgxConfig.Field, Object> config) throws ExecutionException, InterruptedExceptionBlocking version ofstartEngineAsync(Map). CallsstartEngineAsync(Map)and waits for the returnedPgxFutureto complete.- Throws:
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.
-
startEngine
Blocking version ofstartEngineAsync(InputStream). CallsstartEngineAsync(InputStream)and waits for returnedPgxFutureto complete.- Throws:
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.
-
startEngine
Blocking version ofstartEngineAsync(PgxConfig). CallsstartEngineAsync(PgxConfig)and waits for returnedPgxFutureto complete.- Throws:
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.
-
updatePgxConfig
Blocking version ofupdatePgxConfigAsync(PgxConfig). CallsupdatePgxConfigAsync(PgxConfig)and waits for returnedPgxFutureto complete.- Throws:
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.
-
unpinGraph
Blocking version ofunpinGraphAsync(String)(String, long)}. CallsunpinGraphAsync(String)and waits for returnedPgxFutureto complete. -
updatePgxConfig
public void updatePgxConfig(Map<PgxConfig.Field, Object> config) throws ExecutionException, InterruptedExceptionBlocking version ofupdatePgxConfigAsync(Map). CallsupdatePgxConfigAsync(Map)and waits for returnedPgxFutureto complete.- Throws:
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.
-
updatePgxConfig
Blocking version ofupdatePgxConfigAsync(InputStream). CallsupdatePgxConfigAsync(InputStream)and waits for returnedPgxFutureto complete.- Throws:
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.
-
updatePgxConfig
Blocking version ofupdatePgxConfigAsync(String). CallsupdatePgxConfigAsync(String)and waits for returnedPgxFutureto complete.- Throws:
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.
-
setSessionMaxMemorySize
public PgxFuture<Void> setSessionMaxMemorySize(PgxSession session, int size, oracle.pgx.common.MemoryUnit unit) Set the maximum memory limit for the given session.- Parameters:
session- on which session to apply the memory limitsize- memory limit to be set relative to the provided MemoryUnitunit- the MemoryUnit to use for the given size Only supports MemoryUnit.MEGABYTE, MemoryUnit.GIGABYTE, and MemoryUnit.TERABYTE Requires SERVER_MANAGE permission- Since:
- 20.2.1
-