com.netflix.astyanax
Class AstyanaxContext.Builder

java.lang.Object
  extended by com.netflix.astyanax.AstyanaxContext.Builder
Enclosing class:
AstyanaxContext<Entity>

public static class AstyanaxContext.Builder
extends java.lang.Object


Field Summary
protected  AstyanaxConfiguration asConfig
           
protected  java.lang.String clusterName
           
protected  com.netflix.astyanax.connectionpool.ConnectionPool<?> cp
           
protected  com.netflix.astyanax.connectionpool.ConnectionPoolConfiguration cpConfig
           
protected  com.netflix.astyanax.connectionpool.NodeDiscovery discovery
           
protected  com.google.common.base.Supplier<java.util.List<com.netflix.astyanax.connectionpool.Host>> hostSupplier
           
protected  java.lang.String keyspaceName
           
protected  com.netflix.astyanax.connectionpool.ConnectionPoolMonitor monitor
           
protected  KeyspaceTracerFactory tracerFactory
           
 
Constructor Summary
AstyanaxContext.Builder()
           
 
Method Summary
<T> AstyanaxContext<Cluster>
buildCluster(AstyanaxTypeFactory<T> factory)
           
<T> AstyanaxContext<Keyspace>
buildKeyspace(AstyanaxTypeFactory<T> factory)
           
protected
<T> com.netflix.astyanax.connectionpool.ConnectionPool<T>
createConnectionPool(com.netflix.astyanax.connectionpool.ConnectionFactory<T> connectionFactory)
           
 AstyanaxContext.Builder forCluster(java.lang.String clusterName)
           
 AstyanaxContext.Builder forKeyspace(java.lang.String keyspaceName)
           
 com.netflix.astyanax.connectionpool.NodeDiscoveryType getNodeDiscoveryType()
           
 AstyanaxContext.Builder withAstyanaxConfiguration(AstyanaxConfiguration asConfig)
           
 AstyanaxContext.Builder withConnectionPoolConfiguration(com.netflix.astyanax.connectionpool.ConnectionPoolConfiguration cpConfig)
           
 AstyanaxContext.Builder withConnectionPoolMonitor(com.netflix.astyanax.connectionpool.ConnectionPoolMonitor monitor)
           
 AstyanaxContext.Builder withHostSupplier(com.google.common.base.Supplier<java.util.List<com.netflix.astyanax.connectionpool.Host>> supplier)
           
 AstyanaxContext.Builder withTracerFactory(KeyspaceTracerFactory tracerFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cp

protected com.netflix.astyanax.connectionpool.ConnectionPool<?> cp

discovery

protected com.netflix.astyanax.connectionpool.NodeDiscovery discovery

cpConfig

protected com.netflix.astyanax.connectionpool.ConnectionPoolConfiguration cpConfig

asConfig

protected AstyanaxConfiguration asConfig

clusterName

protected java.lang.String clusterName

keyspaceName

protected java.lang.String keyspaceName

tracerFactory

protected KeyspaceTracerFactory tracerFactory

hostSupplier

protected com.google.common.base.Supplier<java.util.List<com.netflix.astyanax.connectionpool.Host>> hostSupplier

monitor

protected com.netflix.astyanax.connectionpool.ConnectionPoolMonitor monitor
Constructor Detail

AstyanaxContext.Builder

public AstyanaxContext.Builder()
Method Detail

forCluster

public AstyanaxContext.Builder forCluster(java.lang.String clusterName)

forKeyspace

public AstyanaxContext.Builder forKeyspace(java.lang.String keyspaceName)

withConnectionPoolConfiguration

public AstyanaxContext.Builder withConnectionPoolConfiguration(com.netflix.astyanax.connectionpool.ConnectionPoolConfiguration cpConfig)

withAstyanaxConfiguration

public AstyanaxContext.Builder withAstyanaxConfiguration(AstyanaxConfiguration asConfig)

withHostSupplier

public AstyanaxContext.Builder withHostSupplier(com.google.common.base.Supplier<java.util.List<com.netflix.astyanax.connectionpool.Host>> supplier)

withTracerFactory

public AstyanaxContext.Builder withTracerFactory(KeyspaceTracerFactory tracerFactory)

withConnectionPoolMonitor

public AstyanaxContext.Builder withConnectionPoolMonitor(com.netflix.astyanax.connectionpool.ConnectionPoolMonitor monitor)

getNodeDiscoveryType

public com.netflix.astyanax.connectionpool.NodeDiscoveryType getNodeDiscoveryType()

createConnectionPool

protected <T> com.netflix.astyanax.connectionpool.ConnectionPool<T> createConnectionPool(com.netflix.astyanax.connectionpool.ConnectionFactory<T> connectionFactory)

buildKeyspace

public <T> AstyanaxContext<Keyspace> buildKeyspace(AstyanaxTypeFactory<T> factory)

buildCluster

public <T> AstyanaxContext<Cluster> buildCluster(AstyanaxTypeFactory<T> factory)