wt.dataops.archive
Class Archiver

java.lang.Object
  extended bywt.dataops.archive.Archiver
All Implemented Interfaces:
Serializable, TransactionCommitListener, TransactionListener

public class Archiver
extends Object
implements TransactionCommitListener, Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  Archive archive
           
private  boolean archiveDispatched
           
private  File archiveFile
           
private  long archiveSize
           
(package private)  WTArchiveSystem archiveSystem
           
private static String CLASSNAME
           
private  CollectionCriteria criteria
           
private  RelationshipMap map
           
private  long numArchived
           
private  ArchiveResident remoteArchive
           
private static String RESOURCE
           
private static String TEMP_DIR
           
private static boolean VERBOSE
           
 
Constructor Summary
Archiver(Archive archive)
          

Supported API: false
 
Method Summary
private  void addCriteriaAndMapAsContent()
           
 ArchiveStatus archive(WTCollection archiveables)
          

Supported API: false
 void beforeCompletion()
          Notify that the commit of the transaction is about to complete.
private  void cleanup()
           
private  ArchiveStatus createArchive(Archiveable[] archiveables)
           
private  void dispatchArchive()
           
 void finishTransaction()
          Notify that all of the transaction's work has been completed and any remaining work should now be performed.
 Archive getArchive()
          Gets the value of the attribute: archive.
 boolean isArchiveDispatched()
           
 void notifyCommit()
          Notify that the commit of the transaction completed.
 void notifyRollback()
          Notify that the rollback of the transaction completed.
 void setArchive(Archive a_Archive)
          Sets the value of the attribute: archive.
 void setCriteriaAndMap(CollectionCriteria criteria, RelationshipMap map)
           
private  void updateArchive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

archive

private Archive archive

archiveSize

private long archiveSize

archiveFile

private File archiveFile

numArchived

private long numArchived

remoteArchive

private ArchiveResident remoteArchive

VERBOSE

private static final boolean VERBOSE

archiveSystem

WTArchiveSystem archiveSystem

TEMP_DIR

private static String TEMP_DIR

archiveDispatched

private boolean archiveDispatched

criteria

private CollectionCriteria criteria

map

private RelationshipMap map
Constructor Detail

Archiver

public Archiver(Archive archive)
         throws WTException


Supported API: false

Parameters:
archive -
Throws:
WTException
Method Detail

getArchive

public Archive getArchive()
Gets the value of the attribute: archive.

Supported API: false

Returns:
Archive

setArchive

public void setArchive(Archive a_Archive)
                throws WTPropertyVetoException
Sets the value of the attribute: archive.

Supported API: false

Parameters:
a_Archive -
Throws:
WTPropertyVetoException

archive

public ArchiveStatus archive(WTCollection archiveables)
                      throws WTException


Supported API: false

Parameters:
archiveables -
Returns:
ArchiveStatus
Throws:
WTException

createArchive

private ArchiveStatus createArchive(Archiveable[] archiveables)
                             throws WTException
Parameters:
archiveables -
Returns:
ArchiveStatus
Throws:
WTException

dispatchArchive

private void dispatchArchive()
                      throws WTException
Throws:
WTException

cleanup

private void cleanup()

finishTransaction

public void finishTransaction()
                       throws WTException
Notify that all of the transaction's work has been completed and any remaining work should now be performed. This work will be included within the same transaction.

Supported API: false

Specified by:
finishTransaction in interface TransactionCommitListener
Throws:
WTException

beforeCompletion

public void beforeCompletion()
                      throws WTException
Notify that the commit of the transaction is about to complete. This method should only validate the current work performed by the transaction. No INSERT, UPDATE or DELETE operations should occur, either directly or indirectly.

Supported API: false

Specified by:
beforeCompletion in interface TransactionCommitListener
Throws:
WTException

notifyCommit

public void notifyCommit()
Notify that the commit of the transaction completed.

Supported API: false

Specified by:
notifyCommit in interface TransactionListener

notifyRollback

public void notifyRollback()
Notify that the rollback of the transaction completed.

Supported API: false

Specified by:
notifyRollback in interface TransactionListener

updateArchive

private void updateArchive()
                    throws WTException
Throws:
WTException

addCriteriaAndMapAsContent

private void addCriteriaAndMapAsContent()
                                 throws WTException
Throws:
WTException

setCriteriaAndMap

public void setCriteriaAndMap(CollectionCriteria criteria,
                              RelationshipMap map)

isArchiveDispatched

public boolean isArchiveDispatched()