| java.lang.Object org.archive.crawler.util.CheckpointUtils
CheckpointUtils | public class CheckpointUtils (Code) | | Utilities useful checkpointing.
author: stack version: $Date: 2006-09-25 22:40:19 +0000 (Mon, 25 Sep 2006) $ $Revision: 4658 $ |
Method Summary | |
public static File | getBdbSubDirectory(File checkpointDir) | public static File | getClassCheckpointFile(File checkpointDir, String suffix, Class c) | public static File | getClassCheckpointFile(File checkpointDir, Class c) | public static String | getClassCheckpointFilename(Class c) | public static String | getClassCheckpointFilename(Class c, String suffix) | public static FilenameFilter | getJeLogsFilter() Instance of filename filter that will let through files endingin '.jdb' (i.e. | public static T | readObjectFromFile(Class<T> c, File dir) | public static T | readObjectFromFile(Class<T> c, String suffix, File dir) | public static void | writeObjectToFile(Object o, File dir) Utility function to serialize an object to a file in current checkpoint
dir. | public static void | writeObjectToFile(Object o, String suffix, File dir) |
SERIALIZED_CLASS_SUFFIX | final public static String SERIALIZED_CLASS_SUFFIX(Code) | | |
getBdbSubDirectory | public static File getBdbSubDirectory(File checkpointDir)(Code) | | |
getClassCheckpointFile | public static File getClassCheckpointFile(File checkpointDir, Class c)(Code) | | |
getClassCheckpointFilename | public static String getClassCheckpointFilename(Class c)(Code) | | |
getJeLogsFilter | public static FilenameFilter getJeLogsFilter()(Code) | | Instance of filename filter that will let through files endingin '.jdb' (i.e. bdb je log files). |
writeObjectToFile | public static void writeObjectToFile(Object o, File dir) throws IOException(Code) | | Utility function to serialize an object to a file in current checkpoint
dir. Facilities
to store related files alongside the serialized object in a directory
named with a .auxillary suffix.
Parameters: o - Object to serialize. Parameters: dir - Directory to serialize into. throws: IOException - |
|
|