org.apache.cassandra.security.streaming
Class SSLFileStreamTask
java.lang.Object
org.apache.cassandra.utils.WrappedRunnable
org.apache.cassandra.streaming.FileStreamTask
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLFileStreamTask
public SSLFileStreamTask(StreamHeader header,
java.net.InetAddress to)
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