|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.SettingsFactory<RemoteFile> dk.netarkivet.common.distribute.RemoteFileFactory
public class RemoteFileFactory
Factory for creating remote files.
Constructor Summary | |
---|---|
RemoteFileFactory()
|
Method Summary | |
---|---|
static RemoteFile |
getCopyfileInstance(java.io.File file)
Same as getInstance(file, false, false, false). |
static RemoteFile |
getDistributefileInstance(java.io.File file)
Same as getInstance(file, false, false, false). |
static RemoteFile |
getInstance(java.io.File file,
boolean useChecksums,
boolean fileDeletable,
boolean multipleDownloads)
Create a remote file that handles the transport of the remote file data. |
static RemoteFile |
getMovefileInstance(java.io.File file)
Same as getInstance(file, false, true, false). |
Methods inherited from class dk.netarkivet.common.utils.SettingsFactory |
---|
getInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteFileFactory()
Method Detail |
---|
public static RemoteFile getInstance(java.io.File file, boolean useChecksums, boolean fileDeletable, boolean multipleDownloads)
file
- The File object to make accessable on another machineuseChecksums
- Whether transfers should be doublechecked with
checksums. Added value is access to checksum of objects.fileDeletable
- If true, the local file will be deleted when it is
no longer needed.multipleDownloads
- Whether this file should be allowed to be
transferred more than once.
public static RemoteFile getMovefileInstance(java.io.File file)
file
- The file to move to another computer.public static RemoteFile getCopyfileInstance(java.io.File file)
file
- The file to copy to another computer.public static RemoteFile getDistributefileInstance(java.io.File file)
file
- The file to copy to another computer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |