On May 27, 2011, at 2:11 AM, Pawel Fic wrote:
>
> Hi,
> I want to develop a C++ capture agent. I need API for capture agent, capture
> admin, and whatever will be needed.
>
> I have a brief description of REST endpoints, that is available on the front
> page of Matterhorn after it is installed.
>
> Right now I do a live debugging of whatever demo capture agent is talking to
> Matterhorn.
The services involved are scheduling, capture-admin, and ingest, but *not*
/captureagent.. this last service is provided by the Matterhorn capture agent,
but is not a required part of the agent/server communication.
>
> ---------
> Other than C++ capture agent, I would love to have a demo capture agent that
> is separate to Matterhorn (it can be Java).
Matterhorn's build system allows you to build different kinds of machines. For
instance, if you build using "mvn -Pcapture -DdeployTo=..." you'll build the
capture profile. If you build this on a separate machine, you'll have a
dedicated capture agent to go with your server, and if configured properly,
you'll be able to schedule both the server's demo capture agent and the real
agent running on a separate machine.
>
> ----------
> Please let me know if the Community is interested in separating a demo
> capture agent from Matterhorn server itself.
> For me it looks like interesting feature - I would enable demonstrating
> Matterhorn to third parties.
>
> "Here I install the server, and I got the server running, and here: I have a
> client - A capture agent." [BTW: technically capture agent is also a server -
> for firewall/installation purpose it would be much better to have capture
> agent being a 100% client of Matterhorn server]
This is in fact the design. The agent is not required to be a server at all.
By making it one, though, we can connect to it via a browser to check its
status, etc. It's more of a convenience than a requirement.
>
>
> -if separate demo capture agent, or documentation of API does not exists yet
> and somebody from MH development team would like to see it done - I'll do it
> - otherwise I will have to do it myself for me only - and I assume my work
> will go to trash sooner or later - and I do not want this.
>
> The pros for Matterhorn from the API and Separate Demo Capture agent are:
>
> 1.
> students / volunteers - will have an option to develop capture agent.
>
> 2.
> having own capture agent - universities will install / contribute to
> Matterhorn server.
>
> 3.
> It will be much easier to present Matterhorn.
>
>
> --Right now, it kills me, that demo capture agent is a part of the server,
> and I cannot start it in separate terminals.
>
If you want to run a second JVM on the same machine, you can run a capture
agent and a server on the same box. To do so, try this:
1) Install a second felix at another path.
2) Build using the capture profile (see above) and deploy to this second
felix's "matterhorn" directory
3) Configure the capture agent felix installation:
a) set the port to something other than 8080 in config.properties.
Both the org.osgi.service.http.port and org.opencastproject.server.url values
must be set.
b) set the org.opencastproject.storage.dir property in
config.properties to two different paths in the two felix installations
c) configure the capture agent to register with the server by setting
the "org.opencastproject.capture.core.url" property in
$CAPTURE_AGENT_FELIX/conf/services/org.opencastproject.capture.impl.ConfigurationManager.properties.
The comments in that file will help explain what this property means.
I may have missed something, but that should get you started.
Josh
>
> -Pawel
>
> _______________________________________________
> Matterhorn mailing list
> [email protected]
> http://lists.opencastproject.org/mailman/listinfo/matterhorn
>
>
> To unsubscribe please email
> [email protected]
> _______________________________________________
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________