Repository: incubator-apex-core Updated Branches: refs/heads/master 470bdeb27 -> 264a4f3a4
APEXCORE-355 #resolve renamed list-*-attributes commands so that they are more intuitive Project: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/commit/3efd6590 Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/tree/3efd6590 Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/diff/3efd6590 Branch: refs/heads/master Commit: 3efd65900bd495efd6aa43ffa751a0579da21804 Parents: b81468c Author: David Yan <[email protected]> Authored: Wed Feb 24 15:08:24 2016 -0800 Committer: David Yan <[email protected]> Committed: Wed Feb 24 15:08:24 2016 -0800 ---------------------------------------------------------------------- .../main/java/com/datatorrent/stram/cli/DTCli.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-apex-core/blob/3efd6590/engine/src/main/java/com/datatorrent/stram/cli/DTCli.java ---------------------------------------------------------------------- diff --git a/engine/src/main/java/com/datatorrent/stram/cli/DTCli.java b/engine/src/main/java/com/datatorrent/stram/cli/DTCli.java index 0bd20fa..8a8aa9d 100644 --- a/engine/src/main/java/com/datatorrent/stram/cli/DTCli.java +++ b/engine/src/main/java/com/datatorrent/stram/cli/DTCli.java @@ -641,12 +641,12 @@ public class DTCli new Arg[]{new FileArg("app-package-file"), new Arg("operator-class")}, null, "Get operator properties within the given app package")); - globalCommands.put("list-application-attributes", new CommandSpec(new ListAttributesCommand(AttributesType.APPLICATION), - null, null, "Lists the application attributes")); - globalCommands.put("list-operator-attributes", new CommandSpec(new ListAttributesCommand(AttributesType.OPERATOR), - null, null, "Lists the operator attributes")); - globalCommands.put("list-port-attributes", new CommandSpec(new ListAttributesCommand(AttributesType.PORT), null, null, - "Lists the port attributes")); + globalCommands.put("list-default-app-attributes", new CommandSpec(new ListDefaultAttributesCommand(AttributesType.APPLICATION), + null, null, "Lists the default application attributes")); + globalCommands.put("list-default-operator-attributes", new CommandSpec(new ListDefaultAttributesCommand(AttributesType.OPERATOR), + null, null, "Lists the default operator attributes")); + globalCommands.put("list-default-port-attributes", new CommandSpec(new ListDefaultAttributesCommand(AttributesType.PORT), + null, null, "Lists the default port attributes")); // // Connected command specification starts here @@ -3807,11 +3807,11 @@ public class DTCli APPLICATION, OPERATOR, PORT } - private class ListAttributesCommand implements Command + private class ListDefaultAttributesCommand implements Command { private final AttributesType type; - protected ListAttributesCommand(@NotNull AttributesType type) + protected ListDefaultAttributesCommand(@NotNull AttributesType type) { this.type = Preconditions.checkNotNull(type); }
