org.fcrepo.client.utility.ingest
Class IngestLogger

java.lang.Object
  extended by org.fcrepo.client.utility.ingest.IngestLogger

public class IngestLogger
extends Object

Methods to create and update a log of ingest activity.

Author:
Chris Wilper

Constructor Summary
IngestLogger()
           
 
Method Summary
static void closeLog(PrintStream log, String rootName)
           
static void logFailedFromFile(PrintStream log, File f, Exception e)
           
static void logFailedFromRepos(PrintStream log, String sourcePID, Exception e)
           
static void logFromFile(PrintStream log, File f, String pid)
           
static void logFromRepos(PrintStream log, String sourcePID, String targetPID)
           
static File newLogFile(String logRootName)
           
static void openLog(PrintStream log, String rootName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IngestLogger

public IngestLogger()
Method Detail

newLogFile

public static File newLogFile(String logRootName)

openLog

public static void openLog(PrintStream log,
                           String rootName)
                    throws Exception
Throws:
Exception

logFromFile

public static void logFromFile(PrintStream log,
                               File f,
                               String pid)
                        throws Exception
Throws:
Exception

logFailedFromFile

public static void logFailedFromFile(PrintStream log,
                                     File f,
                                     Exception e)
                              throws Exception
Throws:
Exception

logFromRepos

public static void logFromRepos(PrintStream log,
                                String sourcePID,
                                String targetPID)

logFailedFromRepos

public static void logFailedFromRepos(PrintStream log,
                                      String sourcePID,
                                      Exception e)

closeLog

public static void closeLog(PrintStream log,
                            String rootName)
                     throws Exception
Throws:
Exception


Copyright © 2012 DuraSpace. All Rights Reserved.