Java Cog Kit Examples Guide
From Java CoG Kit
Gregor von Laszewski
Software Version: 4_1_3
Url: http://www.cogkit.org/release/4_1_3/manual/examples.pdf
Last update: September 3, 2005
About this Document
This document includes a list of examples that we provide as part of the Java CoG Kit. The examples are not comprehensive, but show many of the features of the Java CoG Kit.If you have a good example that you like to have added here, please let us know.
Viewing
The best way to read this document is to use the PDF version and read it with Adobe Acrobat Reader. Please make sure you configure Adobe Acrobat Reader appropriately so you can follow hyperlinks. This is the case if you follow the default installation. Acrobat Reader is available at http://www.adobe.com/products/acrobat/readermain.html. Because the hyperlinks are not available in the printed form of this manual and we support saving our environment we strongly discourage printing this document.
We recommend that you save this manual locally on your machine and use Acrobat Reader. This has the advantage that you do not lose your anchor points while switching back and forth between different hyperlinks. An HTML version of this manual is planed, but not available yet.
Format
We have augmented the document with some comments at places where we found issues. Our intend is to address these issues in a future release. The comments are marked by the icon to do and the name of the person that will work on the removal of the issue. 2 Registration
Please be a team player and support us indirectly by registering with us or reporting your use of the Java CoG Kit. Although this software is free, we still need to justify to our funders the usefulness of the projects. If you want to help us with our efforts please take a few seconds to complete this information. We do not use this information for other purposes. If you have special needs or concerns please contact gregor@mcs.anl.gov. The registration form can filled out in a variety of formats. The online form can be found at
http://www.cogkit.org/register
This form is available also as ASCII text at
http://www.cogkit.org/register/form.txt
which you can FAX to
Gregor von Laszewski, Fax: 630 252 1997
Introduction
We will restructure the sections once we have a complete list of examples.
Task Management Examples
Workflow Examples
Data Management Examples
Abstractions Examples
Job Submission
File transfer
Authentication
jglobus Examples
Job Submission
File transfer
Authentication
Information Query with LDAP
Matlab Examples
Job Submission
File transfer
Authentication
Workflow
SSH Examples
Job Submission
File transfer
Authentication
Workflow
Interoperability Examples
Workflow
This is the update on examples for Core
Format
Java CoG Kit Abstractions
LocalFileResourceTest
- Short Title
- LocalFileResourceTest
- Description
- ???
- Filename
- LocalFileResourceTest.java
- Path
- [1]
- Remarks
-
This location is missing... I have pointed to abstractions instead of core and still i dont seem to find these files.
WebDAVFileResourceTest
- Short Title
- WebDAVFileResourceTest
- Description
- ???
- Filename
- WebDAVFileResourceTest.java
- Path
- src/cog/modules/core-examples/src/org/globus/cog/core/examples/file
- Remarks
-
I do not know, we need to check
GridFTPFileResourceTest.java
- Short Title
- GridFTPFileResourceTest.java
- Description
- ???
- Filename
- GridFTPFileResourceTest.java
- Path
- src/cog/modules/core-examples/src/org/globus/cog/core/examples/file
- Remarks
-
I do not know, we need to check
FileResourceTest
- Short Title
- FileResourceTest
- Description
- ???
- Filename
- FileResourceTest.java
- Path
- src/cog/modules/core-examples/src/org/globus/cog/core/examples/file
- Remarks
-
I do not know, we need to check
FileOperationTest
- Short Title
- FileOperationTest
- Description
- ???
- Filename
- FileOperationTest.java
- Path
- src/cog/modules/core-examples/src/org/globus/cog/core/examples/file
- Remarks
-
I do not know, we need to check
FTPFileResourceTest
- Short Title
- FTPFileResourceTest
- Description
- ???
- Filename
- FTPFileResourceTest.java
- Path
- src/cog/modules/core-examples/src/org/globus/cog/core/examples/file
- Remarks
-
I do not know, we need to check
JobSubmission
- Short Title
- JobSubmission
- Description
- Submit jobs to execute on the grid
- Filename
- JobSubmission.java
- Path
- [2]
- Remarks
-
example works - cannot currently do ssh submit, others work
FileResourceExample
- Short Title
- FileResourceExample
- Description
- Shows how to use file resource
- Filename
- FileResourceExample.java
- Path
- src/cog/modules/core-examples/src/org/globus/cog/core/examples/file
- Remarks
-
I do not know, we need to check
src/cog/modules/core-examples/src/org/globus/cog/core/examples/queue/
HiearchicalQueue
- Short Title
- HierarchicalQueue
- Description
- Shows how to create a queue of tasks
- Filename
- HierarchicalQueue.java
- Path
- [3]
- Remarks
-
example works (However, ”this is not a command line client”. It shows how you can execute a Hierarchical Qoueue programatically. Users have to edit task specifications to suite their needs) [ ] I do not know, we need to check - may work for kaizar since hard coded strings referencing files in his direcectories
DynamicScheduling
- Short Title
- DynamicScheduling
- Description
- Shows how to do dyanamic scheduling
- Filename
- DynamicScheduling.java
- Path
- [4]
- Remarks
-
example does not work – ”This example was demonstrating the scheduling framework I once developed using condor classAds. It never became a part of mainstream cog. I will clean it and make a new module” [ ] I do not know, we need to check - may work for kaizar since hard coded strings referencing files in his direcectories
HierarchicalSet
- Short Title
- HierarchicalSet
- Description
- Shows how to create a hiearchical set
- Filename
- HierarchicalSet.java
- Path
- [5]
- Remarks
-
example works (However, ”this is not a command line client”. It shows how you can execute a Hierarchical Set programatically. Users have to edit task specifications to suite their needs) [ ] I do not know, we need to check - may work for kaizar since hard coded strings referencing files in his direcectories
HierarchicalDAG
- Short Title
- HierarchicalDAG
- Description
- Create a Hieararchical Directed Asyclic Task Graph
- Filename
- HierarchicalDAG.java
- Path
- [6]
- Remarks
-
example works (However, ”this is not a command line client”. It shows how you can execute a Hierarchical DAGs programatically. Users have to edit task specifications to suite their needs) [ ] I do not know, we need to check - may work for kaizar since hard coded strings referencing files in his direcectories
HierarchicalDAGVisualizer
- Short Title
- HierarchicalDAGVisualizer
- Description
- See a Directed Asyclic Task Graph
- Filename
- HierarchicalDAGVisualizer.java
- Path
- [7]
- Remarks
-
example works (However, ”this is not a command line client”. It shows how you can execute a Hierarchical DAGs visually programatically. Users have to edit task specifications to suite their needs) [ ] I do not know, we need to check - may work for kaizar since hard coded strings referencing files in his direcectories
FileTransfer
- Short Title
- FileTransfer
- Description
- Demonstrates how to transfer files
- Filename
- FileTransfer.java
- Path
- [8]
- Remarks
-
example works for gridftp and local. Doesnt work for scp and ftp since we dont have default credentials for them.
Task2XML
- Short Title
- Task2XML
- Description
- Make a task into xml file
- Filename
- Task2XML.java
- Path
- [9]
- Remarks
-
example works
TaskGraph2XML
- Short Title
- TaskGraph2XML
- Description
- Make a taskgraph into xml file
- Filename
- TaskGraph2XML.java
- Path
- [10]
- Remarks
-
example works
XML2Task
- Short Title
- XML2Task
- Description
- Make an xml file into a task
- Filename
- XML2Task.java
- Path
- [11]
- Remarks
-
example works
XML2TaskGraph
- Short Title
- XML2TaskGraph
- Description
- Make an xml file into a taskgraph
- Filename
- XML2TaskGraph.java
- Path
- [12]
- Remarks
-
example works
Gridface
desktop.xml
- Short Title
- desktop.xml
- Description
- Loads a desktop state
- Filename
- desktop.xml
- Path
- [13]
- Remarks
-
example works
ex-all.gsh
- Short Title
- ex-all.gsh
- Description
- Runs all the examples from the manual
- Filename
- ex-all.gsh
- Path
- [14]
- Remarks
-
example works - ensure to configure gnet.gsh and connection.gsh first
goWorld.gsh
- Short Title goWorld.gsh
- Description
- Transfers GoWorld.java to a remote machine, compiles it, and runs it
- Filename
- goWorld.gsh
- Path
- [15]
- Remarks
-
example works - ensure to modify line ”gnetconfig eth2” to your set the ipaddress for your computer correctly. Also, if you are not on wiggum.mcs.anl.gov ensure to change the url and the path to java.
Graph Editor
graph1.xml
- Short Title
- graph1.xml
- Description
- A Graph Xml file that can be loaded into the graph editor
- Filename
- graph1.xml
- Path
- [16]
- Remarks
-
example works
graph2.xml
- Short Title
- graph2.xml
- Description
- A Graph Xml file that can be loaded into the graph editor
- Filename
- graph2.xml
- Path
- [17]
- Remarks
-
example works
graph3.xml
- Short Title
- graph3.xml
- Description
- A Graph Xml file that can be loaded into the graph editor
- Filename
- graph3.xml
- Path
- [18]
- Remarks
-
example works
graph4hierarchy.xml
- Short Title
- graph4hierarchy.xml
- Description
- A Graph Xml file that can be loaded into the graph editor
- Filename
- graph4hierarchy.xml
- Path
- [19]
- Remarks
-
example works - looks same as graph3.xml?
large-graph.xml
- Short Title
- large-graph.xml
- Description
- A Graph Xml file that can be loaded into the graph editor
- Filename
- large-graph.xml
- Path
- [20]
- Remarks
-
example works
