Package com.apple.foundationdb
Class Cluster
java.lang.Object
com.apple.foundationdb.Cluster
- All Implemented Interfaces:
AutoCloseable
Deprecated.
The
Note:
Cluster
represents a connection to a physical set of cooperating machines
running FoundationDB. A Cluster
is opened with a reference to a cluster file.
This class is deprecated. Use FDB.open()
to open a Database
directlyNote:
Cluster
objects must be closed
when no longer in use
in order to free any associated resources.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkUnclosed
(String context) void
close()
protected void
closeInternal
(long cPtr) Deprecated.protected long
getPtr()
boolean
isClosed()
Deprecated.Creates a connection to the database on an FDB cluster.Deprecated.Creates a connection to the database on an FDB cluster.options()
Deprecated.Returns a set of options that can be set on aCluster
.
-
Field Details
-
pointerReadLock
-
-
Constructor Details
-
Cluster
Deprecated.
-
-
Method Details
-
options
Deprecated.Returns a set of options that can be set on aCluster
. In the current version of the API, there are no options that can be set on aCluster
.- Returns:
- a set of cluster-specific options affecting this
Cluster
-
openDatabase
Deprecated.Creates a connection to the database on an FDB cluster.- Returns:
- a
Future
that will be set to aDatabase
upon successful connection. - Throws:
FDBException
-
openDatabase
Deprecated.Creates a connection to the database on an FDB cluster.- Parameters:
e
- theExecutor
to use when executing asynchronous callbacks for the database- Returns:
- a
Future
that will be set to aDatabase
upon successful connection. - Throws:
FDBException
-
closeInternal
protected void closeInternal(long cPtr) Deprecated. -
isClosed
public boolean isClosed() -
checkUnclosed
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getPtr
protected long getPtr()
-