lumis.portal.webfilereplication
Class AbstractFileReplicator

Package class diagram package AbstractFileReplicator
java.lang.Object
  extended by lumis.portal.webfilereplication.AbstractFileReplicator
All Implemented Interfaces:
IFileReplicator
Direct Known Subclasses:
FTPFileReplicator, LocalFileReplicator

public abstract class AbstractFileReplicator
extends Object
implements IFileReplicator

Abstract implementation for file replicators.

Since:
6.0.0

Constructor Summary
AbstractFileReplicator()
           
 
Method Summary
 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
 

Constructor Detail

AbstractFileReplicator

public AbstractFileReplicator()
Method Detail

initialize

public void initialize()
                throws FileReplicationException
Description copied from interface: IFileReplicator
Initializes this file replicator.

Specified by:
initialize in interface IFileReplicator
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 interface IFileReplicator
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 interface IFileReplicator
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


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.