Package lumis.portal.webfilereplication
Class AbstractFileReplicator
- java.lang.Object
-
- lumis.portal.webfilereplication.AbstractFileReplicator
-
- All Implemented Interfaces:
IFileReplicator
- Direct Known Subclasses:
FTPFileReplicator
,LocalFileReplicator
public abstract class AbstractFileReplicator extends java.lang.Object implements IFileReplicator
Abstract implementation for file replicators.- Since:
- 6.0.0
- Version:
- $Revision: 13093 $ $Date: 2011-05-28 18:40:18 -0300 (Sat, 28 May 2011) $
-
-
Constructor Summary
Constructors Constructor Description AbstractFileReplicator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Allows the replicator to complete pending operation and free any used resources.WebFileReplication
getWebFileReplication()
Returns the WebFileReplication with the information of the target repository.void
initialize()
Initializes this file replicator.void
setWebFileReplication(WebFileReplication replication)
Provides replication information.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.webfilereplication.IFileReplicator
delete, write
-
-
-
-
Method Detail
-
initialize
public void initialize() throws FileReplicationException
Description copied from interface:IFileReplicator
Initializes this file replicator.- Specified by:
initialize
in interfaceIFileReplicator
- Throws:
FileReplicationException
- if a problem prevents the file replication to be done.
-
dispose
public void dispose() throws FileReplicationException
Description copied from interface:IFileReplicator
Allows the replicator to complete pending operation and free any used resources.After this method is called, the replicator will not be used anymore, unless it is reinitialized.
- Specified by:
dispose
in interfaceIFileReplicator
- Throws:
FileReplicationException
- if a problem prevents pending file replications to be done. Even if this exception is thrown, the replicator must free any allocated resource.
-
setWebFileReplication
public void setWebFileReplication(WebFileReplication replication)
Description copied from interface:IFileReplicator
Provides replication information.- Specified by:
setWebFileReplication
in interfaceIFileReplicator
- Parameters:
replication
- the WebFileReplication that contains information about the next replication to be processed.
-
getWebFileReplication
public WebFileReplication getWebFileReplication()
Returns the WebFileReplication with the information of the target repository.- Returns:
- the WebFileReplication with the information of the target repository.
- Since:
- 6.0.0
-
-