public void handleProgress(ProgressInfo progress) { coordinator.updateProgress(progress); fireStreamEvent(new StreamEvent.ProgressEvent(planId, progress)); }
public StreamPlan(String description, long repairedAt, int connectionsPerHost, boolean keepSSTableLevels, boolean isIncremental, boolean connectSequentially) { this.description = description; this.repairedAt = repairedAt; this.coordinator = new StreamCoordinator(connectionsPerHost, keepSSTableLevels, isIncremental, new DefaultConnectionFactory(), connectSequentially); }
/** * @return Current snapshot of streaming progress. */ public StreamState getCurrentState() { return new StreamState(planId, description, coordinator.getAllSessionInfo()); }
void handleSessionComplete(StreamSession session) { logger.info("[Stream #{}] Session with {} is complete", session.planId(), session.peer); fireStreamEvent(new StreamEvent.SessionCompleteEvent(session)); SessionInfo sessionInfo = session.getSessionInfo(); coordinator.addSessionInfo(sessionInfo); maybeComplete(); }
/** * @return StreamSummary that describes this task */ public StreamSummary getSummary() { return new StreamSummary(cfId, getTotalNumberOfFiles(), getTotalSize()); } }
public synchronized void addSessionInfo(SessionInfo session) { HostStreamingData data = getOrCreateHostData(session.peer); data.addSessionInfo(session); }
public void progress(String filename, ProgressInfo.Direction direction, long bytes, long total) { ProgressInfo progress = new ProgressInfo(peer, index, filename, direction, bytes, total); streamResult.handleProgress(progress); }
private static StreamResultFuture createAndRegister(UUID planId, String description, StreamCoordinator coordinator) { StreamResultFuture future = new StreamResultFuture(planId, description, coordinator); StreamManager.instance.register(future); return future; }
ConnectionHandler(StreamSession session, int incomingSocketTimeout) { this.session = session; this.incoming = new IncomingMessageHandler(session, incomingSocketTimeout); this.outgoing = new OutgoingMessageHandler(session); }
public void handleProgress(ProgressInfo progress) { coordinator.updateProgress(progress); fireStreamEvent(new StreamEvent.ProgressEvent(planId, progress)); }
/** * @return StreamSummary that describes this task */ public StreamSummary getSummary() { return new StreamSummary(cfId, getTotalNumberOfFiles(), getTotalSize()); } }
private StreamResultFuture(UUID planId, String description, boolean keepSSTableLevels, boolean isIncremental) { this(planId, description, new StreamCoordinator(0, keepSSTableLevels, isIncremental, new DefaultConnectionFactory(), false)); }
/** * @return Current snapshot of streaming progress. */ public StreamState getCurrentState() { return new StreamState(planId, description, coordinator.getAllSessionInfo()); }
public synchronized void addSessionInfo(SessionInfo session) { HostStreamingData data = getOrCreateHostData(session.peer); data.addSessionInfo(session); }
public void progress(String filename, ProgressInfo.Direction direction, long bytes, long total) { ProgressInfo progress = new ProgressInfo(peer, index, filename, direction, bytes, total); streamResult.handleProgress(progress); }
private static StreamResultFuture createAndRegister(UUID planId, String description, StreamCoordinator coordinator) { StreamResultFuture future = new StreamResultFuture(planId, description, coordinator); StreamManager.instance.register(future); return future; }
public void handleProgress(ProgressInfo progress) { coordinator.updateProgress(progress); fireStreamEvent(new StreamEvent.ProgressEvent(planId, progress)); }
/** * @return StreamSummary that describes this task */ public StreamSummary getSummary() { return new StreamSummary(cfId, getTotalNumberOfFiles(), getTotalSize()); } }
public StreamPlan(String description, long repairedAt, int connectionsPerHost, boolean keepSSTableLevels, boolean isIncremental, boolean connectSequentially) { this.description = description; this.repairedAt = repairedAt; this.coordinator = new StreamCoordinator(connectionsPerHost, keepSSTableLevels, isIncremental, new DefaultConnectionFactory(), connectSequentially); }
public void handleProgress(ProgressInfo progress) { coordinator.updateProgress(progress); fireStreamEvent(new StreamEvent.ProgressEvent(planId, progress)); }