WS GRAM: Developer's Guide
Overview
GRAM slides [ html ]
[ pdf ]
API
Architecture
Fault Tolerance Architecture
RSL Schema
>MJS Fault Types
Samples
Scheduler tutorial
Troubleshooting
Managed Job Types
Contents:
- Schema Document Properties
-
Global Definitions
- Complex Type: CacheFaultType
- Complex Type: CredentialSerializationFaultType
- Complex Type: DatabaseAccessFaultType
- Complex Type: ExecutionFailedFaultType
- Complex Type: FaultType
- Complex Type: FilePermissionsFaultType
- Complex Type: InsufficientCredentialsFaultType
- Complex Type: InternalFaultType
- Complex Type: InvalidCredentialsFaultType
- Complex Type: InvalidPathFaultType
- Complex Type: JobStatusType
- Complex Type: RepeatedlyStartedFaultType
- Complex Type: SLAFaultType
- Complex Type: StagingDataType
- Complex Type: StagingFaultType
- Complex Type: StagingPersistenceDataType
- Complex Type: StatePersistenceDataType
- Complex Type: StreamServiceCreationFaultType
- Complex Type: UnresolvedSubstitutionReferencesFaultType
- Complex Type: UnsupportedFeatureFaultType
- Simple Type: JobStateType
- Simple Type: OutputType
- Simple Type: ScriptType
Schema Document Properties
| Target Namespace | http://www.globus.org/namespaces/2003/12/managed_job/types |
|---|---|
| Element and Attribute Namespaces |
|
| Schema Composition |
|
Declared Namespaces
| Prefix | Namespace |
|---|---|
| gram | http://www.globus.org/namespaces/2004/02/rsl/gram |
| mj-types | http://www.globus.org/namespaces/2003/12/managed_job/types |
| ogsi | http://www.gridforum.org/namespaces/2003/03/OGSI |
| xsd | http://www.w3.org/2001/XMLSchema |
| xml | http://www.w3.org/XML/1998/namespace |
| Schema Component Representation |
|---|
|
<xsd:schema targetNamespace="http://www.globus.org/namespaces/2003/12/managed_job/types" attributeFormDefault="qualified" elementFormDefault="qualified">
<xsd:import namespace="http://www.gridforum.org/namespaces/2003/03/OGSI" schemaLocation="ogsi.xsd"/> ... </xsd:schema> |
Global Definitions
Complex Type: CacheFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < CacheFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | CacheFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that an error occurred accessing the GASS Cache. This fault type contains the path to the GASS Cache as one of its elements. Some typical causes of this problem are gass cache program not installed in the GLOBUS_LOCATION path, or the user's home directory is non-existent or full. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
Complex Type: CredentialSerializationFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < CredentialSerializationFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | CredentialSerializationFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that the managed job service was unable to serialize or deserialize a delegated credential. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
Complex Type: DatabaseAccessFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < InternalFaultType (by extension) < DatabaseAccessFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | DatabaseAccessFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that the Managed Job service was unable to store persistent state information into the recovery database. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
|
<xsd:complexType name="DatabaseAccessFaultType">
</xsd:complexType>
|
Complex Type: ExecutionFailedFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < SLAFaultType (by extension) < ExecutionFailedFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | ExecutionFailedFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that the Managed Job service was unable to begin the execution of the job. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
|
<xsd:complexType name="ExecutionFailedFaultType">
</xsd:complexType>
|
Complex Type: FaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) |
|---|---|
| Sub-types: |
|
| Name | FaultType |
|---|---|
| Abstract | no |
| Documentation | This is the base fault for runtime errors that occur while managing a job. It extends the OGSI FaultType. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
Complex Type: FilePermissionsFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < SLAFaultType (by extension) < FilePermissionsFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | FilePermissionsFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that the ManagedJob service does not have permissions to access a file referenced in the SLA. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
|
<xsd:complexType name="FilePermissionsFaultType">
<xsd:complexContent></xsd:complexContent> </xsd:complexType> |
Complex Type: InsufficientCredentialsFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < InsufficientCredentialsFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | InsufficientCredentialsFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that the managed job service was unable to perform some action on behalf of the owner of the job submission because the owner has delegated insufficient credentials. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
Complex Type: InternalFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < InternalFaultType (by extension) |
|---|---|
| Sub-types: |
|
| Name | InternalFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that an internal operation failed. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
Complex Type: InvalidCredentialsFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < InvalidCredentialsFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | InvalidCredentialsFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that the managed job service was unable to use a delegated credential. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
Complex Type: InvalidPathFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < SLAFaultType (by extension) < InvalidPathFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | InvalidPathFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that a file or directory path referenced in the SLA contains an invalid path. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
|
<xsd:complexType name="InvalidPathFaultType">
<xsd:complexContent></xsd:complexContent> </xsd:complexType> |
Complex Type: JobStatusType
| Super-types: | None |
|---|---|
| Sub-types: | None |
| Name | JobStatusType |
|---|---|
| Abstract | no |
| Documentation | Type containing information about the current state of the job and, if the job failed, fault information. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
|
<xsd:complexType name="JobStatusType">
<xsd:sequence></xsd:sequence> </xsd:complexType> |
Complex Type: RepeatedlyStartedFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < RepeatedlyStartedFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | RepeatedlyStartedFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that the start method of the Managed Job service could not run because the job had already been started. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
Complex Type: SLAFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < SLAFaultType (by extension) |
|---|---|
| Sub-types: |
|
| Name | SLAFaultType |
|---|---|
| Abstract | no |
| Documentation | Fault for runtime errors which are directly related to a particular part of the SLA document passed to the createService method. This fault type contains the fragment of the SLA related to the fault as one of its elements. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
Complex Type: StagingDataType
| Super-types: | None |
|---|---|
| Sub-types: | None |
| Name | StagingDataType |
|---|---|
| Abstract | no |
| XML Instance Representation |
|---|
| Schema Component Representation |
|---|
Complex Type: StagingFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < SLAFaultType (by extension) < StagingFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | StagingFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that part of the file staging requirements of the SLA could not be completed. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
|
<xsd:complexType name="StagingFaultType">
<xsd:complexContent></xsd:complexContent> </xsd:complexType> |
Complex Type: StagingPersistenceDataType
| Super-types: | None |
|---|---|
| Sub-types: | None |
| Name | StagingPersistenceDataType |
|---|---|
| Abstract | no |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
|
<xsd:complexType name="StagingPersistenceDataType">
<xsd:sequence> </xsd:complexType><xsd:element name="stagingData" type="mj-types:StagingDataType" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> |
Complex Type: StatePersistenceDataType
| Super-types: | None |
|---|---|
| Sub-types: | None |
| Name | StatePersistenceDataType |
|---|---|
| Abstract | no |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
|
<xsd:complexType name="StatePersistenceDataType">
<xsd:sequence></xsd:sequence> </xsd:complexType> |
Complex Type: StreamServiceCreationFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < StreamServiceCreationFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | StreamServiceCreationFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that the Managed Job Service could not create the services required to stream standard output or stdandard error. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
Complex Type: UnresolvedSubstitutionReferencesFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < UnresolvedSubstitutionReferencesFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | UnresolvedSubstitutionReferencesFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that an element in the SLA contains a reference to an undefined subsitution. This fault type contains elements that have the value of substitutions which could not be resolved. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
Complex Type: UnsupportedFeatureFaultType
| Super-types: | ogsi:FaultType < FaultType (by extension) < SLAFaultType (by extension) < UnsupportedFeatureFaultType (by extension) |
|---|---|
| Sub-types: | None |
| Name | UnsupportedFeatureFaultType |
|---|---|
| Abstract | no |
| Documentation | This fault indicates that an error occurred because the RSL depended on a feature not implemented by a particular GRAM scheduler. |
| XML Instance Representation |
|---|
|
<...>
</...> |
| Schema Component Representation |
|---|
|
<xsd:complexType name="UnsupportedFeatureFaultType">
<xsd:complexContent></xsd:complexContent> </xsd:complexType> |
Simple Type: JobStateType
| Super-types: | xsd:string < JobStateType (by restriction) |
|---|---|
| Sub-types: | None |
| Name | JobStateType |
|---|---|
| Content |
|
| Documentation | Job states for a Managed Job. |
| Schema Component Representation |
|---|
|
<xsd:simpleType name="JobStateType">
<xsd:restriction base="xsd:string"> </xsd:simpleType><xsd:enumeration value="Unsubmitted"/> <xsd:enumeration value="StageIn"/> <xsd:enumeration value="Pending"/> <xsd:enumeration value="Active"/> <xsd:enumeration value="StageOut"/> <xsd:enumeration value="Suspended"/> <xsd:enumeration value="Done"/> <xsd:enumeration value="Failed"/> </xsd:restriction> |
Simple Type: OutputType
| Super-types: | xsd:string < OutputType (by restriction) |
|---|---|
| Sub-types: | None |
| Name | OutputType |
|---|---|
| Content |
|
| Documentation | Type of a output stream service. |
| Schema Component Representation |
|---|
|
<xsd:simpleType name="OutputType">
<xsd:restriction base="xsd:string"> </xsd:simpleType><xsd:enumeration value="stdout"/> <xsd:enumeration value="stderr"/> </xsd:restriction> |
Simple Type: ScriptType
| Super-types: | xsd:string < ScriptType (by restriction) |
|---|---|
| Sub-types: | None |
| Name | ScriptType |
|---|---|
| Content |
|
| Documentation | Script methods which may be called the Managed Job Services. Faults will be associated with one of these script methods. |
| Schema Component Representation |
|---|
|
<xsd:simpleType name="ScriptType">
<xsd:restriction base="xsd:string"> </xsd:simpleType><xsd:enumeration value="submit"/> <xsd:enumeration value="poll"/> <xsd:enumeration value="cancel"/> <xsd:enumeration value="signal"/> <xsd:enumeration value="make_scratchdir"/> <xsd:enumeration value="remove_scratchdir"/> <xsd:enumeration value="stage_in"/> <xsd:enumeration value="stage_out"/> <xsd:enumeration value="cache_cleanup"/> <xsd:enumeration value="remote_io_file_create"/> <xsd:enumeration value="proxy_relocate"/> <xsd:enumeration value="proxy_update"/> <xsd:enumeration value="file_cleanup"/> </xsd:restriction> |
Legend
| Complex Type: | AusAddress |
|---|---|
| Schema Component Type | Schema Component Name |
| Super-types: | Address < AusAddress (by extension) |
|---|---|
| Sub-types: |
|
| Name | AusAddress |
|---|---|
| Abstract | no |
| XML Instance Representation |
|---|
|
<... country="Australia">
<unitNo> string </unitNo> [0..1] <houseNo> string </houseNo> [1] <street> string </street> [1] Start Choice[1] <city> string </city> [1] <town> string </town> [1] End Choice <state> AusStates </state> [1] <postcode> string <<pattern = [1-9][0-9]{3}>> </postcode> [1] </...> |
The XML Instance Representation table above shows the schema component's content as an XML instance.
- The minimum and maximum occurrence of elements and attributes are provided in square brackets, e.g. [0..1].
- Model group information are shown in gray, e.g. Start Choice ... End Choice.
- For type derivations, the elements and attributes that have been added to or changed from the base type's content are shown in bold.
- If an element/attribute has a fixed value, the fixed value is shown in green, e.g. country="Australia".
- Otherwise, the type of the element/attribute is displayed.
- If the element/attribute's type is in the schema, a link is provided to it.
- For local simple type definitions, the constraints are displayed in angle brackets, e.g. <<pattern = [1-9][0-9]{3}>>.
| Schema Component Representation |
|---|
|
<complexTypename="AusAddress">
<complexContent> <extensionbase="Address"> <sequence> <elementname="state" type="AusStates"/> <elementname="postcode"> <simpleType> <restrictionbase="string"> <patternvalue="[1-9][0-9]{3}"/> </restriction> </simpleType> </element> </sequence> <attributename="country" type="string" fixed="Australia"/> </extension> </complexContent> </complexType> |
Glossary
Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.
All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.
Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.
Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.
Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.
Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.
Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.
Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.
Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.
Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.
Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.
Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.
Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.
Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).
Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.
Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.
Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.
Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.
Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.