Package com.jalios.jstore.jsync
Class JSyncSettings
- java.lang.Object
-
- com.jalios.jstore.jsync.JSyncSettings
-
public class JSyncSettings extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JSyncSettings.Builder
-
Constructor Summary
Constructors Constructor Description JSyncSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeJoined()
boolean
canLeaderJoin()
java.io.File
getDownloadDir()
long
getDownloadInterval()
java.util.List<java.lang.String>
getExplicitReplicaList()
java.io.File
getFileDir()
java.io.File
getKnownReplicasFile()
java.lang.String
getLeaderUrl()
java.io.File
getLogDir()
int
getPartialUpdateInterval()
int
getRequestTimeout()
java.lang.String
getSharedSecret()
Store
getStore()
int
getUpdateRequestTimeout()
java.lang.String
getUrl()
boolean
isAutoUpdate()
boolean
isSyncFiles()
void
setAutoUpdate(boolean autoUpdate)
void
setCanBeJoined(boolean canBeJoined)
void
setCanLeaderJoin(boolean canLeaderJoin)
void
setDownloadDir(java.io.File downloadDir)
void
setDownloadInterval(long downloadInterval)
void
setExplicitReplicaList(java.util.List<java.lang.String> explicitReplicaList)
void
setFileDir(java.io.File fileDir)
void
setKnownReplicasFile(java.io.File knownReplicasFile)
void
setLeaderUrl(java.lang.String leaderUrl)
void
setLogDir(java.io.File logDir)
void
setPartialUpdateInterval(int partialUpdateInterval)
void
setRequestTimeout(int requestTimeout)
void
setSharedSecret(java.lang.String sharedSecret)
void
setStore(Store store)
void
setSyncFiles(boolean syncFiles)
void
setUpdateRequestTimeout(int updateRequestTimeout)
void
setUrl(java.lang.String url)
-
-
-
Method Detail
-
getStore
public Store getStore()
-
setStore
public void setStore(Store store)
-
getUrl
public java.lang.String getUrl()
-
setUrl
public void setUrl(java.lang.String url)
-
isSyncFiles
public boolean isSyncFiles()
-
setSyncFiles
public void setSyncFiles(boolean syncFiles)
-
canBeJoined
public boolean canBeJoined()
-
setCanBeJoined
public void setCanBeJoined(boolean canBeJoined)
-
canLeaderJoin
public boolean canLeaderJoin()
-
setCanLeaderJoin
public void setCanLeaderJoin(boolean canLeaderJoin)
-
isAutoUpdate
public boolean isAutoUpdate()
-
setAutoUpdate
public void setAutoUpdate(boolean autoUpdate)
-
getLogDir
public java.io.File getLogDir()
-
setLogDir
public void setLogDir(java.io.File logDir)
-
getFileDir
public java.io.File getFileDir()
-
setFileDir
public void setFileDir(java.io.File fileDir)
-
getDownloadDir
public java.io.File getDownloadDir()
-
setDownloadDir
public void setDownloadDir(java.io.File downloadDir)
-
getDownloadInterval
public long getDownloadInterval()
-
setDownloadInterval
public void setDownloadInterval(long downloadInterval)
-
getLeaderUrl
public java.lang.String getLeaderUrl()
-
setLeaderUrl
public void setLeaderUrl(java.lang.String leaderUrl)
-
getExplicitReplicaList
public java.util.List<java.lang.String> getExplicitReplicaList()
-
setExplicitReplicaList
public void setExplicitReplicaList(java.util.List<java.lang.String> explicitReplicaList)
-
getKnownReplicasFile
public java.io.File getKnownReplicasFile()
-
setKnownReplicasFile
public void setKnownReplicasFile(java.io.File knownReplicasFile)
-
getSharedSecret
public java.lang.String getSharedSecret()
-
setSharedSecret
public void setSharedSecret(java.lang.String sharedSecret)
-
getRequestTimeout
public int getRequestTimeout()
-
setRequestTimeout
public void setRequestTimeout(int requestTimeout)
-
getUpdateRequestTimeout
public int getUpdateRequestTimeout()
-
setUpdateRequestTimeout
public void setUpdateRequestTimeout(int updateRequestTimeout)
-
getPartialUpdateInterval
public int getPartialUpdateInterval()
-
setPartialUpdateInterval
public void setPartialUpdateInterval(int partialUpdateInterval)
-
-