Download Java CoG Kit 2.0 Manual, pre-alpha

Transcript
7.2.2
Compile
To compile the core module, change the directory to cog/modules/core and type
’ant dist’. This will compile cog-core and all its dependencies. It will also create
a dist directory containing the distribution of the core module. Inside the dist
directory, the bin directory will contain the necessary scripts that can be used to
launch several command -line clients and example applications.
7.2.3
Configuration
Cog-core can be configured via the cog-core.properties file in the /.globus directory. The user can set the following properties in this configuration file:
#provider
class
GT2 = org.globus.cog.core.impl.gt2
GT3 = org.globus.cog.core.impl.gt3
SSH = org.globus.cog.core.impl.ssh
SCHEMA_LOCATION = <COG_HOME>/modules/core/schema
GT2, GT3, and SSH are default providers. SCHEMA LOCATION indicates the
directory location of the schemas required by GT3, and <COG_HOME> points to
the location where the CoG is installed.
Hence, an example cog-core.properties file would be similar to
#Java CoG Kit Core module
GT2 = org.globus.cog.core.impl.gt2
GT3 = org.globus.cog.core.impl.gt3
SSH = org.globus.cog.core.impl.ssh
SCHEMA_LOCATION = /home/user-name/cog/core/modules/core/schema
7.2.4
Examples
Several examples that demonstrate the ease of use and functionality of the Java
CoG Kit Core are provided. These examples are available in the ../modules/
core/src/org/globus/cog/core/examples directory.
The examples are further divided into the following packages:
gt2 :
gt3 :
ssh :
showcasing the gt2 functionality.
1.
The GT2 JobSubmission example demonstrates the ability to submit to
a PBS batch queue.
2.
The GT2 FileTransfer example demonstrates the ability to perform a
third-party file transfer using Grid FTP.
showcasing the gt3 functionality.
1.
The GT3 JobSubmission example demonstrates the ability to submit to
a MasterForkManagedJobFactory service. It can also be used for PBS
managed factory services.
2.
The GT3 FileTransfer includes examples for third party transfers for
single as well as multiple files. It uses the MultiRFT Grid service.
showcasing the ssh functionality.
36