uk.ac.ed.inf.ogsaconfig.garm.collections
Class Archive

java.lang.Object
  |
  +--uk.ac.ed.inf.ogsaconfig.garm.collections.ConcreteCollection
        |
        +--uk.ac.ed.inf.ogsaconfig.garm.collections.Archive
All Implemented Interfaces:
FileCollection
Direct Known Subclasses:
RemoteArchive, ZIPArchive

public abstract class Archive
extends ConcreteCollection

An archive is a concrete collection which is immutable. This is intended to reflect the usage properties of GARS within GARM: we may create a new archive, but we are unlikely to alter an existing one, for any number of reasons


Constructor Summary
Archive()
           
 
Method Summary
 VFile performAdd(VFile vfile)
          performAdd is the interface subclasses should use to perform any logic they need to do when a file is added to the collection.
 VFile performRemove(VFile vfile)
          performRemove is the interface subclasses should use to perform any logic they need when a file is removed from the collection.
 
Methods inherited from class uk.ac.ed.inf.ogsaconfig.garm.collections.ConcreteCollection
add, bases, contents, contents, destroy, includeAll, includeFile, remove, retrieve, root
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Archive

public Archive()
Method Detail

performAdd

public VFile performAdd(VFile vfile)
Description copied from class: ConcreteCollection
performAdd is the interface subclasses should use to perform any logic they need to do when a file is added to the collection.

Specified by:
performAdd in class ConcreteCollection
Parameters:
vfile - is the file that is being added
Returns:
is the new file that was actually added, or null

performRemove

public VFile performRemove(VFile vfile)
Description copied from class: ConcreteCollection
performRemove is the interface subclasses should use to perform any logic they need when a file is removed from the collection.

Specified by:
performRemove in class ConcreteCollection
Parameters:
vfile - is the file that is being added
Returns:
is the file that was actually removed, or null