Package io.stargate.sdk
Class ManagedServiceDatacenter<SERVICE extends Service>
java.lang.Object
io.stargate.sdk.ManagedServiceDatacenter<SERVICE>
- Type Parameters:
SERVICE- the type of the service in use
CqlSession and Endpoints are associated to a dedicated DataCenter. The fail-over
will be performed by the SDK. As such a StargateClient will have multiple DC.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter accessor for attribute 'datacenterName'.Getter accessor for attribute 'stargateNodesLB'.Getter accessor for attribute 'tokenProvider'.booleanGets availablebooleanGets availablevoidsetAvailable(boolean available) Set value for availabletoString()
-
Constructor Details
-
ManagedServiceDatacenter
Full constructor.- Parameters:
sc- current dc name
-
-
Method Details
-
isAvailable
public boolean isAvailable()Gets available- Returns:
- value of available
-
isNotAvailable
public boolean isNotAvailable()Gets available- Returns:
- value of available
-
setAvailable
public void setAvailable(boolean available) Set value for available- Parameters:
available- new value for available
-
getStargateNodesLB
Getter accessor for attribute 'stargateNodesLB'.- Returns:
- current value of 'stargateNodesLB'
-
getDatacenterName
Getter accessor for attribute 'datacenterName'.- Returns:
- current value of 'datacenterName'
-
getTokenProvider
Getter accessor for attribute 'tokenProvider'.- Returns:
- current value of 'tokenProvider'
-
toString
-