From groovy scripts it is possible to import any class available on the classpath, and then instantiate and use it in the normal manner.
In addition, the JES Server provides an environment for scripts to execute that is configured with some pre-initialized system objects - we call scripts for this environment JEScripts. The system objects are preconfigured objects that are always available under fixed names. They can be used togain information and interfact with the current state of the workflow, the Jes Server, and other Astrogrid components.
link to list of jars bundled with JES - so user can see what's available
The following objects are available to JEScripts and script expressions:
astrogridjesaccountuseruserIvornhomeIvorn| org.astrogrid.config.Config | Defines the methods that a Configurator must implement. |
| org.astrogrid.scripting.IOHelper | help with input / output |
| org.astrogrid.scripting.ObjectBuilder | Class to help construction of various kinds of object |
| org.astrogrid.scripting.table.MutableScriptStarTable | Extension of the standard starlink read-write table that supports the extra scripting methods. |
| org.astrogrid.scripting.table.ScriptStarTable | A Scriptable Star Table - extends basic StarLink StarTable. |
| org.astrogrid.scripting.table.StarTableBuilder | factory for StarTables |
| org.astrogrid.scripting.TableHelper | Helper object for working with STIL tables See Userguide - http://www.star.bristol.ac.uk/~mbt/stil/sun252.html See JavaDoc - http://www.star.bristol.ac.uk/~mbt/stil/javadocs/uk/ac/starlink/table/package-summary.html |
| org.astrogrid.scripting.Toolbox | root scripting object |
| org.astrogrid.scripting.XMLHelper | helper methods for working with xml. |
The main class for interacting with the astrogrid is Toolbox.
An instance of this class, named astrogrid is available in the JEScript environment. Other subsidiary
helper objects and delegates are accessible by calling the methods on Toolbox
See JavaDoc -
http://www.star.bristol.ac.uk/~mbt/stil/javadocs/uk/ac/starlink/table/package-summary.html
Extends uk.ac.starlink.table.AbstractStarTable, uk.ac.starlink.table.RandomStarTable, uk.ac.starlink.table.RowListStarTable
Extends uk.ac.starlink.table.StarTableFactory
StarTableFactory Javadoc -
http://www.star.bristol.ac.uk/~mbt/stil/javadocs/uk/ac/starlink/table/StarTableFactory.html
There is no store yet but we could add this later NB - Have deliberately NOT included a loadStream(Stream) method
- although this might be generically useful, it makes it difficult
to track through the Config package where properties have come
from. If you need to do this, write your stream of properties to a
file and then load from File.toURL()
| org.astrogrid.applications.parameter.protocol.ExternalValue | Interface for working with a value that is 'external' - ie probably not in this JVM. |
| org.astrogrid.applications.parameter.protocol.Protocol | Factory interface for creating org.astrogrid.applications.parameter.protocol.ExternalValue instances. |
| org.astrogrid.applications.parameter.protocol.ProtocolLibrary | A library of protocol-handling code, for working with External Values |
| org.astrogrid.scripting.ScriptVoSpaceClient | Wrapper of standard vospace client that has string-friendly scripting methods. |
| org.astrogrid.store.Ivorn | International Virtual Observatory Resource Name. |
| org.astrogrid.store.tree.Container | Representation of a container in an Astrogrid Store. |
| org.astrogrid.store.tree.File | Representation of a File in an Astrogrid Store |
| org.astrogrid.store.tree.Node | A wrapper for the AstroGrid StoreFile to make it easier to integrate into Aladin. |
| org.astrogrid.store.tree.TreeClient | An adapter to enable Aladin to access files in AstroGrid MySpace. |
| org.astrogrid.store.VoSpaceClient | This delegate provides methods for operating on files in VoSpace - that is, files that are on store points (accessible through StoreClient implementations) that are Registered in IVO Registries and/or Communities. |
There's three interfaces for interacting with VoSpace - the vospace client, the tree, and external values
Because of this vagueness, the interface provides the bare
minimum for working with the external value.
Extends org.astrogrid.store.VoSpaceClient
They act as keys to VO Registries; give the registry an IVORN
and it will return the associated VOResource document Ivorns are of the form: Ivorns are immutable - ie once created, they cannot be changed.
You can make new ones out of old ones. This is a badly named package. IVORNs can be used for things
other than stores...
ivo://something/anything/athing/etc#somethingwithmeaningtothiscontext
For example:
ivo://roe.ac.uk/storee#path/to/file.ext
might resolve to an FTP server, on which the path
'path/to/file.ext' would locate a document.
Note that there is a difference between the user (termed
operator here) of this class, and the owner of the files
that might be being browsed.StoreClient implementations) that are Registered in
IVO Registries and/or Communities.
| org.astrogrid.jes.jobscheduler.impl.groovy.JesInterface | access the jes server |
| org.astrogrid.jes.jobscheduler.impl.groovy.WorkflowLogger | allows workflow scripts to emit log messages |
The JesInterface class gives access into some of the internals of the current JES server. An
instance of this class named jes is available in the JEScript environment. The JesInterface
class in turn extends WorkflowLogger, and so inherits it's methods too.
Extends org.astrogrid.jes.jobscheduler.impl.groovy.WorkflowLogger
| org.astrogrid.portal.workflow.intf.ActivityKey | Implementation of activity keys for the new workflow object model |
| org.astrogrid.portal.workflow.intf.ApplicationDescription | Description of an application |
| org.astrogrid.portal.workflow.intf.ApplicationDescriptionSummary | a summary of an application |
| org.astrogrid.portal.workflow.intf.ApplicationRegistry | query registry for applications |
| org.astrogrid.portal.workflow.intf.JobExecutionService | A component that can execute and manage jobs |
| org.astrogrid.portal.workflow.intf.WorkflowBuilder | A component of methods to help build workflow documents |
| org.astrogrid.portal.workflow.intf.WorkflowManager | root object of the jes client interface |
| org.astrogrid.portal.workflow.intf.WorkflowStore | A component that can store and retreive workflow documents from VoSpace. |
These classes provide a high-level interface to the Astrogrid workflow system. They provide methods for building workflows, loading and saving to VOSpace, querying registry for cea applications, and submitting workflows to JES for execution.
This class provides access to the descriptor of an application -
by wrapping a {@link
org.astrogrid.applications.beans.v1.ApplicationBase} object. It also provides methods to create a new workflow {@link
org.astrogrid.workflow.beans.v1.Tool} object that can be used to
call the application this class describes ParameterValues can be added to a Tool by hand, with
the assistance of these methods: Finally, a Tool object can be checked that it conforms to the
application description by calling the {@link #validate} method
| org.astrogrid.registry.client.admin.RegistryAdminService | Class Name: RegistryAdminService Description: This class represents the client webservice delegate to the Administration piece of the web service. |
| org.astrogrid.registry.client.admin.UpdateRegistry | Class Name: RegistryAdminService Description: This class represents the client webservice delegate to the Administration piece of the web service. |
| org.astrogrid.registry.client.query.QueryRegistry | The QueryRegistry class is a delegate to a web service that submits an XML formatted registry query to the to the server side web service also named the same RegistryService. |
| org.astrogrid.registry.client.query.RegistryService | The RegistryService class is a delegate to a web service that submits an XML formatted registry query to the to the server side web service also named the same RegistryService. |
| org.astrogrid.registry.client.query.ServiceData |
Delegates to query and adminsister a registry
| org.astrogrid.applications.delegate.CommonExecutionConnectorClient | A client side interface for the CommonExecutionConnector . |
| org.astrogrid.applications.delegate.impl.CommonExecutionConnectorDelegate | |
| org.astrogrid.applications.delegate.impl.CommonExecutionConnectorDelegateImpl |
These classes provide a low-level interface to interact with CEA servers.
Extends org.astrogrid.common.delegate.AbstractDelegate, org.astrogrid.applications.delegate.impl.CommonExecutionConnectorDelegate
| org.astrogrid.community.beans.v1.Account | The user account. |
| org.astrogrid.community.beans.v1.BaseIdentifier | The identifier base class. |
| org.astrogrid.community.beans.v1.Credentials | The full authorization and authentication credentials. |
| org.astrogrid.community.beans.v1.Group | A security group used in authorization. |
| org.astrogrid.community.User | A bean to hold what is passed in the "community snippet". |
Representations of user and account details
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.community.beans.v1.BaseIdentifier
Extends org.astrogrid.common.bean.BaseBean
Extends org.astrogrid.common.bean.BaseBean
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.community.beans.v1.BaseIdentifier
| org.astrogrid.workflow.beans.v1.AbstractActivity | The abstract base class of all activities that can be performed in a workflow |
| org.astrogrid.workflow.beans.v1.ActivityContainer | Abstract base class of activities that contain other activities |
| org.astrogrid.workflow.beans.v1.Catch | Action to take when an error occurs in the wrapped try block variable specified by 'var' attribute will contain details of the error. |
| org.astrogrid.workflow.beans.v1.Else | Branch to take when if condition evaluates to false |
| org.astrogrid.workflow.beans.v1.execution.ExecutionRecordType | basic type for execution records |
| org.astrogrid.workflow.beans.v1.execution.Extension | A string 'buffer' for holding further information, keyed by attribute - so execution record becomes a map. |
| org.astrogrid.workflow.beans.v1.execution.JobExecutionRecord | A record of a single execution of a job |
| org.astrogrid.workflow.beans.v1.execution.JobExecutionRecordType | Class JobExecutionRecordType. |
| org.astrogrid.workflow.beans.v1.execution.JobURN | unique identifier for job executions |
| org.astrogrid.workflow.beans.v1.execution.StepExecutionRecord | A record of a single execution of a job step |
| org.astrogrid.workflow.beans.v1.execution.WorkflowSummaryType | summary record for a single execution of a job |
| org.astrogrid.workflow.beans.v1.Flow | a collection of activities to be performed potentially in parallel |
| org.astrogrid.workflow.beans.v1.For | A for loop construct - iterated over a sequence of items |
| org.astrogrid.workflow.beans.v1.If | An if statement |
| org.astrogrid.workflow.beans.v1.Input | the list of input parameters |
| org.astrogrid.workflow.beans.v1.Output | the list of output paramters |
| org.astrogrid.workflow.beans.v1.Parfor | A parallel-for loop construct - executes the loop body on each element of items in parallel |
| org.astrogrid.workflow.beans.v1.Scope | create a new workflow-variable scope for its body. |
| org.astrogrid.workflow.beans.v1.Script | a step in the workflow - execute some script statements. |
| org.astrogrid.workflow.beans.v1.Sequence | a collection of activities to be performed sequentially |
| org.astrogrid.workflow.beans.v1.Set | Declare (and optionally initialize) a new workflow variable, or update value of existing variable |
| org.astrogrid.workflow.beans.v1.Step | a step of the workflow - call to an external CEA application. |
| org.astrogrid.workflow.beans.v1.Then | Branch to take when if condition evaluates to true |
| org.astrogrid.workflow.beans.v1.Tool | represents a call to a CEA application |
| org.astrogrid.workflow.beans.v1.Try | Error-handling construct. |
| org.astrogrid.workflow.beans.v1.types.JoinType | |
| org.astrogrid.workflow.beans.v1.Unset | forget a previously-declared workflow variable |
| org.astrogrid.workflow.beans.v1.While | A while loop construct |
| org.astrogrid.workflow.beans.v1.Workflow | Base element of an Astrogird workflow document, conforming to the schema defined for namespace http://www.astrogrid.org/schema/AGWorkflow/v1 |
Workflow Documents are represented using the following objects
Extends org.astrogrid.common.bean.BaseBean
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean
Extends org.astrogrid.common.bean.BaseBean
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity, org.astrogrid.workflow.beans.v1.ActivityContainer
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity, org.astrogrid.workflow.beans.v1.ActivityContainer
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.AbstractActivity
Extends org.astrogrid.common.bean.BaseBean
Extends org.astrogrid.common.bean.BaseBean
Extends org.astrogrid.common.bean.BaseBean
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.execution.ExecutionRecordType, org.astrogrid.workflow.beans.v1.execution.JobExecutionRecordType
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.execution.ExecutionRecordType
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.execution.ExecutionRecordType
Extends org.astrogrid.common.bean.BaseBean, org.astrogrid.workflow.beans.v1.execution.ExecutionRecordType, org.astrogrid.workflow.beans.v1.execution.JobExecutionRecordType