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

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

The page actually has a semi-hardcoded URL which it's talking to.  Line 27 
calls refreshState with stateURL and 'state' as parameters.  stateURL is 
defined on line 11, and uses some browser variables to always talk to the 
machine from which you fetched the page, but always fetches the same relative 
path.

In your case defining a second variable similar to stateURL would be useful.  
For example:  var lastUpdateURL = "http://"; + window.location.hostname + 
":8080/state/lastCalendarUpdate" or something similar.  To create this endpoint 
in Felix you will need to annotate a new method in StateRestService to 
@Path("lastCalendarUpdate"), and then the rest is in bog-standard Java :)

G

> 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