com.basho.riak.client.raw.pbc
Class PBClusterClientFactory

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

public class PBClusterClientFactory
extends Object
implements RiakClientFactory

RiakClientFactory implementation that creates PBClusterClient s from the given PBClientConfig

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