예제 #1
0
 /**
  * Request data in {@code columnFamilies} under {@code keyspace} and {@code ranges} from specific
  * node.
  *
  * @param from endpoint address to fetch data from.
  * @param connecting Actual connecting address for the endpoint
  * @param keyspace name of keyspace
  * @param ranges ranges to fetch
  * @param columnFamilies specific column families
  * @return this object for chaining
  */
 public StreamPlan requestRanges(
     InetAddress from,
     InetAddress connecting,
     String keyspace,
     Collection<Range<Token>> ranges,
     String... columnFamilies) {
   StreamSession session = coordinator.getOrCreateNextSession(from, connecting);
   session.addStreamRequest(keyspace, ranges, Arrays.asList(columnFamilies), repairedAt);
   return this;
 }
예제 #2
0
 /**
  * Add transfer task to send data of specific {@code columnFamilies} under {@code keyspace} and
  * {@code ranges}.
  *
  * @param to endpoint address of receiver
  * @param connecting Actual connecting address of the endpoint
  * @param keyspace name of keyspace
  * @param ranges ranges to send
  * @param columnFamilies specific column families
  * @return this object for chaining
  */
 public StreamPlan transferRanges(
     InetAddress to,
     InetAddress connecting,
     String keyspace,
     Collection<Range<Token>> ranges,
     String... columnFamilies) {
   StreamSession session = coordinator.getOrCreateNextSession(to, connecting);
   session.addTransferRanges(
       keyspace, ranges, Arrays.asList(columnFamilies), flushBeforeTransfer, repairedAt);
   return this;
 }