// Path: shim/src/main/java/info/vancauwenberge/filedriver/api/IPublisherLoggerStrategy.java
// public interface IPublisherLoggerStrategy extends IPublisherStrategy {
// 	public enum LogField{
// 		RECORDNUMBER, //The Number of the record
// 		LOGSTATUS, //RETRY, ERROR, ETC
// 		LOGMESSAGE, //The message in the status
// 		LOGEVENTID //Event ID in the status message
// 	}
// 	/**
// 	 * Tells the logger to prepare for writing a given file.
// 	 * @param schema
// 	 * @param f
// 	 * @throws IOException
// 	 */
// 	public void openFile(File f, String[] schema, EnumMap<LogField, String> logFieldSchemaMap) throws WriteException;
// 	/**
// 	 * Write one record to the file.
// 	 * @param m A map of key/value pairs. The key is the fieldname (String), the value is the String value for that field. Value can be null.
// 	 * @return 
// 	 * @throws IOException
// 	 */
// 	public void logCommand(int recordNumber, Map<String,String> thisRecord, XDSStatusElement xdsStatusElement) throws WriteException;
// 	/**
// 	 * Tells the logger that no more records will be added to this file. 
// 	 * The writer should release all resources associated with the file and close the file.
// 	 * @throws IOException
// 	 */
// 	public File close() throws WriteException;
// 
// }
// 
// Path: shim/src/main/java/info/vancauwenberge/filedriver/exception/WriteException.java
// public class WriteException extends Exception {
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 1L;
// 	/**
// 	 * @param message
// 	 * @param cause
// 	 */
// 	public WriteException(String message, Exception cause) {
// 		super(message,cause);
// 	}
// 	/**
// 	 * @param cause
// 	 */
// 	public WriteException(Exception cause) {
// 		super(cause);
// 	}
// }
// 
// Path: shim/src/main/java/info/vancauwenberge/filedriver/filepublisher/IPublisher.java
// public interface IPublisher {
// 
// 	/**
// 	 * Get the folder where files are moved to for processing
// 	 * @return
// 	 */
// 	public String getWorkDir();
// 
// 	/**
// 	 * Get the current file in process (should be in workDir).
// 	 * Note: files are only moved to the workdir just prior to processing. If multiple files are found for processing, only
// 	 * the first one is moved to 'workdir' and processed. After this, the next file is moved and processed etc...
// 	 * @return
// 	 */
// 	public File getCurrentFile();
// 
// }


import com.novell.nds.dirxml.driver.xds.XDSStatusElement;
import info.vancauwenberge.filedriver.api.IPublisherLoggerStrategy;
import info.vancauwenberge.filedriver.exception.WriteException;
import info.vancauwenberge.filedriver.filepublisher.IPublisher;
import java.io.File;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
import com.novell.nds.dirxml.driver.Trace;
import com.novell.nds.dirxml.driver.xds.Parameter;
/*******************************************************************************
 * Copyright (c) 2007, 2018 Stefaan Van Cauwenberge
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0 (the "License"). If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *  	 
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 *
 * The Initial Developer of the Original Code is
 * Stefaan Van Cauwenberge. Portions created by
 *  the Initial Developer are Copyright (C) 2007, 2018 by
 * Stefaan Van Cauwenberge. All Rights Reserved.
 *
 * Contributor(s): none so far.
 *    Stefaan Van Cauwenberge: Initial API and implementation
 *******************************************************************************/
package info.vancauwenberge.filedriver.filelogger;




public class PublisherNoLogger implements IPublisherLoggerStrategy{

	public void init(Trace trace, Map<String, Parameter> driverParams, IPublisher publisher) throws Exception {
	}

