[
https://issues.apache.org/jira/browse/APEXCORE-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15272944#comment-15272944
]
ASF GitHub Bot commented on APEXCORE-451:
-----------------------------------------
Github user tushargosavi commented on a diff in the pull request:
https://github.com/apache/incubator-apex-core/pull/326#discussion_r62244008
--- Diff: engine/src/main/java/com/datatorrent/stram/cli/ApexCli.java ---
@@ -2963,7 +2964,7 @@ public void execute(String[] args, ConsoleReader
reader) throws Exception
String[] newArgs = new String[args.length - 1];
System.arraycopy(args, 1, newArgs, 0, args.length - 1);
GetOperatorClassesCommandLineInfo commandLineInfo =
getGetOperatorClassesCommandLineInfo(newArgs);
- String parentName = commandLineInfo.parent != null ?
commandLineInfo.parent : Operator.class.getName();
+ String parentName = commandLineInfo.parent != null ?
commandLineInfo.parent : DAG.GenericOperator.class.getName();
String files = expandCommaSeparatedFiles(commandLineInfo.args[0]);
--- End diff --
you can import DAG.GenericOperator, and use GenericOperator directly.
> get-app-package-operators in ApexCLI to contain "type" property to indicate
> operator or module
> -----------------------------------------------------------------------------------------------
>
> Key: APEXCORE-451
> URL: https://issues.apache.org/jira/browse/APEXCORE-451
> Project: Apache Apex Core
> Issue Type: New Feature
> Reporter: shubham pathak
> Assignee: shubham pathak
>
> Apex apps can contain both operators and modules. We would need an
> additional property in the response of get-app-package-operators to
> distinguish between the two.
> We can have a "type" property that will be enum of values
> e.g. "type" : "operator" to indicate operator
> "type" : "composite" to indicate a module
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)