org.apache.cassandra.security.streaming
Class SSLFileStreamTask

java.lang.Object
  extended by org.apache.cassandra.utils.WrappedRunnable
      extended by org.apache.cassandra.streaming.FileStreamTask
          extended by org.apache.cassandra.security.streaming.SSLFileStreamTask
All Implemented Interfaces:
java.lang.Runnable

public class SSLFileStreamTask
extends FileStreamTask

This class uses a DataOutputStream to write data as opposed to a FileChannel.transferTo used by FileStreamTask because the underlying SSLSocket doesn't support encrypting over NIO SocketChannel.


Field Summary
 
Fields inherited from class org.apache.cassandra.streaming.FileStreamTask
CHUNK_SIZE, header, MAX_CONNECT_ATTEMPTS, to
 
Constructor Summary
SSLFileStreamTask(StreamHeader header, java.net.InetAddress to)
           
 
Method Summary
protected  void bind()
           
protected  void close()
           
protected  void connect()
           
protected  long write(java.nio.channels.FileChannel fc, Pair<java.lang.Long,java.lang.Long> section, long length, long bytesTransferred)
           
protected  void writeHeader(java.nio.ByteBuffer buffer)
           
 
Methods inherited from class org.apache.cassandra.streaming.FileStreamTask
runMayThrow
 
Methods inherited from class org.apache.cassandra.utils.WrappedRunnable
run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLFileStreamTask

public SSLFileStreamTask(StreamHeader header,
                         java.net.InetAddress to)
Method Detail

write

protected long write(java.nio.channels.FileChannel fc,
                     Pair<java.lang.Long,java.lang.Long> section,
                     long length,
                     long bytesTransferred)
              throws java.io.IOException
Overrides:
write in class FileStreamTask
Throws:
java.io.IOException

writeHeader

protected void writeHeader(java.nio.ByteBuffer buffer)
                    throws java.io.IOException
Overrides:
writeHeader in class FileStreamTask
Throws:
java.io.IOException

bind

protected void bind()
             throws java.io.IOException
Overrides:
bind in class FileStreamTask
Throws:
java.io.IOException

connect

protected void connect()
                throws java.io.IOException
Overrides:
connect in class FileStreamTask
Throws:
java.io.IOException

close

protected void close()
              throws java.io.IOException
Overrides:
close in class FileStreamTask
Throws:
java.io.IOException


Copyright © 2011 The Apache Software Foundation