Package io.hekate.cluster.seed.fs
Class FsSeedNodeProviderConfig
- java.lang.Object
-
- io.hekate.cluster.seed.fs.FsSeedNodeProviderConfig
-
public class FsSeedNodeProviderConfig extends Object
Configuration forFsSeedNodeProvider
.
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_CLEANUP_INTERVAL
Default value (=60000L) forsetCleanupInterval(long)
.
-
Constructor Summary
Constructors Constructor Description FsSeedNodeProviderConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCleanupInterval()
Returns the time interval in milliseconds between stale node cleanup runs (seesetCleanupInterval(long)
).File
getWorkDir()
Returns the work directory for seed node provider to store its files (seesetWorkDir(File)
).void
setCleanupInterval(long cleanupInterval)
Sets the time interval in milliseconds between stale node cleanup runs.void
setWorkDir(File workDir)
Sets the work directory for seed node provider to store its files.String
toString()
FsSeedNodeProviderConfig
withCleanupInterval(long cleanupInterval)
Fluent-style version ofsetCleanupInterval(long)
.FsSeedNodeProviderConfig
withWorkDir(File workDir)
Fluent-style version ofsetWorkDir(File)
.
-
-
-
Field Detail
-
DEFAULT_CLEANUP_INTERVAL
public static final long DEFAULT_CLEANUP_INTERVAL
Default value (=60000L) forsetCleanupInterval(long)
.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCleanupInterval
public long getCleanupInterval()
Returns the time interval in milliseconds between stale node cleanup runs (seesetCleanupInterval(long)
).- Returns:
- Time interval in milliseconds.
-
setCleanupInterval
public void setCleanupInterval(long cleanupInterval)
Sets the time interval in milliseconds between stale node cleanup runs.Default value of this parameter is 60000L.
For more details please see the documentation of
SeedNodeProvider
.- Parameters:
cleanupInterval
- Time interval in milliseconds.- See Also:
SeedNodeProvider.cleanupInterval()
-
withCleanupInterval
public FsSeedNodeProviderConfig withCleanupInterval(long cleanupInterval)
Fluent-style version ofsetCleanupInterval(long)
.- Parameters:
cleanupInterval
- Time interval in milliseconds.- Returns:
- This instance.
-
getWorkDir
public File getWorkDir()
Returns the work directory for seed node provider to store its files (seesetWorkDir(File)
).- Returns:
- Work directory.
-
setWorkDir
public void setWorkDir(File workDir)
Sets the work directory for seed node provider to store its files. If directory doesn't exist then it will be automatically created during the seed node provider initialization.This parameter is mandatory and doesn't have a default value.
- Parameters:
workDir
- Work directory.
-
withWorkDir
public FsSeedNodeProviderConfig withWorkDir(File workDir)
Fluent-style version ofsetWorkDir(File)
.- Parameters:
workDir
- Work directory.- Returns:
- This instance.
-
-