public interface CorfuCluster extends Cluster
Group.GroupParams
Modifier and Type | Method and Description |
---|---|
default CorfuServer |
getFirstServer()
To find the first corfu server in a cluster:
- get all corfu servers in the cluster
- extract first element in the list
|
LocalCorfuClient |
getLocalCorfuClient()
Provides a corfu client running on local machine
|
default CorfuServer |
getServerByIndex(int index)
Find a corfu server by index in the cluster:
- get all corfu servers in the cluster
- skip particular number of servers in the cluster according to index offset
- extract first server from the list
|
LocalCorfuClient getLocalCorfuClient()
default CorfuServer getServerByIndex(int index)
index
- corfu server positiondefault CorfuServer getFirstServer()
Copyright © 2019 CorfuDB. All rights reserved.