Search in sources :

Example 1 with TransformActionRuntime

use of com.hortonworks.streamline.streams.runtime.TransformActionRuntime in project streamline by hortonworks.

the class NotifierActionRuntime method setActionRuntimeContext.

@Override
public void setActionRuntimeContext(ActionRuntimeContext actionRuntimeContext) {
    outputStream = notifierAction.getOutputStreams().iterator().next();
    LOG.debug("Notifier action {}, outputStream set to {}", notifierAction, outputStream);
    transformActionRuntime = new TransformActionRuntime(new TransformAction(getNotificationTransforms(notifierAction, actionRuntimeContext.getRule().getId()), Collections.singleton(outputStream)));
}
Also used : TransformActionRuntime(com.hortonworks.streamline.streams.runtime.TransformActionRuntime) TransformAction(com.hortonworks.streamline.streams.layout.component.rule.action.TransformAction)

Example 2 with TransformActionRuntime

use of com.hortonworks.streamline.streams.runtime.TransformActionRuntime in project streamline by hortonworks.

the class StageActionRuntime method buildTransformActionRuntime.

protected void buildTransformActionRuntime() {
    final List<Transform> transforms = stageAction.getTransforms();
    if (stageAction.getOutputStreams().size() != 1) {
        throw new RuntimeException("Stage can only have one output stream.");
    }
    transformActionRuntime = new TransformActionRuntime(new TransformAction(transforms, stageAction.getOutputStreams()));
}
Also used : TransformActionRuntime(com.hortonworks.streamline.streams.runtime.TransformActionRuntime) TransformAction(com.hortonworks.streamline.streams.layout.component.rule.action.TransformAction) Transform(com.hortonworks.streamline.streams.layout.Transform)

Aggregations

TransformAction (com.hortonworks.streamline.streams.layout.component.rule.action.TransformAction)2 TransformActionRuntime (com.hortonworks.streamline.streams.runtime.TransformActionRuntime)2 Transform (com.hortonworks.streamline.streams.layout.Transform)1