wt.fv
Class RevaultElemReporter
java.lang.Object
wt.fv.RevaultElemReporter
- public class RevaultElemReporter
- extends Object
|
1) The delete unreferenced file action does not log what it is going to do.
2) There is no way to determine the list of unrefenced files (files but no metadata pointing to them)
3) There is no way to determine the set of objects with missing files (metadata but no files pointing to them)
|
Method Summary |
private static ResultSet |
executeQuery(String sql)
|
private static boolean |
executeSql(String sql)
|
private static int |
executeUpdate(String sql)
|
private static void |
getAllRevaultableItems()
|
private static Enumeration |
getFvFolders(Vault vault)
|
private static Enumeration |
getFvMounts(FileFolder folder)
|
private static Enumeration |
getMasterFvVaults()
|
private static String |
getShift(int level)
|
private static Enumeration |
getUnrefFiles(FvMount mount)
|
private static Enumeration |
getUnrefFilesFromDB(FvMount mount)
|
private static Enumeration |
getUnrefFilesFromJVM(FvMount mount)
|
private static String |
long2String(long number)
|
static void |
main(String[] args)
|
private static int |
partition(Vector fvItems,
int start,
int end)
|
private static void |
pp(String s)
|
private static void |
quickSort(Vector items)
|
private static void |
quickSort(Vector fvItems,
int start,
int end)
|
static void |
reportMissingFiles()
|
private static void |
reportMissingFilesFromDB()
|
private static void |
reportMissingFilesFromJVM()
|
static void |
reportUnreferencedFiles()
|
private static void |
reportUnreferencedFilesFromDB()
|
private static void |
reportUnreferencedFilesFromJVM()
|
private static long |
string2Long(String fileName)
|
private static void |
synchronizeOtherRevaultableItems(String vaultName,
long fileId)
|
private static void |
synchronizeOtherRevaultableItemsFromDB(String vaultName,
long fileId)
|
private static void |
synchronizeOtherRevaultableItemsFromJVM(String vaultName,
long fileId)
|
private static void |
writeDomTreeToFile(Node node,
PrintWriter out,
int level,
boolean indented)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
masterSite
private static Site masterSite
allMounts
private static Vector allMounts
allVaults
private static Vector allVaults
allFvItems
private static Hashtable allFvItems
allStreamDatas
private static Hashtable allStreamDatas
PREFERRED_RETRIEVE_SIZE
public static int PREFERRED_RETRIEVE_SIZE
currentTimeMillis
private static String currentTimeMillis
workingDir
private static String workingDir
revtemsStr
private static String revtemsStr
missingFvItems
private static String missingFvItems
forHugeItems
private static boolean forHugeItems
dbUserName
private static String dbUserName
dbPassword
private static String dbPassword
jdbcDrivePath
private static String jdbcDrivePath
dbConnection
private static Connection dbConnection
DEBUG
private static boolean DEBUG
RevaultElemReporter
public RevaultElemReporter()
main
public static void main(String[] args)
reportMissingFiles
public static void reportMissingFiles()
throws WTException,
InstantiationException,
ClassNotFoundException,
IllegalAccessException,
IOException
- Throws:
WTException
InstantiationException
ClassNotFoundException
IllegalAccessException
IOException
reportMissingFilesFromJVM
private static void reportMissingFilesFromJVM()
throws WTException,
InstantiationException,
ClassNotFoundException,
IllegalAccessException,
IOException
- Throws:
WTException
InstantiationException
ClassNotFoundException
IllegalAccessException
IOException
reportMissingFilesFromDB
private static void reportMissingFilesFromDB()
throws WTException,
InstantiationException,
ClassNotFoundException,
IllegalAccessException,
IOException
- Throws:
WTException
InstantiationException
ClassNotFoundException
IllegalAccessException
IOException
reportUnreferencedFiles
public static void reportUnreferencedFiles()
throws WTException,
InstantiationException,
ClassNotFoundException,
IllegalAccessException,
IOException
- Throws:
WTException
InstantiationException
ClassNotFoundException
IllegalAccessException
IOException
reportUnreferencedFilesFromJVM
private static void reportUnreferencedFilesFromJVM()
throws WTException,
InstantiationException,
ClassNotFoundException,
IllegalAccessException,
IOException
- Throws:
WTException
InstantiationException
ClassNotFoundException
IllegalAccessException
IOException
reportUnreferencedFilesFromDB
private static void reportUnreferencedFilesFromDB()
throws WTException,
InstantiationException,
ClassNotFoundException,
IllegalAccessException,
IOException
- Throws:
WTException
InstantiationException
ClassNotFoundException
IllegalAccessException
IOException
getMasterFvVaults
private static Enumeration getMasterFvVaults()
throws WTException
- Throws:
WTException
getFvFolders
private static Enumeration getFvFolders(Vault vault)
throws WTException
- Throws:
WTException
getFvMounts
private static Enumeration getFvMounts(FileFolder folder)
throws WTException
- Throws:
WTException
getUnrefFiles
private static Enumeration getUnrefFiles(FvMount mount)
throws WTException
- Throws:
WTException
getUnrefFilesFromJVM
private static Enumeration getUnrefFilesFromJVM(FvMount mount)
throws WTException
- Throws:
WTException
getUnrefFilesFromDB
private static Enumeration getUnrefFilesFromDB(FvMount mount)
throws WTException
- Throws:
WTException
synchronizeOtherRevaultableItems
private static void synchronizeOtherRevaultableItems(String vaultName,
long fileId)
throws WTException
- Throws:
WTException
synchronizeOtherRevaultableItemsFromDB
private static void synchronizeOtherRevaultableItemsFromDB(String vaultName,
long fileId)
throws WTException
- Throws:
WTException
synchronizeOtherRevaultableItemsFromJVM
private static void synchronizeOtherRevaultableItemsFromJVM(String vaultName,
long fileId)
getAllRevaultableItems
private static void getAllRevaultableItems()
throws WTException,
IOException,
WTPropertyVetoException
- Throws:
WTException
IOException
WTPropertyVetoException
executeQuery
private static ResultSet executeQuery(String sql)
throws WTException
- Throws:
WTException
executeUpdate
private static int executeUpdate(String sql)
throws WTException
- Throws:
WTException
executeSql
private static boolean executeSql(String sql)
throws WTException
- Throws:
WTException
writeDomTreeToFile
private static void writeDomTreeToFile(Node node,
PrintWriter out,
int level,
boolean indented)
getShift
private static String getShift(int level)
long2String
private static String long2String(long number)
string2Long
private static long string2Long(String fileName)
quickSort
private static void quickSort(Vector items)
quickSort
private static void quickSort(Vector fvItems,
int start,
int end)
partition
private static int partition(Vector fvItems,
int start,
int end)
pp
private static void pp(String s)