public final class OutputServiceTask extends Object implements Task
| Constructor and Description |
|---|
OutputServiceTask(OutputStreamProvider outputStreamProvider)
Task constructor - instantiated via TANG.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
call(byte[] memento)
Receives an output stream from the output service and writes "Hello REEF!" on it.
|
@Inject public OutputServiceTask(OutputStreamProvider outputStreamProvider)
outputStreamProvider - Output stream provider object through which tasks create output streams.public byte[] call(byte[] memento) throws IOException
call in interface Taskmemento - the memento objected passed down by the driver.IOExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.