fedora.client.utility.ingest
Class IngestLogger

java.lang.Object
  extended by fedora.client.utility.ingest.IngestLogger

public class IngestLogger
extends java.lang.Object

Title: IngestLogger.java

Description: Methods to create and update a log of ingest activity.


Constructor Summary
IngestLogger()
           
 
Method Summary
static void closeLog(java.io.PrintStream log, java.lang.String rootName)
           
static void logFailedFromFile(java.io.PrintStream log, java.io.File f, char fType, java.lang.Exception e)
           
static void logFailedFromFile(java.io.PrintStream log, java.io.File f, java.lang.String fType, java.lang.Exception e)
           
static void logFailedFromRepos(java.io.PrintStream log, java.lang.String sourcePID, char fType, java.lang.Exception e)
           
static void logFailedFromRepos(java.io.PrintStream log, java.lang.String sourcePID, java.lang.String fType, java.lang.Exception e)
           
static void logFromFile(java.io.PrintStream log, java.io.File f, char fType, java.lang.String pid)
           
static void logFromFile(java.io.PrintStream log, java.io.File f, java.lang.String fType, java.lang.String pid)
           
static void logFromRepos(java.io.PrintStream log, java.lang.String sourcePID, char fType, java.lang.String targetPID)
           
static void logFromRepos(java.io.PrintStream log, java.lang.String sourcePID, java.lang.String fType, java.lang.String targetPID)
           
static java.io.File newLogFile(java.lang.String logRootName)
           
static void openLog(java.io.PrintStream log, java.lang.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 java.io.File newLogFile(java.lang.String logRootName)

openLog

public static void openLog(java.io.PrintStream log,
                           java.lang.String rootName)
                    throws java.lang.Exception
Throws:
java.lang.Exception

logFromFile

public static void logFromFile(java.io.PrintStream log,
                               java.io.File f,
                               java.lang.String fType,
                               java.lang.String pid)
                        throws java.lang.Exception
Throws:
java.lang.Exception

logFromFile

public static void logFromFile(java.io.PrintStream log,
                               java.io.File f,
                               char fType,
                               java.lang.String pid)
                        throws java.lang.Exception
Throws:
java.lang.Exception

logFailedFromFile

public static void logFailedFromFile(java.io.PrintStream log,
                                     java.io.File f,
                                     java.lang.String fType,
                                     java.lang.Exception e)
                              throws java.lang.Exception
Throws:
java.lang.Exception

logFailedFromFile

public static void logFailedFromFile(java.io.PrintStream log,
                                     java.io.File f,
                                     char fType,
                                     java.lang.Exception e)
                              throws java.lang.Exception
Throws:
java.lang.Exception

logFromRepos

public static void logFromRepos(java.io.PrintStream log,
                                java.lang.String sourcePID,
                                java.lang.String fType,
                                java.lang.String targetPID)
                         throws java.lang.Exception
Throws:
java.lang.Exception

logFromRepos

public static void logFromRepos(java.io.PrintStream log,
                                java.lang.String sourcePID,
                                char fType,
                                java.lang.String targetPID)
                         throws java.lang.Exception
Throws:
java.lang.Exception

logFailedFromRepos

public static void logFailedFromRepos(java.io.PrintStream log,
                                      java.lang.String sourcePID,
                                      java.lang.String fType,
                                      java.lang.Exception e)
                               throws java.lang.Exception
Throws:
java.lang.Exception

logFailedFromRepos

public static void logFailedFromRepos(java.io.PrintStream log,
                                      java.lang.String sourcePID,
                                      char fType,
                                      java.lang.Exception e)
                               throws java.lang.Exception
Throws:
java.lang.Exception

closeLog

public static void closeLog(java.io.PrintStream log,
                            java.lang.String rootName)
                     throws java.lang.Exception
Throws:
java.lang.Exception