	public Map<String, Parameter> getParameterDefinitions() {
		return new HashMap<String, Parameter>(0);
	}

// Path: shim/src/main/java/info/vancauwenberge/filedriver/api/IPublisherLoggerStrategy.java
// public interface IPublisherLoggerStrategy extends IPublisherStrategy {
// 	public enum LogField{
// 		RECORDNUMBER, //The Number of the record
// 		LOGSTATUS, //RETRY, ERROR, ETC
// 		LOGMESSAGE, //The message in the status
// 		LOGEVENTID //Event ID in the status message
// 	}
// 	/**
// 	 * Tells the logger to prepare for writing a given file.
// 	 * @param schema
// 	 * @param f
// 	 * @throws IOException
// 	 */
// 	public void openFile(File f, String[] schema, EnumMap<LogField, String> logFieldSchemaMap) throws WriteException;
// 	/**
// 	 * Write one record to the file.
// 	 * @param m A map of key/value pairs. The key is the fieldname (String), the value is the String value for that field. Value can be null.
// 	 * @return 
// 	 * @throws IOException
// 	 */
// 	public void logCommand(int recordNumber, Map<String,String> thisRecord, XDSStatusElement xdsStatusElement) throws WriteException;
// 	/**
// 	 * Tells the logger that no more records will be added to this file. 
// 	 * The writer should release all resources associated with the file and close the file.
// 	 * @throws IOException
// 	 */
// 	public File close() throws WriteException;
// 
// }
// 
// Path: shim/src/main/java/info/vancauwenberge/filedriver/exception/WriteException.java
// public class WriteException extends Exception {
// 	/**
// 	 * 
// 	 */
// 	private static final long serialVersionUID = 1L;
// 	/**
// 	 * @param message
// 	 * @param cause
// 	 */
// 	public WriteException(String message, Exception cause) {
// 		super(message,cause);
// 	}
// 	/**
// 	 * @param cause
// 	 */
// 	public WriteException(Exception cause) {
// 		super(cause);
// 	}
// }
// 
// Path: shim/src/main/java/info/vancauwenberge/filedriver/filepublisher/IPublisher.java
// public interface IPublisher {
// 
// 	/**
// 	 * Get the folder where files are moved to for processing
// 	 * @return
// 	 */
// 	public String getWorkDir();
// 
// 	/**
// 	 * Get the current file in process (should be in workDir).
// 	 * Note: files are only moved to the workdir just prior to processing. If multiple files are found for processing, only
// 	 * the first one is moved to 'workdir' and processed. After this, the next file is moved and processed etc...
// 	 * @return
// 	 */
// 	public File getCurrentFile();
// 
// }


// Path: shim/src/main/java/info/vancauwenberge/filedriver/filelogger/PublisherNoLogger.java
import com.novell.nds.dirxml.driver.xds.XDSStatusElement;
import info.vancauwenberge.filedriver.api.IPublisherLoggerStrategy;
import info.vancauwenberge.filedriver.exception.WriteException;
import info.vancauwenberge.filedriver.filepublisher.IPublisher;
import java.io.File;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
import com.novell.nds.dirxml.driver.Trace;
import com.novell.nds.dirxml.driver.xds.Parameter;

/*******************************************************************************
 * Copyright (c) 2007, 2018 Stefaan Van Cauwenberge
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0 (the "License"). If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *  	 
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 *
 * The Initial Developer of the Original Code is
 * Stefaan Van Cauwenberge. Portions created by
 *  the Initial Developer are Copyright (C) 2007, 2018 by
 * Stefaan Van Cauwenberge. All Rights Reserved.
 *
 * Contributor(s): none so far.
 *    Stefaan Van Cauwenberge: Initial API and implementation
 *******************************************************************************/
package info.vancauwenberge.filedriver.filelogger;




public class PublisherNoLogger implements IPublisherLoggerStrategy{

	public void init(Trace trace, Map<String, Parameter> driverParams, IPublisher publisher) throws Exception {
	}

	public Map<String, Parameter> getParameterDefinitions() {
		return new HashMap<String, Parameter>(0);
	}

	public File close() throws WriteException {