public final class StreamResultFuture extends com.google.common.util.concurrent.AbstractFuture<StreamState>
StreamState
) of a streaming plan.
In practice, this object also groups all the StreamSession
for the streaming job
involved. One StreamSession will be created for every peer involved and said session will
handle every streaming (outgoing and incoming) to that peer for this job.
The future will return a result once every session is completed (successfully or not). If any session ended up with an error, the future will throw a StreamException.
You can attach StreamEventHandler
to this object to listen on StreamEvent
s to
track progress of the streaming.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
description |
java.util.UUID |
planId |
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(StreamEventHandler listener) |
boolean |
equals(java.lang.Object o) |
StreamState |
getCurrentState() |
void |
handleProgress(ProgressInfo progress) |
int |
hashCode() |
static StreamResultFuture |
initReceivingSide(int sessionIndex,
java.util.UUID planId,
java.lang.String description,
java.net.InetAddress from,
java.net.Socket socket,
boolean isForOutgoing,
int version,
boolean keepSSTableLevel,
boolean isIncremental) |
public final java.util.UUID planId
public final java.lang.String description
public static StreamResultFuture initReceivingSide(int sessionIndex, java.util.UUID planId, java.lang.String description, java.net.InetAddress from, java.net.Socket socket, boolean isForOutgoing, int version, boolean keepSSTableLevel, boolean isIncremental) throws java.io.IOException
java.io.IOException
public void addEventListener(StreamEventHandler listener)
public StreamState getCurrentState()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void handleProgress(ProgressInfo progress)
Copyright © 2016 The Apache Software Foundation