Java CoG Kit Karajan Almanac
From Java CoG Kit
About this Document
In this document we intend to collect examples that demonstrate features of the Karajan Workflow. We start with examples that demonstrate language features. Once this is complete we intend to put together more extensive examples showing programming pattrens on the Grid.
An Index can be found at http://wiki.cogkit.org/index.php/V:Head/Karajan:Element_Index
Contributors
In alphabetical order
- Aman Sabharwal
- Gregor von Laszewski
- Kamal Agarwal
Language
| done | Feature | .k | .xml |
| - | Elements
| ||
| - | Identifiers
| ||
| - | Arguments
| ||
| - | Named Arguments
| ||
| - | Unnamed Arguments
| ||
| - | Expressions
| ||
| - | Operators
| ||
| - | Quoted Lists
| ||
| - | Programs
| ||
| - | Comments
| ||
| - | The XML Syntax
| ||
| - | Particularities of Using XML
| ||
| - | Parameters and Return Values
| ||
| - | Parameters and Arguments
| ||
| - | Single Value Arguments
| ||
| - | Channels
| ||
| - | Argument Mapping
| ||
| - | Optional Arguments
| ||
| - | Return values
| ||
| - | Argument Evaluation Order
| ||
| - | Variables and Scope
| ||
| - | Global Variables
| ||
| - | Variable Expansion
| ||
| - | Futures
| ||
| - | Source Files
| ||
| - | Libraries
| ||
| - | Namespaces
|
Kernel Elements
| done | Feature | .k | .xml |
| | project
| project.k | project.xml |
| | import
| import.k | import.xml |
| | export
| export.k | export.xml |
| - | define
| define.k | |
| | namespace
| namespace.k | namespace.xml |
| - | elementdef
| ||
| - | named
| ||
| - | number
| ||
| - | string
| ||
| - | variable
| ||
| - | quotedlist
| ||
| - | cache
|
Flow Control Elements
| done | Feature | .k | .xml |
| - | sequential
| ||
| - | parallel
| ||
| - | unsynchronized
| ||
| - | choice
| ||
| - | catch
| ||
| - | guard
| ||
| - | race
| ||
| - | for
| ||
| - | parallelFor
| ||
| - | while
| ||
| - | condition
| ||
| - | break
| ||
| - | continue
| ||
| - | if
| ||
| - | then
|
Elements Dealing with Variables and Arguments
| done | Feature | .k | .xml |
| | set
| set.k | set.xml |
| - | default
| ||
| - | maybe
| ||
| - | global
| ||
| - | to
| ||
| - | from
| ||
| - | isDefined
| ||
| - | quoted
| ||
| - | discard
| ||
| - | future
| ||
| - | futureIterator
|
Element Definition Elements
| done | Feature | .k | .xml |
| | element
| element.k | element.xml |
| - | parallelElement
| ||
| - | channel
| ||
| - | optional
|
Service Interaction Elements
| done | Feature | .k | .xml |
| - | remote
|
List Manipulation Elements
Map Elements
| done | Feature | .k | .xml |
| - | map
| ||
| - | entry
| ||
| - | put
| ||
| - | delete
| ||
| - | get
| ||
| - | size
| ||
| - | contains
|
Logic Elements
| done | Feature | .k | .xml |
| | and
| and.k | and.xml |
| | or
| or.k | or.xml |
| | not
| not.k | not.xml |
| | equals
| equals.k | equals.xml |
| | true
| true.k | true.xml |
| | false
| false.k | false.xml |
Numeric Elements
Error Handling Elements
| done | Feature | .k | .xml |
| - | ignoreErrors
| ||
| - | restartOnError
| ||
| - | generateError
| ||
| - | onError
|
Miscellaneous Elements
| done | Feature | .k | .xml |
| | print
| print.k | print.xml |
| | echo
| echo.k | echo.xml |
| - | checkpoint
| ||
| - | wait
| ||
| - | time
| ||
| - | file:execute
| ||
| - | executeElement
| ||
| - | elementList
| ||
| - | cacheOn
| ||
| - | numberFormat
| ||
| - | file:contains
| ||
| - | uid
| ||
| - | file:read
| ||
| - | file:write
| ||
| - | outputStream
| ||
| - | closeStream
| ||
| | concat
| concat.k | concat.xml |
| | split
| split.k | split.xml |
| | strip
| strip.k | strip.xml |
| - | matches
| matches.xml | |
| | nl
| nl.k | nl.xml |
| - | filter
| filter.xml |
Task Elements
| done | Feature | .k | .xml |
| - | scheduler
| ||
| - | handler
| ||
| - | resources
| ||
| - | host
| ||
| - | service
| ||
| - | securityContext
| ||
| - | allocateHost
| ||
| - | host
| ||
| - | execute
| ||
| - | transfer
| ||
| - | file:list
| ||
| - | file:remove
| ||
| - | file:exists
| ||
| - | dir:make
| ||
| - | dir:remove
| ||
| - | file:isDirectory
| ||
| - | file:chmod
| ||
| - | file:rename
| ||
| - | SSHSecurityContext
| ||
| - | InteractiveSSHSecurityContext
| ||
| - | passwordAuthentication
| ||
| - | publicKeyAuthentication
|
Java Elements
| done | Feature | .k | .kxml |
| - | new
| ||
| - | invokeMethod
| ||
| - | executeMain
| ||
| - | getField
| ||
| - | waitForEvent
| ||
| - | classOf
| ||
| - | null
|
