public class ServerOptions extends AtomixOptions
| Modifier and Type | Field and Description |
|---|---|
static String |
ADDRESS |
static String |
CLIENT_ADDRESS |
static String |
COMPACTION_THREADS |
static String |
COMPACTION_THRESHOLD |
static String |
ELECTION_TIMEOUT |
static String |
HEARTBEAT_INTERVAL |
static String |
MAJOR_COMPACTION_INTERVAL |
static String |
MAX_ENTRIES_PER_SEGMENT |
static String |
MAX_SEGMENT_SIZE |
static String |
MAX_SNAPSHOT_SIZE |
static String |
MINOR_COMPACTION_INTERVAL |
static String |
RETAIN_STALE_SNAPSHOTS |
static String |
SERVER_ADDRESS |
static String |
SESSION_TIMEOUT |
static String |
STORAGE_DIRECTORY |
static String |
STORAGE_LEVEL |
static String |
TRANSPORT |
SEED, SERIALIZER| Constructor and Description |
|---|
ServerOptions(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
Address |
clientAddress()
Returns the server client address.
|
int |
compactionThreads()
Returns the number of storage compaction threads.
|
double |
compactionThreshold()
Returns the number of compaction threads.
|
Duration |
electionTimeout()
Returns the election timeout.
|
Duration |
heartbeatInterval()
Returns the heartbeat interval.
|
Duration |
majorCompactionInterval()
Returns the major compaction interval.
|
int |
maxEntriesPerSegment()
Returns the maximum number of entries per segment.
|
int |
maxSegmentSize()
Returns the maximum segment size in bytes.
|
int |
maxSnapshotSize()
Returns the maximum snapshot size in bytes.
|
Duration |
minorCompactionInterval()
Returns the minor compaction interval.
|
boolean |
retainStaleSnapshots()
Returns a boolean indicating whether to retain stale snapshots.
|
Address |
serverAddress()
Returns the server server address.
|
Duration |
sessionTimeout()
Returns the session timeout.
|
File |
storageDirectory()
Returns the storage directory.
|
StorageLevel |
storageLevel()
Returns the storage level.
|
Transport |
transport()
Returns the server transport.
|
serializer, serverspublic static final String TRANSPORT
public static final String ADDRESS
public static final String CLIENT_ADDRESS
public static final String SERVER_ADDRESS
public static final String ELECTION_TIMEOUT
public static final String HEARTBEAT_INTERVAL
public static final String SESSION_TIMEOUT
public static final String STORAGE_DIRECTORY
public static final String STORAGE_LEVEL
public static final String MAX_SEGMENT_SIZE
public static final String MAX_ENTRIES_PER_SEGMENT
public static final String MAX_SNAPSHOT_SIZE
public static final String RETAIN_STALE_SNAPSHOTS
public static final String COMPACTION_THREADS
public static final String MINOR_COMPACTION_INTERVAL
public static final String MAJOR_COMPACTION_INTERVAL
public static final String COMPACTION_THRESHOLD
public ServerOptions(Properties properties)
public Transport transport()
public Address clientAddress()
public Address serverAddress()
public Duration electionTimeout()
public Duration heartbeatInterval()
public Duration sessionTimeout()
public File storageDirectory()
public StorageLevel storageLevel()
public int maxSegmentSize()
public int maxEntriesPerSegment()
public int maxSnapshotSize()
public boolean retainStaleSnapshots()
public int compactionThreads()
public Duration minorCompactionInterval()
public Duration majorCompactionInterval()
public double compactionThreshold()
Copyright © 2013–2016. All rights reserved.