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
-
Method Summary
Modifier and TypeMethodDescriptionReturns aList
of Apache Geode Locator network endpoints.boolean
Returns aBoolean
determining whether TLS/SSL is enabled between the client and the Pivotal Cloud Cache (PCC) service instance in Pivotal CloudFoundry (PCF).static CloudCacheService
Factory method used to construct a newCloudCacheService
initialized with the givenname
.withGfshUrl
(URL gfshUrl) Builder method used to configure the GfshURL
to connect to the Apache Geode Management REST API (service).withLocators
(String locators) Builder method used to configure thelist of Locator
network 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 newCloudCacheService
initialized with the givenname
.- Parameters:
name
-String
containing the name of theCloudCacheService
.- Returns:
- the new
CloudCacheService
with the givenname
. - Throws:
IllegalArgumentException
- if thename
is null or empty.- See Also:
-
CloudCacheService(String)
-
getGfshUrl
Returns anOptional
GfshURL
if configured, used to connect to Apache Geode's Management REST API (service). -
getLocators
Returns anOptional
String
containing the list of Apache Geode Locator network endpoints. The format of theString
, if present, is host1[port1],host2[port2], ...,hostN[portN]. -
getLocatorList
Returns aList
of Apache Geode Locator network endpoints. Returns anempty List
if no Locators were configured.- Returns:
- a
List
of Apache Geode Locator network endpoints. - See Also:
-
isTlsEnabled
public boolean isTlsEnabled()Returns aBoolean
determining 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 GfshURL
to connect to the Apache Geode Management REST API (service).- Parameters:
gfshUrl
-URL
used to connect to the Apache Geode Management REST API (service).- Returns:
- this
CloudCacheService
. - See Also:
-
withLocators
Builder method used to configure thelist of Locator
network endpoints.- Parameters:
locators
-String
containing 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
-Boolean
value indicating whether TLS/SSL is enabled.- Returns:
- this
CloudCacheService
. - See Also:
-