apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (APEXCORE-451) get-app-package-operators in ApexCLI to contain "type" property to indicate operator or module
Date Thu, 05 May 2016 19:35:12 GMT

    [ https://issues.apache.org/jira/browse/APEXCORE-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15272925#comment-15272925
] 

ASF GitHub Bot commented on APEXCORE-451:
-----------------------------------------

Github user davidyan74 commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-core/pull/326#discussion_r62241801
  
    --- Diff: engine/src/main/java/com/datatorrent/stram/webapp/OperatorDiscoverer.java ---
    @@ -526,6 +544,17 @@ public JSONObject describeOperator(String clazz) throws Exception
             response.put(PORT_TYPE_INFO_KEY, portTypeInfo);
             response.put("inputPorts", inputPorts);
             response.put("outputPorts", outputPorts);
    +        String type = null;
    +        Class<?> genericOperator = classLoader.loadClass(clazz);
    +        if (Module.class.isAssignableFrom(genericOperator)) {
    +          type = GenericOperatorType.MODULE.getType();
    +        }
    +        if (Operator.class.isAssignableFrom(genericOperator)) {
    --- End diff --
    
    else if?


> 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)

Mime
View raw message