uk.ac.ed.inf.ogsaconfig.garm
Class GARM

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.GARM

public abstract class GARM
extends java.lang.Object

GARM is the central class that all tools in the GARM suite can make use of. It holds configuration norms as well as the necessary globally available resources, such as reference spaces and archive makers


Constructor Summary
GARM()
           
 
Method Summary
static void cleanup()
          Frees all references used by GARM and ensures state is saved to disk
static ArchiveMaker getArchiveMaker()
          Returns the archive maker used by this invocation of GARM
static ReferenceSpace getReferenceSpace()
          Returns the reference space used by this invocation of GARM
static java.net.URL getRepository()
          Returns the repository that GARM tools should use
static java.io.File getShareDir()
           
static java.io.File getVarDir()
           
static java.lang.String getVersion()
          Returns the current GARM version
static boolean install(FileCollection sourceCollection, FileCollection destCollection)
          Utility method to install one file collection on another
static boolean install(java.lang.String source, java.lang.String dest)
          Utility method to install one collection on another
static void setRepository(java.net.URL repository)
          Sets the repository used by GARM to the given value
static boolean uninstall(FileCollection sourceCollection, FileCollection destCollection)
          Uninstalls one collection from another
static boolean uninstall(java.lang.String source, java.lang.String dest)
          Uninstalls one collection from another
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GARM

public GARM()
Method Detail

getShareDir

public static java.io.File getShareDir()

getVarDir

public static java.io.File getVarDir()

cleanup

public static void cleanup()
Frees all references used by GARM and ensures state is saved to disk


setRepository

public static void setRepository(java.net.URL repository)
Sets the repository used by GARM to the given value


getRepository

public static java.net.URL getRepository()
Returns the repository that GARM tools should use


getReferenceSpace

public static ReferenceSpace getReferenceSpace()
Returns the reference space used by this invocation of GARM


getArchiveMaker

public static ArchiveMaker getArchiveMaker()
Returns the archive maker used by this invocation of GARM


getVersion

public static java.lang.String getVersion()
Returns the current GARM version


install

public static boolean install(java.lang.String source,
                              java.lang.String dest)
Utility method to install one collection on another


install

public static boolean install(FileCollection sourceCollection,
                              FileCollection destCollection)
Utility method to install one file collection on another


uninstall

public static boolean uninstall(java.lang.String source,
                                java.lang.String dest)
Uninstalls one collection from another


uninstall

public static boolean uninstall(FileCollection sourceCollection,
                                FileCollection destCollection)
Uninstalls one collection from another