blob: d0f8a4acc1a642df8212e7ab01ea4f3cdbdd5a12 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2009 empolis GmbH and brox IT Solutions GmbH. All rights reserved. This program and the
* accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this
* distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Andreas Schank (empolis GmbH) - initial API and implementation
*******************************************************************************/
package org.eclipse.smila.processing.test;
import java.util.Arrays;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.smila.blackboard.Blackboard;
import org.eclipse.smila.datamodel.AnyMap;
import org.eclipse.smila.processing.Pipelet;
import org.eclipse.smila.processing.ProcessingException;
/**
* Pipelet implementation for test. Just logs the given configuration and record IDs.
*
*/
public class Test4Pipelet implements Pipelet {
/**
* local logger.
*/
private final Log _log = LogFactory.getLog(Test4Pipelet.class);
/**
* {@inheritDoc}
*/
@Override
public void configure(final AnyMap configuration) throws ProcessingException {
_log.info(this.getClass().getName() + ".configure():" + configuration);
}
/**
* {@inheritDoc}
*
* @see org.eclipse.smila.processing.Pipelet#process(org.eclipse.smila.blackboard.Blackboard,
* org.eclipse.smila.datamodel.id.Id[])
*/
@Override
public String[] process(final Blackboard blackboard, final String[] recordIds) throws ProcessingException {
_log.info(this.getClass().getName() + ".process():" + Arrays.toString(recordIds));
return recordIds;
}
}