[
https://issues.apache.org/jira/browse/OODT-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994858#comment-12994858
]
Paul Ramirez commented on OODT-139:
-----------------------------------
Suggestion to update documentation. Let me know if you like the format and I'll
do it for the rest of the ones listed above.
h3. Slice a job processing status by state
----
h4.Endpoint:
{noformat}
http://host/pcs-services/services/health/report/jobs/{state}
{noformat}
h4.HTTP Request
*Method:* GET
*Parameters:*
||Name||Placement||Type||Description||
|state|path|Enum|Values range from ["STARTED", "FINISHED", "PAUSED", "RSUBMIT",
"QUEUED"]. There may be extended states but these are a list of the basic ones.
Extended ones would be passed in the same manner.|
h4.HTTP Response
h5.Valid
Status: 200 OK
*JSON*
{noformat}
{
"report":{
"generated":"2011-02-15T08:09:24.225-0800",
"jobHealth":[
{
"state":"QUEUED",
"numJobs":0
}
]
}
}
{noformat}
h4.Example(s):
To display the number of jobs that are in the QUEUED state
{noformat}
http://host/pcs-services/services/health/report/jobs/QUEUED
{noformat}
> 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