com.basho.riak.client.raw.http
Class HTTPClusterClientFactory

java.lang.Object
  extended by com.basho.riak.client.raw.http.HTTPClusterClientFactory
All Implemented Interfaces:
RiakClientFactory

public class HTTPClusterClientFactory
extends Object
implements RiakClientFactory

Factory for HTTPClusterClient

Author:
russell

Method Summary
 boolean accepts(Class<? extends Configuration> configClass)
          Is the concrete factory able to create RawClients with configClass Configurations? Call before newClient.
static RiakClientFactory getInstance()
           
 RawClient newClient(Configuration config)
          Create a new RawClient instance configured by config
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RiakClientFactory getInstance()

accepts

public boolean accepts(Class<? extends Configuration> configClass)
Description copied from interface: RiakClientFactory
Is the concrete factory able to create RawClients with configClass Configurations? Call before newClient.

Specified by:
accepts in interface RiakClientFactory
Parameters:
configClass - the Configuration implementation
Returns:
true if this factory can create a RawClient for the configClass false otherwise

newClient

public RawClient newClient(Configuration config)
                    throws IOException
Description copied from interface: RiakClientFactory
Create a new RawClient instance configured by config

Specified by:
newClient in interface RiakClientFactory
Parameters:
config - a specific implementation of Configuration
Returns:
the configured RawClient
Throws:
IOException


Copyright © 2012. All Rights Reserved.