org.LexGrid.LexBIG.Impl.dataAccess
Class CleanUpUtility

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.dataAccess.CleanUpUtility

public class CleanUpUtility
extends java.lang.Object

This class implements methods useful for cleaning up orphaned databases and indexes.

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Dan Armbrust, Jesse Erdmann

Constructor Summary
CleanUpUtility()
           
 
Method Summary
protected static LgLoggerIF getLogger()
           
static java.lang.String[] listUnusedDatabases()
           
static java.lang.String[] listUnusedIndexes()
           
static java.lang.String[] removeAllUnusedDatabases()
           
static java.lang.String[] removeAllUnusedIndexes()
           
static void removeAllUnusedResources()
           
static void removeUnusedDatabase(java.lang.String dbName)
           
static void removeUnusedIndex(java.lang.String index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CleanUpUtility

public CleanUpUtility()
Method Detail

getLogger

protected static LgLoggerIF getLogger()

listUnusedDatabases

public static java.lang.String[] listUnusedDatabases()
                                              throws LBInvocationException
Throws:
LBInvocationException

listUnusedIndexes

public static java.lang.String[] listUnusedIndexes()
                                            throws LBParameterException,
                                                   LBInvocationException
Throws:
LBParameterException
LBInvocationException

removeAllUnusedResources

public static void removeAllUnusedResources()
                                     throws LBParameterException,
                                            LBInvocationException
Throws:
LBParameterException
LBInvocationException

removeAllUnusedIndexes

public static java.lang.String[] removeAllUnusedIndexes()
                                                 throws LBParameterException,
                                                        LBInvocationException
Throws:
LBParameterException
LBInvocationException

removeAllUnusedDatabases

public static java.lang.String[] removeAllUnusedDatabases()
                                                   throws LBParameterException,
                                                          LBInvocationException
Throws:
LBParameterException
LBInvocationException

removeUnusedIndex

public static void removeUnusedIndex(java.lang.String index)
                              throws LBParameterException,
                                     LBInvocationException
Throws:
LBParameterException
LBInvocationException

removeUnusedDatabase

public static void removeUnusedDatabase(java.lang.String dbName)
                                 throws LBParameterException,
                                        LBInvocationException
Throws:
LBParameterException
LBInvocationException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.