org.apache.cassandra.streaming
Class FileStreamTask
java.lang.Object
org.apache.cassandra.utils.WrappedRunnable
org.apache.cassandra.streaming.FileStreamTask
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- SSLFileStreamTask
public class FileStreamTask
- extends WrappedRunnable
Method Summary |
protected void |
bind()
|
protected void |
close()
|
protected void |
connect()
|
void |
runMayThrow()
|
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 |
CHUNK_SIZE
public static final int CHUNK_SIZE
- See Also:
- Constant Field Values
MAX_CONNECT_ATTEMPTS
public static final int MAX_CONNECT_ATTEMPTS
- See Also:
- Constant Field Values
header
protected final StreamHeader header
to
protected final java.net.InetAddress to
FileStreamTask
public FileStreamTask(StreamHeader header,
java.net.InetAddress to)
runMayThrow
public void runMayThrow()
throws java.io.IOException
- Specified by:
runMayThrow
in class WrappedRunnable
- Throws:
java.io.IOException
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
- Throws:
java.io.IOException
writeHeader
protected void writeHeader(java.nio.ByteBuffer buffer)
throws java.io.IOException
- Throws:
java.io.IOException
bind
protected void bind()
throws java.io.IOException
- Throws:
java.io.IOException
connect
protected void connect()
throws java.io.IOException
- Throws:
java.io.IOException
close
protected void close()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2011 The Apache Software Foundation