public class Cluster extends Object implements Disposable
Cluster represents a connection to a physical set of cooperating machines
running FoundationDB. A Cluster is opened with a reference to a cluster file.| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose of the object.
|
boolean |
isDisposed() |
Database |
openDatabase(byte[] dbName)
Creates a connection to a specific database on an FDB cluster.
|
ClusterOptions |
options()
Returns a set of options that can be set on a
Cluster. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposepublic ClusterOptions options()
Cluster. In the current version
of the API, there are no options that can be set on a Cluster.Clusterpublic Database openDatabase(byte[] dbName) throws FDBException
dbName - In the current version of the API, this must be the bytes "DB".getBytes()Future that will be set to a Database upon
successful connection.FDBExceptionpublic boolean isDisposed()
public void dispose()
Disposabledispose in interface Disposable