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

Andrew Hart commented on OODT-139:
----------------------------------

the HealthResource service at /health/report/crawlers currently uses JSON 
object notation to represent a list of crawler statuses. In other parts of the 
service, though, (e.g.: listing latest files, job statuses), lists are 
expressed using array notation. It might be more consistent to use array 
notation here too. I'm attaching a patch (OODT-139.Hart.20110216.patch.txt) 
which will implement this. It changes the output of:

/health/report/crawlers
{noformat}
{"report": {"crawlerStatus":{ 
  "Crawler1" : 
{"status":"DOWN","crawlerName":"Crawler1","crawlerPort":"9020","url":"localhost"}},"generated":"2011-02-16T06:18:49.263-0800"},
  "Crawler2" : 
{"status":"DOWN","crawlerName":"Crawler2","crawlerPort":"9021","url":"localhost"}},"generated":"2011-02-16T06:18:49.263-0800"},
  "Crawler3" : 
{"status":"DOWN","crawlerName":"Crawler3","crawlerPort":"9022","url":"localhost"}},"generated":"2011-02-16T06:18:49.263-0800"}
}
{noformat}

to:

/health/report/crawlers
{noformat}
{"report": {"crawlerStatus": [
  
{"status":"DOWN","crawlerName":"Crawler1","crawlerPort":"9020","url":"localhost"},
  
{"status":"DOWN","crawlerName":"Crawler2","crawlerPort":"9021","url":"localhost"},
  
{"status":"DOWN","crawlerName":"Crawler3","crawlerPort":"9022","url":"localhost"},
  ],"generated":"2011-02-16T06:18:49.263-0800"}
}
{noformat}


Note that this change does not effect the functionality of 
/health/report/crawlers/CrawlerName.

> PCS JAX-RS services
> -------------------
>
>                 Key: OODT-139
>                 URL: https://issues.apache.org/jira/browse/OODT-139
>             Project: OODT
>          Issue Type: New Feature
>          Components: pcs
>            Reporter: Chris A. Mattmann
>            Assignee: Chris A. Mattmann
>              Labels: jaxrs, jsr311, pcs
>             Fix For: 0.3
>
>         Attachments: OODT-139.Mattmann.021311.patch.txt, 
> OODT-139.Mattmann.021411.2.patch.txt, OODT-139.Mattmann.021411.patch.txt
>
>
> Now that the PCS core is contributed, it would be great to not just have 
> command line versions and APIs for tools like pcs_stat, pcstrace and pcs_ll. 
> We should expose them over JAX-RS so that webapps can easily take advantage 
> of PCS services.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to