public abstract class AbstractSystemAdapter extends AbstractStreamingSystemAdapter implements GeneratedDataReceivingComponent, TaskReceivingComponent
AbstractStreamingSystemAdapter.GeneratedDataHandler, AbstractStreamingSystemAdapter.GeneratedTaskHandlerdataReceiver, sender2EvalStore, systemParamModel, taskReceivercmdChannel, cmdQueueFactory, DEFAULT_CMD_RESPONSE_TIMEOUT, defaultContainerTypeconnectionFactory, incomingDataQueueFactory, NUMBER_OF_RETRIES_TO_CONNECT_TO_RABBIT_MQ, outgoingDataQueuefactory, rabbitMQHostName, START_WAITING_TIME_BEFORE_RETRY| Constructor and Description |
|---|
AbstractSystemAdapter() |
AbstractSystemAdapter(DataSender sender2EvalStore,
DataReceiver dataReceiver,
DataReceiver taskReceiver) |
AbstractSystemAdapter(int maxParallelProcessedMsgs) |
| Modifier and Type | Method and Description |
|---|---|
void |
receiveGeneratedData(InputStream dataStream)
This method is called if a new data stream is received from a data
generator.
|
void |
receiveGeneratedTask(String taskId,
InputStream dataStream)
This method is called if a task is received from a task generator.
|
protected void |
sendResultToEvalStorage(String taskIdString,
byte[] data)
This method sends the given result data for the task with the given task
id to the evaluation storage.
|
close, init, receiveCommand, run, sendResultToEvalStorage, terminateaddContainerObserver, createContainer, getFactoryForIncomingCmdQueues, getFactoryForIncomingDataQueues, getFactoryForOutgoingCmdQueues, getFactoryForOutgoingDataQueues, stopContaineraddCommandHeaderId, createContainer, createContainer, handleCmd, sendToCmdQueue, sendToCmdQueue, sendToCmdQueuecreateConnection, generateSessionQueueName, getHobbitSessionIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreceiveGeneratedDatareceiveGeneratedTaskpublic AbstractSystemAdapter()
public AbstractSystemAdapter(int maxParallelProcessedMsgs)
public AbstractSystemAdapter(DataSender sender2EvalStore, DataReceiver dataReceiver, DataReceiver taskReceiver)
protected void sendResultToEvalStorage(String taskIdString, byte[] data) throws IOException
taskIdString - the id of the taskdata - the data of the taskIOException - if there is an error during the sendingpublic void receiveGeneratedData(InputStream dataStream)
StreamingGeneratedDataReceivingComponentreceiveGeneratedData in interface StreamingGeneratedDataReceivingComponentdataStream - the stream from which the data received from a data generator
is readpublic void receiveGeneratedTask(String taskId, InputStream dataStream)
StreamingTaskReceivingComponentreceiveGeneratedTask in interface StreamingTaskReceivingComponenttaskId - the id of the received taskdataStream - the data received from a data generatorCopyright © 2017–2018. All rights reserved.