Skip to content

Commit

Permalink
Updated OEDL App defs
Browse files Browse the repository at this point in the history
  • Loading branch information
thierryr committed Feb 25, 2015
1 parent fac3ea3 commit 4f4fedd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 23 deletions.
2 changes: 1 addition & 1 deletion gec22_demo/vlc-oml.oedl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2012 National ICT Australia Limited (NICTA).
# Copyright (c) 2015 National ICT Australia Limited (NICTA).
# This software may be used and distributed solely under the terms of the MIT license (License).
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
Expand Down
3 changes: 3 additions & 0 deletions gec22_demo/web_redirector/configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
CONFIG=$1
echo -e "$CONFIG" >/root/web-redirector/config.yaml
5 changes: 0 additions & 5 deletions gec22_demo/web_redirector/redirector

This file was deleted.

38 changes: 21 additions & 17 deletions gec22_demo/web_redirector/redirector.oedl
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
# Copyright (c) 2012 National ICT Australia Limited (NICTA).
# Copyright (c) 2015 National ICT Australia Limited (NICTA).
# This software may be used and distributed solely under the terms of the MIT license (License).
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
# By downloading or using this software you accept the terms and the liability disclaimer in the License.

# This is the OMF6 Application Definition for the OML-Instrumented VLC app,
# which was contributed by NYPoly [1]. The OML Measurement Point described in
# this app definition are the ones defined in the header file of the source code
# available at [1].
# This is the OMF6 Application Definition for the simple Ruby-based web redirector
#
# As described by the doc at [1], the current limitation of this OML-enabled
# VLC app is that it cannot report at the same time both the 'usual' VLC stats
# and the DASH-specific stats. Thus, you need to choose at runtime which set of
# stats to enable. When used with OMF6 via this app definition, this selection
# is done by setting/unsetting the 'enable_classic_measurement' property.
#
# [1] http://witestlab.poly.edu/site/page/oml-enabled-applications
# First run the 'web_redirector_config' to write the config yaml file for the
# Rack application. Then run 'web_redirector' to start the Rack application which
# does the redirection

defApplication('web_redirector_config') do |app|
app.quiet = true
app.binary_path = "/root/web-redirector/configure"
app.description = "Configuration for a Simple Ruby-based web-redirector"
app.defProperty(
"config",
"YAML-formated config string",
"",
:type => :string, :dynamic => false)
end

defApplication('web_redirector') do |app|
app.quiet = true
app.binary_path = "/root/web-redirector/redirector"
app.binary_path = "/usr/local/bin/rackup"
app.description = "Simple Ruby-based web-redirector"
app.defProperty(
"host",
"Address to listen to",
"",
:order => 1, :type => :string, :dynamic => false)
:order => 1, :type => :string, :dynamic => false, :mandatory => true, :default => 'localhost')
app.defProperty(
"config",
"YAML-formated config string",
"rackapp",
"Path to the redirector Rack Application",
"",
:order => 2, :type => :string, :dynamic => false)
:order => 2, :type => :string, :dynamic => false, :mandatory => true, :default => '/root/web-redirector/config.ru')
end

0 comments on commit 4f4fedd

Please sign in to comment.