public class GcpBootstrapGatewayProvider extends BootstrapGatewayProvider
BootstrapGatewayProvider
implementation that can be used with
GridConnection.connect(String, BootstrapGatewayProvider)
to connect to
ScaleOut hosts running in a Google Cloud Platform environment.
If a GcpBootstrapGatewayProvider instance is supplied to
GridConnection.connect(String, BootstrapGatewayProvider)
, the following
exceptions may be thrown during the initial connection or during cache operations
when the library attempts to reconnect to instances of the ScaleOut service:
Exception | Description |
---|---|
GcpAdapterException |
No GCP instances were found with the ScaleOut store name supplied to the
GcpBootstrapGatewayProvider's constructor, or a ScaleOut GCP instance contains
invalid metadata in its __soss_metadata tag.
|
GcpTagMissingException |
ScaleOut GCP instances are missing tag metadata (the __soss_metadata tag)
that is required for client connections. This tag is set automatically by the
ScaleOut Console when deploying the ScaleOut service.
|
_scaleoutStoreName
Constructor and Description |
---|
GcpBootstrapGatewayProvider(java.lang.String storeName,
GatewayType gatewayType,
java.lang.String zone,
java.lang.String projectId,
com.google.cloud.compute.v1.InstancesClient client)
Construct a GcpBootstrapGatewayProvider with a GCP deployed StoreName, gateway type, and an initialized GCP
InstancesClient . |
Modifier and Type | Method and Description |
---|---|
java.util.List<BootstrapGateway> |
getBootstrapGateways() |
getScaleoutStoreName
public GcpBootstrapGatewayProvider(java.lang.String storeName, GatewayType gatewayType, java.lang.String zone, java.lang.String projectId, com.google.cloud.compute.v1.InstancesClient client)
InstancesClient
.storeName
- the GCP deployed StoreNamegatewayType
- the type of gateway to returnzone
- the GCP zone.projectId
- the GCP project ID.client
- an initialized client.public java.util.List<BootstrapGateway> getBootstrapGateways()
getBootstrapGateways
in class BootstrapGatewayProvider