Spring Boot for VMware GemFire
Class CloudCacheService
java.lang.Object
org.springframework.geode.core.env.support.Service
org.springframework.geode.core.env.support.CloudCacheService
The
CloudCacheService class is an Abstract Data Type (ADT) modeling the Pivotal Cloud Cache service
in Pivotal CloudFoundry (PCF).-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns aListof Apache Geode Locator network endpoints.booleanReturns aBooleandetermining whether TLS/SSL is enabled between the client and the Pivotal Cloud Cache (PCC) service instance in Pivotal CloudFoundry (PCF).static CloudCacheServiceFactory method used to construct a newCloudCacheServiceinitialized with the givenname.withGfshUrl(URL gfshUrl) Builder method used to configure the GfshURLto connect to the Apache Geode Management REST API (service).withLocators(String locators) Builder method used to configure thelist of Locatornetwork endpoints.Builder method used to configure whether TLS/SSL is enabled between a client and the Pivotal Cloud Cache (PCC) service instance in Pivotal CloudFoundry (PCF).
-
Method Details
-
with
Factory method used to construct a newCloudCacheServiceinitialized with the givenname.- Parameters:
name-Stringcontaining the name of theCloudCacheService.- Returns:
- the new
CloudCacheServicewith the givenname. - Throws:
IllegalArgumentException- if thenameis null or empty.- See Also:
-
CloudCacheService(String)
-
getGfshUrl
Returns anOptionalGfshURLif configured, used to connect to Apache Geode's Management REST API (service). -
getLocators
Returns anOptionalStringcontaining the list of Apache Geode Locator network endpoints. The format of theString, if present, is host1[port1],host2[port2], ...,hostN[portN]. -
getLocatorList
Returns aListof Apache Geode Locator network endpoints. Returns anempty Listif no Locators were configured.- Returns:
- a
Listof Apache Geode Locator network endpoints. - See Also:
-
isTlsEnabled
public boolean isTlsEnabled()Returns aBooleandetermining whether TLS/SSL is enabled between the client and the Pivotal Cloud Cache (PCC) service instance in Pivotal CloudFoundry (PCF).- Returns:
- true if TLS is enabled, false if not.
-
withGfshUrl
Builder method used to configure the GfshURLto connect to the Apache Geode Management REST API (service).- Parameters:
gfshUrl-URLused to connect to the Apache Geode Management REST API (service).- Returns:
- this
CloudCacheService. - See Also:
-
withLocators
Builder method used to configure thelist of Locatornetwork endpoints.- Parameters:
locators-Stringcontaining a comma-delimited list of Locator network endpoints of the format: host1[port1],host2[port2], ...,hostN[portN].- Returns:
- this
CloudCacheService. - See Also:
-
withTls
Builder method used to configure whether TLS/SSL is enabled between a client and the Pivotal Cloud Cache (PCC) service instance in Pivotal CloudFoundry (PCF).- Parameters:
enabled-Booleanvalue indicating whether TLS/SSL is enabled.- Returns:
- this
CloudCacheService. - See Also:
-