[ 
http://opencast.jira.com/browse/MH-6467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24865#comment-24865
 ] 

Greg Logan commented on MH-6467:
--------------------------------

You are going about this the wrong way: the javascript needs to request the 
information from Felix.  An example of this is in 
/modules/matterhorn-capture-agent-impl/src/resources/ui/index.html, 
specifically the refreshState function, which is querying the rest endpoint 
created by the getState function in 
/modules/matterhorn-capture/agent-impl/src/main/java/org/opencastproject/capture/endpoint/StateRestService.java.

Currently the agent does not store the last time it was updated, we'll need to 
create a variable to store that in 
/modules/matterhorn-capture-agent-impl/src/main/java/org/opencastproject/capture/impl/SchedulerImpl.java.
  Exposing this via an endpoint is more complicated because SchedulerImpl 
doesn't have an endpoint class.  I would add an endpoint (see getState above) 
in the StateRestService class which queries the StateRestService (actually 
CaptureAgentImpl, you'll have to add a function in the StateService api class 
in matterhorn-capture-agent-api).  Then in CaptureAgentImpl you will have to 
implement that function, and in that function you can query the variable from 
the SchedulerImpl variable that CaptureAgentImpl is keeping track of.

It's complicated, but it's the only option without refactoring the entire CA 
code base.

> Show last updated status on /capture
> ------------------------------------
>
>                 Key: MH-6467
>                 URL: http://opencast.jira.com/browse/MH-6467
>             Project: Matterhorn Project
>          Issue Type: Sub-Task
>          Components: Capture (Devices and Software)
>    Affects Versions: 1.1.x (branch)
>            Reporter: Christopher Brooks
>            Assignee: Claud Wang
>             Fix For: 1.2
>
>
> It would be good to show the following information on the main capture agent 
> page:
> 1. When the capture agent was last updated
> 2. Whether the last update attempt failed or succeeded
> 3. When the next scheduling attempt will be made
> Greg logan can provide information about how the capture agent scheduling 
> works

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

        
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to