/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.streams.local.test.processors; import org.apache.streams.core.StreamsDatum; import org.apache.streams.core.StreamsProcessor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.LinkedList; import java.util.List; /** * Created by rebanks on 2/20/14. */ public class DoNothingProcessor implements StreamsProcessor { private final static Logger LOGGER = LoggerFactory.getLogger(DoNothingProcessor.class); public final static String STREAMS_ID = "DoNothingProcessor"; List<StreamsDatum> result; public DoNothingProcessor() { } @Override public String getId() { return STREAMS_ID; } @Override public List<StreamsDatum> process(StreamsDatum entry) { this.result = new LinkedList<StreamsDatum>(); result.add(entry); return result; } @Override public void prepare(Object configurationObject) { } @Override public void cleanUp() { LOGGER.debug("Processor clean up!"); } }