Skip to content
Permalink
Browse files

Fix usage message for several Raft options.

  • Loading branch information...
archiecobbs committed Jun 18, 2019
1 parent 54be5c2 commit 7d664db95141aae123620a8c8e3fb584657aa8b9
Showing with 11 additions and 11 deletions.
  1. +11 −11 permazen-kv-raft/src/main/java/io/permazen/kv/raft/RaftKVImplementation.java
@@ -33,35 +33,35 @@ public RaftKVImplementation() {
return new String[][] {
{ "--raft directory",
"Use Raft key/value database in specified directory" },
{ "--raft-min-election-timeout",
{ "--raft-min-election-timeout timeout",
"Specify Raft minimum election timeout in ms (default " + RaftKVDatabase.DEFAULT_MIN_ELECTION_TIMEOUT + ")" },
{ "--raft-max-election-timeout",
{ "--raft-max-election-timeout timeout",
"Specify Raft maximum election timeout in ms (default " + RaftKVDatabase.DEFAULT_MAX_ELECTION_TIMEOUT + ")" },
{ "--raft-heartbeat-timeout",
{ "--raft-heartbeat-timeout timeout",
"Specify Raft leader heartbeat timeout in ms (default " + RaftKVDatabase.DEFAULT_HEARTBEAT_TIMEOUT + ")" },
{ "--raft-identity",
{ "--raft-identity identity",
"Specify Raft identity" },
{ "--raft-address address",
"Specify Specify local Raft node's IP address" },
{ "--raft-port",
{ "--raft-port port",
"Specify Specify local Raft node's TCP port (default " + RaftKVDatabase.DEFAULT_TCP_PORT + ")" },
{ "--raft-fallback statefile",
"Use Raft fallback database with specified state file" },
{ "--raft-fallback-check-interval",
{ "--raft-fallback-check-interval millis",
"Specify Raft fallback check interval in milliseconds (default " + FallbackTarget.DEFAULT_CHECK_INTERVAL + ")" },
{ "--raft-fallback-min-available",
{ "--raft-fallback-min-available millis",
"Specify Raft fallback min available time in milliseconds (default "
+ FallbackTarget.DEFAULT_MIN_AVAILABLE_TIME + ")" },
{ "--raft-fallback-min-unavailable",
{ "--raft-fallback-min-unavailable millis",
"Specify Raft fallback min unavailable time in milliseconds (default "
+ FallbackTarget.DEFAULT_MIN_UNAVAILABLE_TIME + ")" },
{ "--raft-fallback-check-timeout",
{ "--raft-fallback-check-timeout millis",
"Specify Raft fallback availability check TX timeout in milliseconds (default "
+ FallbackTarget.DEFAULT_TRANSACTION_TIMEOUT + ")" },
{ "--raft-fallback-unavailable-merge",
{ "--raft-fallback-unavailable-merge class",
"Specify Raft fallback unavailable merge strategy class name (default `"
+ OverwriteMergeStrategy.class.getName() + "')" },
{ "--raft-fallback-rejoin-merge",
{ "--raft-fallback-rejoin-merge class",
"Specify Raft fallback rejoin merge strategy class name (default `"
+ NullMergeStrategy.class.getName() + "')" },
};

0 comments on commit 7d664db

Please sign in to comment.
You can’t perform that action at this time.