public SessionCompleteEvent(StreamSession session) { super(Type.STREAM_COMPLETE, session.planId()); this.peer = session.peer; this.success = session.isSuccess(); this.sessionIndex = session.sessionIndex(); this.requests = ImmutableSet.copyOf(session.requests); this.description = session.description(); this.transferredRangesPerKeyspace = Collections.unmodifiableMap(session.transferredRangesPerKeyspace); } }
public SessionCompleteEvent(StreamSession session) { super(Type.STREAM_COMPLETE, session.planId()); this.peer = session.peer; this.success = session.isSuccess(); this.sessionIndex = session.sessionIndex(); this.requests = ImmutableSet.copyOf(session.requests); this.description = session.description(); this.transferredRangesPerKeyspace = Collections.unmodifiableMap(session.transferredRangesPerKeyspace); } }
public SessionCompleteEvent(StreamSession session) { super(Type.STREAM_COMPLETE, session.planId()); this.peer = session.peer; this.success = session.isSuccess(); this.sessionIndex = session.sessionIndex(); this.requests = ImmutableSet.copyOf(session.requests); this.description = session.description(); this.transferredRangesPerKeyspace = Collections.unmodifiableMap(session.transferredRangesPerKeyspace); } }
public void sendInitMessage(Socket socket, boolean isForOutgoing) throws IOException { StreamInitMessage message = new StreamInitMessage( FBUtilities.getBroadcastAddress(), session.sessionIndex(), session.planId(), session.description(), isForOutgoing); ByteBuffer messageBuf = message.createMessage(false, protocolVersion); getWriteChannel(socket).write(messageBuf); }
@SuppressWarnings("resource") private void sendInitMessage() throws IOException { StreamInitMessage message = new StreamInitMessage( FBUtilities.getBroadcastAddress(), session.sessionIndex(), session.planId(), session.description(), !isOutgoingHandler, session.keepSSTableLevel(), session.isIncremental()); ByteBuffer messageBuf = message.createMessage(false, protocolVersion); DataOutputStreamPlus out = getWriteChannel(socket); out.write(messageBuf); out.flush(); }
@SuppressWarnings("resource") private void sendInitMessage() throws IOException { StreamInitMessage message = new StreamInitMessage( FBUtilities.getBroadcastAddress(), session.sessionIndex(), session.planId(), session.description(), !isOutgoingHandler, session.keepSSTableLevel(), session.isIncremental()); ByteBuffer messageBuf = message.createMessage(false, protocolVersion); DataOutputStreamPlus out = getWriteChannel(socket); out.write(messageBuf); out.flush(); }
@SuppressWarnings("resource") private void sendInitMessage() throws IOException { StreamInitMessage message = new StreamInitMessage( FBUtilities.getBroadcastAddress(), session.sessionIndex(), session.planId(), session.description(), !isOutgoingHandler, session.keepSSTableLevel(), session.isIncremental()); ByteBuffer messageBuf = message.createMessage(false, protocolVersion); DataOutputStreamPlus out = getWriteChannel(socket); out.write(messageBuf); out.flush(); }