PreInstalled Application Launcher Module for PGRADE portal - PowerPoint PPT Presentation

About This Presentation
Title:

PreInstalled Application Launcher Module for PGRADE portal

Description:

... t trainset.arff ri 1 c status cp cp single b 2048 bi 10000 n 2500 tc ... Syntax of application invocation is the duty of portal admin, not the user ... – PowerPoint PPT presentation

Number of Views:58
Avg rating:3.0/5.0
Slides: 22
Provided by: Ama54
Category:

less

Transcript and Presenter's Notes

Title: PreInstalled Application Launcher Module for PGRADE portal


1
Pre-Installed Application Launcher Module for
P-GRADE portal
  • Goran Topic
  • Ruder Bokovic Institute
  • Zagreb, Croatia

2
Introduction
  • Grid
  • Not user friendly
  • Portals
  • Inflexible, or
  • Not user friendly enough

3
Example
  • parf t trainset.arff ri 1 c status cp cp
    single b 2048 bi 10000 n 2500 tc
    train_conf_matrix.txt i importances.txt tv
    train_votes.txt w 1.4,3,0.85,1 uu
    height,friends r 1 sd 3 st train_scale.txt p
    25

4
Idea
  • Existence of application on a resource is the
    duty of resource admin, not the user
  • Syntax of application invocation is the duty of
    portal admin, not the user
  • The system needs to be flexible and allow for new
    applications to be added without code
    interventions

5
Solution
  • Application definition files
  • Syntax declaration file
  • Presentation template file

6
Syntax Declaration
  • XML file
  • Describes all options of the application

7
DTD
  • lt?xml version'1.0' encoding'utf-8'?gt
  • lt!ELEMENT application (option)gt
  • lt!ATTLIST application type (single
    multiple mpi pvm) "single"gt
  • lt!ELEMENT option EMPTYgt
  • lt!ATTLIST option name CDATA
    REQUIREDgt
  • lt!ATTLIST option option CDATA
    IMPLIEDgt
  • lt!-- null means not on cmdline, e.g.
    implicitly used files --gt
  • lt!ATTLIST option file (input
    output none) "none"gt
  • lt!ATTLIST option separator
    (equals space none) "space"gt
  • lt!ATTLIST option multiple (yes
    no) "no"gt
  • lt!-- can it be repeated on the command line?
    --gt
  • lt!ATTLIST option arg (yes no)
    "yes"gt
  • lt!-- can it accept an argument? --gt
  • lt!ATTLIST option bare (yes no)
    IMPLIEDgt
  • lt!-- can it stand without an argument? null
    means not(arg) --gt
  • lt!ATTLIST option none (yes no)
    "yes"gt
  • lt!-- can it be left off (no means mandatory
    option) --gt
  • lt!ATTLIST option size CDATA "0"gt
  • lt!-- size of the text box used for input --gt

8
Excerpt from parf.xml
  • lt!DOCTYPE options SYSTEM "options.dtd"gt
  • ltapplication type"mpi"gt
  • ltoption name"verbose" option"--verbose"
    arg"no" /gt
  • ltoption name"trainset" option"-t"
    file"input" /gt
  • ltoption name"trainvotes" option"-tv"
    file"output" bare"yes" /gt
  • ltoption name"trainconf" option"-tc"
    file"output" bare"yes" /gt
  • ltoption name"class" option"-c" /gt
  • lt!-- ... --gt
  • lt/applicationgt

9
Presentation Template
  • HTML file with option markers
  • Determines the GUI layout
  • Option markers syntax name
  • The INPUT element type determined by option
    declaration

10
Excerpt from parf.tpt
  • lth3gtPARFlt/h3gt
  • verbose Verbose outputltbr /gt
  • ltstylegtlt!--
  • td
  • vertical-align top
  • --gtlt/stylegt
  • lttablegtlttrgtlttdgt
  • lttablegt
  • lttrgt
  • lttdgtTraining setlt/tdgt
  • lttdgttrainsetlt/tdgt
  • lt/trgt
  • lttrgt
  • lttdgtTraining classlt/tdgt
  • lttdgtclasslt/tdgt
  • lt/trgt
  • lt!-- ... --gt
  • lt/tablegt

11
Option Attributes
  • To Do
  • Options are unordered

12
Option Name
  • Identifies the option in the template
  • The option is inserted into HTML by a special
    sequence name
  • Some names are reserved (i.e. automatically
    declared)
  • stdout, stdin, stderr
  • display
  • count

13
Option Option
  • Gives the option tag that is used in the command
    line
  • For example, the following declaration will
    produce an input box (inserted by width), which,
    if filled with 320, will give -w 320 in the
    command line
  • ltoption namewidth option-w/gt

14
Option File
  • Controls the stage-in and stage-out mechanism
  • If fileinput, the control is a file box,
    allowing the user to upload the file to the
    portal
  • You can also type in a GridFTP URL

15
Option Separator
  • Determines how the option tag is connected with
    its value
  • equals -h320
  • space -h 320
  • none -h320

16
Option Multiple
  • Allows an option to be specified several times,
    or none at all
  • Use the Update button in the form to send the
    changes but stay in the form
  • If a multiple option is filled, another form
    control is added to allow for the next value

17
Option Arg
  • Determines whether the option is allowed to have
    an argument
  • If yes, a text box is created
  • If no, a check box is created
  • The default is yes

18
Option Bare
  • Determines whether the option is allowed not to
    have an argument
  • The default is the opposite of arg
  • If both bare and arg are yes, then both a
    text box and a check box are created, for options
    with optional values (e.g. both -p and -p 20
    are allowed)

19
Option None
  • Determines whether it is allowed to leave the
    option off the command line (i.e. whether it is
    mandatory)
  • The default is yes the option can be left off
    (it is not mandatory)

20
Option Size
  • For the options that generate a text box,
    determines the width of that text box

21
Thank You
Write a Comment
User Comments (0)
About PowerShow.com