All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.duracloud.retrieval.mgmt.OutputWriter Maven / Gradle / Ivy

There is a newer version: 8.1.0
Show newest version
/*
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 *     http://duracloud.org/license/
 */
package org.duracloud.retrieval.mgmt;

import org.duracloud.common.model.ContentItem;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

/**
 * Interface for the writing retrieval tool output
 *
 * @author: Bill Branan
 * Date: Oct 13, 2010
 */
public interface OutputWriter {

    public static final DateFormat DATE_FORMAT =
        new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");

    public void writeSuccess(ContentItem contentItem,
                             String localFilePath,
                             int attempts);

    public void writeFailure(ContentItem contentItem,
                             String error,
                             int attempts);

    public void close();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy