public abstract class AbstractRetrieveGolr extends Object
Modifier and Type | Field and Description |
---|---|
protected static com.google.gson.Gson |
GSON |
Constructor and Description |
---|
AbstractRetrieveGolr(String server) |
AbstractRetrieveGolr(String server,
int retryCount) |
Modifier and Type | Method and Description |
---|---|
protected void |
defaultRandomWait() |
protected String |
getJsonStringFromUri(URI uri) |
protected String |
getJsonStringFromUri(URI uri,
int retryCount) |
protected abstract List<String> |
getRelevantFields() |
protected abstract boolean |
isIndentJson() |
protected void |
logRequest(URI uri) |
protected void |
logRequestError(URI uri,
IOException exception) |
protected void |
logRetry(URI uri,
IOException exception,
int remaining) |
protected <T extends org.bbop.golr.java.AbstractRetrieveGolr.GolrEnvelope<?>> |
parseGolrResponse(String response,
Class<T> clazz) |
protected void |
randomWait(int min,
int max) |
protected String |
retryRequest(URI uri,
IOException e,
int retryCount) |
public AbstractRetrieveGolr(String server)
public AbstractRetrieveGolr(String server, int retryCount)
protected abstract boolean isIndentJson()
protected String getJsonStringFromUri(URI uri) throws IOException
IOException
protected String getJsonStringFromUri(URI uri, int retryCount) throws IOException
IOException
protected String retryRequest(URI uri, IOException e, int retryCount) throws IOException
IOException
protected void defaultRandomWait()
protected void randomWait(int min, int max)
protected void logRequest(URI uri)
protected void logRequestError(URI uri, IOException exception)
protected void logRetry(URI uri, IOException exception, int remaining)
protected <T extends org.bbop.golr.java.AbstractRetrieveGolr.GolrEnvelope<?>> T parseGolrResponse(String response, Class<T> clazz) throws IOException
IOException
Copyright © 2010–2015. All rights reserved.