Class ByteTransfer
- java.lang.Object
-
- org.apache.nemo.runtime.executor.transfer.ByteTransfer
-
@ThreadSafe public final class ByteTransfer extends java.lang.Object
Manages channels and exposes interface forBlockManagerWorker
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<ByteInputContext>
newInputContext(java.lang.String executorId, byte[] contextDescriptor, boolean isPipe)
Initiate a transfer context to receive data.java.util.concurrent.CompletableFuture<ByteOutputContext>
newOutputContext(java.lang.String executorId, byte[] contextDescriptor, boolean isPipe)
Initiate a transfer context to send data.
-
-
-
Method Detail
-
newInputContext
public java.util.concurrent.CompletableFuture<ByteInputContext> newInputContext(java.lang.String executorId, byte[] contextDescriptor, boolean isPipe)
Initiate a transfer context to receive data.- Parameters:
executorId
- the id of the remote executorcontextDescriptor
- user-provided descriptor for the new contextisPipe
- is pipe- Returns:
- a
ByteInputContext
from which the received data can be read
-
newOutputContext
public java.util.concurrent.CompletableFuture<ByteOutputContext> newOutputContext(java.lang.String executorId, byte[] contextDescriptor, boolean isPipe)
Initiate a transfer context to send data.- Parameters:
executorId
- the id of the remote executorcontextDescriptor
- user-provided descriptor for the new contextisPipe
- is pipe- Returns:
- a
ByteOutputContext
to which data can be written
-
-