com.basho.riak.client
Class RiakConfig

java.lang.Object
  extended by com.basho.riak.client.RiakConfig

Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved. Please use com.basho.riak.client.http.RiakConfig instead.

WARNING: This class will be REMOVED in the next version.

@Deprecated
public class RiakConfig
extends Object

Configuration settings for connecting to a Riak instance such as the base Riak URL and HttpClient settings. A pre-constructed HttpClient can also be provided.

See Also:
RiakConfig

Field Summary
static Pattern BASE_URL_PATTERN
          Deprecated.  
 
Constructor Summary
RiakConfig()
          Deprecated.  
RiakConfig(String url)
          Deprecated.  
RiakConfig(String ip, String port, String prefix)
          Deprecated.  
RiakConfig(URL url)
          Deprecated.  
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_URL_PATTERN

public static Pattern BASE_URL_PATTERN
Deprecated. 
Constructor Detail

RiakConfig

public RiakConfig()
Deprecated. 

RiakConfig

public RiakConfig(String url)
Deprecated. 

RiakConfig

public RiakConfig(URL url)
Deprecated. 

RiakConfig

public RiakConfig(String ip,
                  String port,
                  String prefix)
Deprecated. 
Method Detail

getUrl

public String getUrl()
Deprecated. 
The base URL used by a client to construct object URLs


setUrl

public void setUrl(String url)
Deprecated. 
Set the base URL that clients should use to construct object URLs (e.g. http://localhost:8098/riak).


getMapReduceUrl

public 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.


getBaseUrl

public String getBaseUrl()
Deprecated. 
The host and port of the Riak server, which is extracted from the specified Riak URL.


getMapReducePath

public String getMapReducePath()
Deprecated. 
The path to the Riak map reduce resource, which defaults to /mapred


setMapReducePath

public void setMapReducePath(String path)
Deprecated. 

getHttpClient

public org.apache.http.client.HttpClient getHttpClient()
Deprecated. 
The pre-constructed HttpClient for a client to use if one was provided


setHttpClient

public void setHttpClient(org.apache.http.client.HttpClient httpClient)
Deprecated. 
Provide a pre-constructed HttpClient for clients to use to connect to Riak


setTimeout

public 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. Null for default.


getTimeout

public Integer getTimeout()
Deprecated. 

setMaxConnections

public 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. The latter is set to overcome the default 2 connections per host in HttpClient.


getMaxConnections

public Integer getMaxConnections()
Deprecated. 

getRetryHandler

public org.apache.http.client.HttpRequestRetryHandler getRetryHandler()
Deprecated. 
Value to set for the HttpClientParams.RETRY_HANDLER property: the default retry handler for requests.

See Also:
org.apache.commons.httpclient.DefaultHttpMethodRetryHandler

setRetryHandler

public void setRetryHandler(org.apache.http.client.HttpRequestRetryHandler retryHandler)
Deprecated. 


Copyright © 2012. All Rights Reserved.