WARNING: This class will be REMOVED in the next version.
@Deprecated public class RiakConfig extends Object
RiakConfig
Modifier and Type | Field and Description |
---|---|
static Pattern |
BASE_URL_PATTERN
Deprecated.
|
Constructor and Description |
---|
RiakConfig()
Deprecated.
|
RiakConfig(String url)
Deprecated.
|
RiakConfig(String ip,
String port,
String prefix)
Deprecated.
|
RiakConfig(URL url)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
Deprecated.
The host and port of the Riak server, which is extracted from the
specified Riak URL.
|
org.apache.http.client.HttpClient |
getHttpClient()
Deprecated.
The pre-constructed HttpClient for a client to use if one was provided
|
String |
getMapReducePath()
Deprecated.
The path to the Riak map reduce resource, which defaults to /mapred
|
String |
getMapReduceUrl()
Deprecated.
The full URL of Riak map reduce resource, which is calculated by
combining the host and port from the Riak URL and the map reduce path.
|
Integer |
getMaxConnections()
Deprecated.
|
org.apache.http.client.HttpRequestRetryHandler |
getRetryHandler()
Deprecated.
Value to set for the HttpClientParams.RETRY_HANDLER property: the default
retry handler for requests.
|
Integer |
getTimeout()
Deprecated.
|
String |
getUrl()
Deprecated.
The base URL used by a client to construct object URLs
|
void |
setHttpClient(org.apache.http.client.HttpClient httpClient)
Deprecated.
Provide a pre-constructed HttpClient for clients to use to connect to
Riak
|
void |
setMapReducePath(String path)
Deprecated.
|
void |
setMaxConnections(Integer maxConnections)
Deprecated.
Value to set for the HttpConnectionManagerParams.MAX_TOTAL_CONNECTIONS
and the HttpConnectionManagerParams.MAX_HOST_CONNECTIONS properties:
overall maximum number of connections used by the HttpClient and the
maximum number of connections per host.
|
void |
setRetryHandler(org.apache.http.client.HttpRequestRetryHandler retryHandler)
Deprecated.
|
void |
setTimeout(Integer timeout)
Deprecated.
Value to set for the properties:
HttpClientParams#CONNECTION_MANAGER_TIMEOUT ,
HttpClientParams#SO_TIMEOUT ,
HttpConnectionManagerParams#CONNECTION_TIMEOUT which sets the
timeout milliseconds for retrieving an HTTP connection and data over the
connection. |
void |
setUrl(String url)
Deprecated.
Set the base URL that clients should use to construct object URLs (e.g.
|
public static Pattern BASE_URL_PATTERN
public RiakConfig()
public RiakConfig(String url)
public RiakConfig(URL url)
public String getUrl()
public void setUrl(String url)
public String getMapReduceUrl()
public String getBaseUrl()
public String getMapReducePath()
public void setMapReducePath(String path)
public org.apache.http.client.HttpClient getHttpClient()
public void setHttpClient(org.apache.http.client.HttpClient httpClient)
public void setTimeout(Integer timeout)
HttpClientParams#CONNECTION_MANAGER_TIMEOUT
,
HttpClientParams#SO_TIMEOUT
,
HttpConnectionManagerParams#CONNECTION_TIMEOUT
which sets the
timeout milliseconds for retrieving an HTTP connection and data over the
connection. Null for default.public Integer getTimeout()
public void setMaxConnections(Integer maxConnections)
public Integer getMaxConnections()
public org.apache.http.client.HttpRequestRetryHandler getRetryHandler()
org.apache.commons.httpclient.DefaultHttpMethodRetryHandler
public void setRetryHandler(org.apache.http.client.HttpRequestRetryHandler retryHandler)
Copyright © 2013. All Rights Reserved.