Package org.apache.cassandra.io.sstable
Class SSTableLoader.Client
- java.lang.Object
-
- org.apache.cassandra.io.sstable.SSTableLoader.Client
-
- Direct Known Subclasses:
NativeSSTableLoaderClient
- Enclosing class:
- SSTableLoader
public abstract static class SSTableLoader.Client extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Client()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addRangeForEndpoint(Range<Token> range, InetAddressAndPort endpoint)
StreamingChannel.Factory
getConnectionFactory()
Provides connection factory.java.util.Map<InetAddressAndPort,java.util.Collection<Range<Token>>>
getEndpointToRangesMap()
abstract TableMetadataRef
getTableMetadata(java.lang.String tableName)
Validate thatkeyspace
is an existing keyspace andcfName
one of its existing column family.abstract void
init(java.lang.String keyspace)
Initialize the client.void
setTableMetadata(TableMetadataRef cfm)
void
stop()
Stop the client.
-
-
-
Method Detail
-
init
public abstract void init(java.lang.String keyspace)
Initialize the client. Perform any step necessary so that after the call to the this method: * partitioner is initialized * getEndpointToRangesMap() returns a correct map This method is guaranteed to be called before any other method of a client.
-
stop
public void stop()
Stop the client.
-
getConnectionFactory
public StreamingChannel.Factory getConnectionFactory()
Provides connection factory. By default, it uses DefaultConnectionFactory.- Returns:
- StreamConnectionFactory to use
-
getTableMetadata
public abstract TableMetadataRef getTableMetadata(java.lang.String tableName)
Validate thatkeyspace
is an existing keyspace andcfName
one of its existing column family.
-
setTableMetadata
public void setTableMetadata(TableMetadataRef cfm)
-
getEndpointToRangesMap
public java.util.Map<InetAddressAndPort,java.util.Collection<Range<Token>>> getEndpointToRangesMap()
-
addRangeForEndpoint
protected void addRangeForEndpoint(Range<Token> range, InetAddressAndPort endpoint)
-
-