Navigation Menu

Skip to content

Commit

Permalink
Add "--target-role" option to specify "targetRole" of the envelope
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 29, 2015
1 parent 8aac6da commit 5126472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/droonga/client.rb
Expand Up @@ -30,6 +30,7 @@ class Client
DEFAULT_PORT = 10031
DEFAULT_TAG = "droonga"
DEFAULT_DATASET = "Default"
DEFAULT_TARGET_ROLE = "any"
DEFAULT_TIMEOUT_SECONDS = 3

attr_writer :on_error
Expand Down
3 changes: 3 additions & 0 deletions lib/droonga/command/base.rb
Expand Up @@ -50,6 +50,9 @@ def parse_options(&block)
option.on("receiver-host=",
"Host name of this host.",
:default => Client::DEFAULT_HOST)
option.on("target-role=",
"Role of engine nodes which should receive the message.",
:default => Client::DEFAULT_TARGET_ROLE)
option.on("timeout=",
"Time to terminate unresponsive connections (in seconds).",
:default => Client::DEFAULT_TIMEOUT_SECONDS)
Expand Down

0 comments on commit 5126472

Please sign in to comment.