public class AdbGraphClient
extends java.lang.Object
implements java.lang.AutoCloseable
Constructor and Description |
---|
AdbGraphClient(AdbGraphClientConfiguration config)
Creates a new ADB Graph Client.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this client object.
|
double |
getAvailableMemory()
Gets the available memory for environments to allocate.
|
AdbGraphClientConfiguration |
getConfig()
The configuration of this client.
|
double |
getCurrentMemory()
Gets the current environment's allocated memory.
|
java.net.URI |
getEndpoint()
The endpoint used by this client.
|
EnvironmentStatus |
getEnvironmentStatus()
Fetches the
EnvironmentStatus of the Autonomous Database. |
ServerInstance |
getPgxInstance()
Gets the PGX
ServerInstance object of an attached environment which can be used to create a new
PgxSession for in-memory graph analysis. |
boolean |
isAttached()
Checks if the Autonomous Database is currently attached to an environment.
|
Job |
restartEnvironment()
Starts re-attaching the Autonomous Database to a new environment.
|
Job |
startEnvironment(int memory)
Starts attaching the Autonomous Database to a new environment.
|
Job |
stopEnvironment()
Starts detaching the Autonomous Database from the current environment.
|
public AdbGraphClient(AdbGraphClientConfiguration config)
config
- the ADB Graph Client configuration.public void close()
close
in interface java.lang.AutoCloseable
public double getAvailableMemory()
public AdbGraphClientConfiguration getConfig()
public double getCurrentMemory()
public java.net.URI getEndpoint()
public EnvironmentStatus getEnvironmentStatus()
EnvironmentStatus
of the Autonomous Database.EnvironmentStatus
of the Autonomous Database.public ServerInstance getPgxInstance()
ServerInstance
object of an attached environment which can be used to create a new
PgxSession
for in-memory graph analysis.ServerInstance
of the Autonomous Database.public boolean isAttached()
public Job restartEnvironment()
Job
which completes once re-attachment operation completes.java.lang.IllegalStateException
- if the Autonomous Database is currently not in EnvironmentStatus.ATTACHED
statepublic Job startEnvironment(int memory)
memory
- the amount of system memory (in gigabytes) to allocate on the attached environment.Job
which completes once attachment operation completes.java.lang.IllegalStateException
- if the Autonomous Database is currently not in EnvironmentStatus.DETACHED
statepublic Job stopEnvironment()
Job
which completes once detachment operation completes.java.lang.IllegalStateException
- if the Autonomous Database is currently not in EnvironmentStatus.ATTACHED
state