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 TypeMethodDescriptionvoidcheckUnclosed(String context) voidclose()protected voidcloseInternal(long cPtr) Deprecated.protected longgetPtr()booleanisClosed()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
Futurethat will be set to aDatabaseupon successful connection. - Throws:
FDBException
-
openDatabase
Deprecated.Creates a connection to the database on an FDB cluster.- Parameters:
e- theExecutorto use when executing asynchronous callbacks for the database- Returns:
- a
Futurethat will be set to aDatabaseupon successful connection. - Throws:
FDBException
-
closeInternal
protected void closeInternal(long cPtr) Deprecated. -
isClosed
public boolean isClosed() -
checkUnclosed
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getPtr
protected long getPtr()
-