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 Pivotal GemFire's
Management REST API (service). |
java.util.List<CloudCacheService.Locator> |
getLocatorList()
Returns a
List of Pivotal GemFire Locator network endpoints. |
java.util.Optional<java.lang.String> |
getLocators()
Returns an
Optional String containing the list of Pivotal GemFire Locator network endpoints. |
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 Pivotal GemFire
Management REST API (service). |
CloudCacheService |
withLocators(java.lang.String locators)
Builder method used to configure the
list of Locator network endpoints. |
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 Pivotal GemFire's
Management REST API (service).Optional
Gfsh URL
used to connect to Pivotal GemFire's Management REST API (service).withGfshUrl(URL)
,
Optional
,
URL
public java.util.Optional<java.lang.String> getLocators()
Optional
String
containing the list of Pivotal GemFire Locator network endpoints.
The format of the String
, if present, is host1[port1],host2[port2], ...,hostN[portN].Optional
String
containing the list of Pivotal GemFire Locator network endpoints.withLocators(String)
public java.util.List<CloudCacheService.Locator> getLocatorList()
List
of Pivotal GemFire Locator network endpoints.
Returns an empty List
if no Locators were configured.List
of Pivotal GemFire Locator network endpoints.getLocators()
public CloudCacheService withGfshUrl(java.net.URL gfshUrl)
URL
to connect to the Pivotal GemFire
Management REST API (service).gfshUrl
- URL
used to connect to the Pivotal GemFire 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()