public class FileFetcher extends java.lang.Object implements java.lang.Runnable, JSyncConstants
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REVISION |
SC_BAD_ADDRESS, SC_BAD_LEADER, SC_BAD_MESSAGE, SC_INTERNAL_SERVER_ERROR, SC_JOIN_REJECTED, SC_LEADER_CANNOT_JOIN, SC_NO_ACK, SC_NO_SEND, SC_OK, SC_UNKNOWN, SC_UNKNOWN_URID, SC_URID_ALREADY_ADDED, STATUS_LEADER, STATUS_LONE, STATUS_MEMBER, STATUS_SUBLEADERCRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR| Constructor and Description |
|---|
FileFetcher(JSyncReplica jsyncReplica,
java.io.File tgtDir,
java.io.File downloadDir,
long downloadInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDownloadFile(java.util.Set<FileEntry> fileSet,
java.lang.String urid)
Add new file to download
|
void |
close()
Terminate this file fetcher and its thread.
|
void |
run() |
public static final java.lang.String REVISION
public FileFetcher(JSyncReplica jsyncReplica, java.io.File tgtDir, java.io.File downloadDir, long downloadInterval)
public void addDownloadFile(java.util.Set<FileEntry> fileSet, java.lang.String urid)
fileSet - a set of FileEntry to downloadurid - the urid of the sendpublic void run()
run in interface java.lang.Runnablepublic void close()
Copyright © 2001-2017 Jalios SA. All Rights Reserved.