6.5. RSL

We introduced RSL in 2.1.2, “Resource management” on page 17. Now we show some programming examples that utilize RSL.

6.5.1. Example using RSL

Example 6-12 utilizes the org.globus.rsl package provided by the JavaCoG Kit to parse and display the RSL string.

Example 6-12. RSL example (1 of 6)
 mport org.globus.rsl.*; import java.util.*; import java.io.*; import junit.framework.*; import junit.extensions.*; public class MyRSL { public void MyRSL() { } public static void main(String[] args) { RslAttributes attribs; Map rslsubvars; String myrslstring = "&(executable=/bin/echo)(arguments=\"globusproject\")"; String myrslstring2 = "&(rsl_substitution=(EXECDIR\"/bin\"))(executable=$(EXECDIR)/echo) (arguments=\"www.globus.org\")"; String myrslstring3 ...

Get Enabling Applications for Grid Computing with Globus now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.