blob: 4a225925d8a7be673329ad8c23aeee564db62202 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008 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:
* Juergen Schumacher (empolis GmbH) - initial API and implementation
*******************************************************************************/
package org.eclipse.smila.processing.test;
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.ProcessingException;
import org.eclipse.smila.processing.Pipelet;
/**
* Pipelet implementation for test. Just logs the given configuration and record IDs.
*
* @author jschumacher
*
*/
public class Test1Pipelet implements Pipelet {
/**
* local logger.
*/
private final Log _log = LogFactory.getLog(Test1Pipelet.class);
/**
* {@inheritDoc}
*/
@Override
public void configure(final AnyMap configuration) throws ProcessingException {
_log.info("Test1Pipelet.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("Test1Pipelet.process():" + recordIds);
return recordIds;
}
}