public class CacheServerComm extends Object
| Constructor and Description |
|---|
CacheServerComm(String cacheServiceUrl,
int timeout)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
hudson.model.Result |
getCachedResult(String hash)
Searches a cached result from the cache.
|
boolean |
postCachedResult(String hash,
hudson.model.Result result)
Adds or Updates a result in the cache
|
public CacheServerComm(String cacheServiceUrl, int timeout)
cacheServiceUrl - cache service base URLtimeout - communication timeoutpublic hudson.model.Result getCachedResult(String hash) throws IOException
hash - job hash to searchIOException - there's a communication problem with the cache servicepublic boolean postCachedResult(String hash, hudson.model.Result result) throws IOException
hash - job hash to add/updateresult - job result. If null then NOT_BUILTIOException - there's a communication problem with the cache serviceCopyright © 2016–2019. All rights reserved.