org.apache.cassandra.streaming
Class IncomingStreamReader

java.lang.Object
  extended by org.apache.cassandra.streaming.IncomingStreamReader
Direct Known Subclasses:
SSLIncomingStreamReader

public class IncomingStreamReader
extends java.lang.Object


Field Summary
protected  PendingFile localFile
           
protected  PendingFile remoteFile
           
protected  StreamInSession session
           
 
Constructor Summary
IncomingStreamReader(StreamHeader header, java.net.Socket socket)
           
 
Method Summary
 void read()
           
protected  void readFile()
           
protected  long readnwrite(long length, long bytesRead, long offset, java.nio.channels.FileChannel fc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localFile

protected final PendingFile localFile

remoteFile

protected final PendingFile remoteFile

session

protected final StreamInSession session
Constructor Detail

IncomingStreamReader

public IncomingStreamReader(StreamHeader header,
                            java.net.Socket socket)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

read

public void read()
          throws java.io.IOException
Throws:
java.io.IOException

readFile

protected void readFile()
                 throws java.io.IOException
Throws:
java.io.IOException

readnwrite

protected long readnwrite(long length,
                          long bytesRead,
                          long offset,
                          java.nio.channels.FileChannel fc)
                   throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 The Apache Software Foundation