public class PurgeCache extends TaskClusterRequestHandler
The purge-cache service, typically available at purge-cache.taskcluster.net, is responsible for publishing a pulse message for workers, so they can purge cache upon request.
This document describes the API end-point for publishing the pulse message. This is mainly intended to be used by tools.
See: https://docs.taskcluster.net/reference/core/purge-cache/api-docs
| Modifier and Type | Field and Description |
|---|---|
protected static String |
defaultBaseURL |
| Constructor and Description |
|---|
PurgeCache() |
PurgeCache(Credentials credentials) |
PurgeCache(Credentials credentials,
String baseURL) |
PurgeCache(String baseURL) |
PurgeCache(String clientId,
String accessToken) |
PurgeCache(String clientId,
String accessToken,
String certificate) |
| Modifier and Type | Method and Description |
|---|---|
CallSummary<EmptyPayload,EmptyPayload> |
ping()
Documented later…
|
CallSummary<PurgeCacheRequest,EmptyPayload> |
purgeCache(String provisionerId,
String workerType,
PurgeCacheRequest payload)
Publish a purge-cache message to purge caches named
cacheName with provisionerId and workerType in the routing-key. |
apiCall, setBaseURL, uriEncodeprotected static final String defaultBaseURL
public PurgeCache(Credentials credentials)
public PurgeCache(Credentials credentials, String baseURL)
public PurgeCache(String baseURL)
public PurgeCache()
public CallSummary<PurgeCacheRequest,EmptyPayload> purgeCache(String provisionerId, String workerType, PurgeCacheRequest payload) throws APICallFailure
Publish a purge-cache message to purge caches named cacheName with provisionerId and workerType in the routing-key. Workers should be listening for this message and purge caches when they see it.
See https://docs.taskcluster.net/reference/core/purge-cache/api-docs#purgeCache
APICallFailurepublic CallSummary<EmptyPayload,EmptyPayload> ping() throws APICallFailure
Documented later…
Warning this api end-point is not stable.
See https://docs.taskcluster.net/reference/core/purge-cache/api-docs#ping
APICallFailureCopyright © 2014–2016 Mozilla. All rights reserved.