public class CloudCacheService extends Service
CloudCacheService class is an Abstract Data Type (ADT) modeling the Pivotal Cloud Cache service
in Pivotal CloudFoundry (PCF).URL,
Service| Modifier and Type | Class and Description |
|---|---|
static class |
CloudCacheService.Locator |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.net.URL> |
getGfshUrl()
Returns an
Optional Gfsh URL if configured, used to connect to Apache Geode's Management REST API
(service). |
java.util.List<CloudCacheService.Locator> |
getLocatorList()
Returns a
List of Apache Geode Locator network endpoints. |
java.util.Optional<java.lang.String> |
getLocators()
Returns an
Optional String containing the list of Apache Geode Locator network endpoints. |
boolean |
isTlsEnabled()
Returns a
Boolean determining whether TLS/SSL is enabled between the client and the Pivotal Cloud Cache
(PCC) service instance in Pivotal CloudFoundry (PCF). |
static CloudCacheService |
with(java.lang.String name)
Factory method used to construct a new
CloudCacheService initialized with the given name. |
CloudCacheService |
withGfshUrl(java.net.URL gfshUrl)
Builder method used to configure the Gfsh
URL to connect to the Apache Geode
Management REST API (service). |
CloudCacheService |
withLocators(java.lang.String locators)
Builder method used to configure the
list of Locator network endpoints. |
CloudCacheService |
withTls(java.lang.Boolean enabled)
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).
|
public static CloudCacheService with(java.lang.String name)
CloudCacheService initialized with the given name.name - String containing the name of the CloudCacheService.CloudCacheService with the given name.java.lang.IllegalArgumentException - if the name is null or empty.CloudCacheService(String)public java.util.Optional<java.net.URL> getGfshUrl()
Optional Gfsh URL if configured, used to connect to Apache Geode's Management REST API
(service).Optional Gfsh URL used to connect to Apache Geode's Management REST API (service).withGfshUrl(URL),
Optional,
URLpublic java.util.Optional<java.lang.String> getLocators()
Optional String containing the list of Apache Geode Locator network endpoints.
The format of the String, if present, is host1[port1],host2[port2], ...,hostN[portN].Optional String containing the list of Apache Geode Locator network endpoints.withLocators(String)public java.util.List<CloudCacheService.Locator> getLocatorList()
List of Apache Geode Locator network endpoints.
Returns an empty List if no Locators were configured.List of Apache Geode Locator network endpoints.getLocators()public boolean isTlsEnabled()
Boolean determining whether TLS/SSL is enabled between the client and the Pivotal Cloud Cache
(PCC) service instance in Pivotal CloudFoundry (PCF).public CloudCacheService withGfshUrl(java.net.URL gfshUrl)
URL to connect to the Apache Geode
Management REST API (service).gfshUrl - URL used to connect to the Apache Geode Management REST API (service).CloudCacheService.getGfshUrl()public CloudCacheService withLocators(java.lang.String locators)
list of Locator network endpoints.locators - String containing a comma-delimited list of Locator network endpoints
of the format: host1[port1],host2[port2], ...,hostN[portN].CloudCacheService.getLocators()public CloudCacheService withTls(java.lang.Boolean enabled)
enabled - Boolean value indicating whether TLS/SSL is enabled.CloudCacheService.isTlsEnabled()