|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.webfilereplication.AbstractFileReplicator lumis.portal.webfilereplication.LocalFileReplicator
public class LocalFileReplicator
File replicator that interacts with a target repository in the local file system.
Constructor Summary | |
---|---|
LocalFileReplicator()
|
Method Summary | |
---|---|
void |
delete(PortalFile file)
Removes a file or directory from the replication destination. |
void |
initialize()
Initializes this file replicator. |
void |
write(PortalFile file)
Writes a file or directory on the replication destination. |
Methods inherited from class lumis.portal.webfilereplication.AbstractFileReplicator |
---|
dispose, getWebFileReplication, setWebFileReplication |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalFileReplicator()
Method Detail |
---|
public void initialize() throws FileReplicationException
IFileReplicator
initialize
in interface IFileReplicator
initialize
in class AbstractFileReplicator
FileReplicationException
- if a problem prevents the file
replication to be done.public void write(PortalFile file) throws FileReplicationException
IFileReplicator
If the given file is a directory
,
this operation must create the corresponding directory in the
destination if it does not already exist.
If the given file is a normal file
,
this operation must create the corresponding file in the destination,
with the same contents, overwriting the file if it already exists.
This operation must create any non-existant parent directories necessary for creating the corresponding directory/file in the destination.
This write operation need not to be completed when this method returns,
but it must be completed before the next call to IFileReplicator.dispose()
returns.
file
- the corresponding file in the portal file system.
FileReplicationException
- if a problem prevents the file
replication to be done.public void delete(PortalFile file) throws FileReplicationException
IFileReplicator
If the given file is a directory and it is not empty at the destination, this operation should fail throwing FileReplicationException.
If the corresponding file in the destination does not exist, this operation must be a no-op and complete gracefully.
This delete operation need not to be completed when this method returns,
but it must be completed before the next call to IFileReplicator.dispose()
returns.
file
- the corresponding file in the portal file system.
FileReplicationException
- if a problem prevents the file
replication to be done.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |