java.lang.Object
org.hobbit.core.components.AbstractComponent
org.hobbit.core.components.AbstractCommandReceivingComponent
org.hobbit.core.components.AbstractPlatformConnectorComponent
org.hobbit.core.components.AbstractSystemAdapter
de.uni_mannheim.informatik.dws.melt.receiver_hobbit.HobbitWrapper
All Implemented Interfaces:
Closeable, AutoCloseable, org.hobbit.core.components.CommandReceivingComponent, org.hobbit.core.components.Component, org.hobbit.core.components.GeneratedDataReceivingComponent, org.hobbit.core.components.PlatformConnector, org.hobbit.core.components.TaskReceivingComponent

public class HobbitWrapper extends org.hobbit.core.components.AbstractSystemAdapter
Wraps the interface of HOBBIT platform and maps it to calls similar to SEALS.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    private static final org.slf4j.Logger
     
     

    Fields inherited from class org.hobbit.core.components.AbstractSystemAdapter

    dataGenReceiver, sender2EvalStore, systemParamModel, taskGenReceiver

    Fields inherited from class org.hobbit.core.components.AbstractCommandReceivingComponent

    cmdChannel, cmdQueueFactory, cmdResponseTimeout, DEFAULT_CMD_RESPONSE_TIMEOUT, defaultContainerType

    Fields inherited from class org.hobbit.core.components.AbstractComponent

    connectionFactory, incomingDataQueueFactory, NUMBER_OF_RETRIES_TO_CONNECT_TO_RABBIT_MQ, outgoingDataQueuefactory, rabbitMQHostName, START_WAITING_TIME_BEFORE_RETRY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    receiveGeneratedData(byte[] data)
     
    void
    receiveGeneratedTask(String taskId, byte[] data)
     
    private File
    runTool(URI source, URI target, URL inputAlignment, Properties parameters)
     

    Methods inherited from class org.hobbit.core.components.AbstractSystemAdapter

    close, receiveCommand, run, sendResultToEvalStorage, terminate

    Methods inherited from class org.hobbit.core.components.AbstractPlatformConnectorComponent

    addContainerObserver, createContainer, getFactoryForIncomingCmdQueues, getFactoryForIncomingDataQueues, getFactoryForOutgoingCmdQueues, getFactoryForOutgoingDataQueues, stopContainer

    Methods inherited from class org.hobbit.core.components.AbstractCommandReceivingComponent

    addCommandHeaderId, createContainer, createContainer, getCmdResponseTimeout, handleCmd, sendToCmdQueue, sendToCmdQueue, sendToCmdQueue, setCmdResponseTimeout

    Methods inherited from class org.hobbit.core.components.AbstractComponent

    createConnection, generateSessionQueueName, getHobbitSessionId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • HobbitWrapper

      public HobbitWrapper()
  • Method Details

    • init

      public void init() throws Exception
      Specified by:
      init in interface org.hobbit.core.components.Component
      Overrides:
      init in class org.hobbit.core.components.AbstractSystemAdapter
      Throws:
      Exception
    • receiveGeneratedData

      public void receiveGeneratedData(byte[] data)
    • receiveGeneratedTask

      public void receiveGeneratedTask(String taskId, byte[] data)
    • runTool

      private File runTool(URI source, URI target, URL inputAlignment, Properties parameters)