Download Chapter 1 Introduction to EverBEEN

Transcript
CHAPTER 2. EVERBEEN USER GUIDE
39
package.bpk
\___ config.xml
\___ files/
\___ lib/
\___ tcds/
\___ tds/
1. config.xml file — Main configuration of the BPK. It consists of two main sections:
• metaInf section — specifies unique identifier of the BPK.
• runtime section — specifies runtime type. Been supports two runtime types - JavaRuntime
and NativeRuntime.
– JavaRuntime — defines tasks written in JVM based language (e.g. Java, Scala, Groovy).
The name of the jar with the implementation is required.
– NativeRuntime — defines tasks written in other languages. This type requires the name
of the executable to be used.
Following examples show valid descriptors for java and native runtimes.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:bpkConfiguration xmlns:ns2="http://been.d3s.mff.cuni.cz/bpk/config">
<ns2:metaInf>
<groupId>fully-quallified.group.id</groupId>
<bpkId>bpkId</bpkId>
<version>3.0.0-EXAMPLE-ALPHA</version>
</ns2:metaInf>
<ns2:runtime xsi:type="ns2:JavaRuntime"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<jarFile>packed_jar_with_tasks.jar</jarFile>
</ns2:runtime>
</ns2:bpkConfiguration>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:bpkConfiguration xmlns:ns2="http://been.d3s.mff.cuni.cz/bpk/config">
<ns2:metaInf>
<groupId>fully-quallified.group.id</groupId>
<bpkId>bpkId</bpkId>
<version>3.0.0-EXAMPLE-ALPHA</version>
</ns2:metaInf>
<ns2:runtime xsi:type="ns2:NativeRuntime"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<binary>name_of_executable</binary>
</ns2:runtime>
</ns2:bpkConfiguration>
2. files/ directory — contains executable and library files. In the case of the JavaRuntime it must
contain an appropriate .jar file, NativeRuntime must place its executable and library files there.
3. lib/ directory — JavaRuntimes can place additional jars which will be added to the classpath
of a task once running on a Host Runtime.
4. tcds/ directory — contains Task Context descriptors.