apex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davidyan74 <...@git.apache.org>
Subject [GitHub] incubator-apex-core pull request: APEXCORE-330 : Stacktrace of the...
Date Mon, 02 May 2016 18:20:29 GMT
Github user davidyan74 commented on a diff in the pull request:

    https://github.com/apache/incubator-apex-core/pull/321#discussion_r61779278
  
    --- Diff: engine/src/main/java/com/datatorrent/stram/webapp/StramWebServices.java ---
    @@ -492,6 +494,42 @@ public JSONObject getContainer(@PathParam("containerId") String containerId)
thr
         return new JSONObject(objectMapper.writeValueAsString(ci));
       }
     
    +  @GET
    +  @Path(PATH_PHYSICAL_PLAN_CONTAINERS + "/{containerId}" + "/stackTrace")
    +  @Produces(MediaType.APPLICATION_JSON)
    +  public JSONObject getContainerStackTrace(@PathParam("containerId") String containerId)
throws Exception
    +  {
    +    init();
    +
    +    if (containerId.equals(System.getenv(ApplicationConstants.Environment.CONTAINER_ID.toString())))
{
    +      return new JSONObject(StackTrace.getJsonFormat());
    --- End diff --
    
    We will save the parsing of JSON here if getJsonFormat() returns a JSONObject.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message