public class SocketMasterChannel extends Object implements MasterChannel
| Constructor and Description |
|---|
SocketMasterChannel(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
ChecksumHolder |
receiveChecksums()
receives checksums from the Slave
|
void |
sendData(long bytes,
ByteChannel source,
int index)
Send data: the given number of data bytes from the input
stream should be sent to the slave, followed by the index of
the matching block
|
void |
shutdown()
shutdown the channel
|
public SocketMasterChannel(Socket socket)
public ChecksumHolder receiveChecksums() throws IOException
MasterChannelreceiveChecksums in interface MasterChannelIOExceptionpublic void sendData(long bytes,
ByteChannel source,
int index)
throws IOException
MasterChannelsendData in interface MasterChannelbytes - - number of bytes to sendsource - - the channel to read fromindex - - the index of a matching blockIOExceptionpublic void shutdown()
throws IOException
MasterChannelshutdown in interface MasterChannelIOExceptionCopyright © 2010–2016 UNICORE. All rights reserved.