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)));
}
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()));
}
Aggregations