Exemplo n.º 1
0
  public OutputHandler(AbstractStreamComponent streamComponent) {
    this.streamComponent = streamComponent;
    this.outputs = new LinkedList<RecordWriter<SerializationDelegate<StreamRecord<OUT>>>>();
    this.configuration = new StreamConfig(streamComponent.getTaskConfiguration());

    try {
      setConfigOutputs();
    } catch (StreamComponentException e) {
      throw new StreamComponentException(
          "Cannot register outputs for " + streamComponent.getClass().getSimpleName(), e);
    }
  }