geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinmeil...@apache.org
Subject incubator-geode git commit: GEODE-745: add include-locator parameter in the command
Date Wed, 08 Jun 2016 21:56:47 GMT
Repository: incubator-geode
Updated Branches:
  refs/heads/develop e4994c7b3 -> 7fb8a39b9


GEODE-745: add include-locator parameter in the command

This closes #153


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/7fb8a39b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/7fb8a39b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/7fb8a39b

Branch: refs/heads/develop
Commit: 7fb8a39b99a6418dfb022dd344ef374baf7c146e
Parents: e4994c7
Author: gmeilen <gracemeilen@gmail.com>
Authored: Wed Jun 8 11:14:30 2016 -0700
Committer: Jinmei Liao <jiliao@pivotal.io>
Committed: Wed Jun 8 14:56:26 2016 -0700

----------------------------------------------------------------------
 .../web/controllers/MiscellaneousCommandsController.java         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/7fb8a39b/geode-core/src/main/java/com/gemstone/gemfire/management/internal/web/controllers/MiscellaneousCommandsController.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/management/internal/web/controllers/MiscellaneousCommandsController.java
b/geode-core/src/main/java/com/gemstone/gemfire/management/internal/web/controllers/MiscellaneousCommandsController.java
index a6c9708..3b1b754 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/management/internal/web/controllers/MiscellaneousCommandsController.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/management/internal/web/controllers/MiscellaneousCommandsController.java
@@ -208,9 +208,11 @@ public class MiscellaneousCommandsController extends AbstractCommandsController
 
   @RequestMapping(method = RequestMethod.POST, value = "/shutdown")
   @ResponseBody
-  public String shutdown(@RequestParam(value = CliStrings.SHUTDOWN__TIMEOUT, defaultValue
= "-1") final Integer timeout) {
+  public String shutdown(@RequestParam(value = CliStrings.SHUTDOWN__TIMEOUT, defaultValue
= "-1") final Integer timeout,
+                         @RequestParam(value = CliStrings.INCLUDE_LOCATORS, defaultValue
= "false") final boolean includeLocators) {
     CommandStringBuilder command = new CommandStringBuilder(CliStrings.SHUTDOWN);
     command.addOption(CliStrings.SHUTDOWN__TIMEOUT, String.valueOf(timeout));
+    command.addOption(CliStrings.INCLUDE_LOCATORS, String.valueOf(includeLocators));
     return processCommand(command.toString());
   }
 


Mime
View raw message