com.intel.gpe.clients.api.jsdl
Interface JSDLJob

All Superinterfaces:
Job
All Known Subinterfaces:
GPEJob, GPEWorkflowJob, GridletJob, WorkflowJob

public interface JSDLJob
extends Job

The abstraction of the JSDL job definition.

Version:
$Id: JSDLJob.java,v 1.10 2006/05/02 12:59:20 baklushin Exp $
Author:
Alexander Lukichev

Method Summary
 void addDataStagingExportElement(java.lang.String fileSystem, java.lang.String file, java.lang.String uri)
          Add data stage-out element
 void addDataStagingImportElement(java.lang.String uri, java.lang.String fileSystem, java.lang.String file)
          Add data stage-in element.
 void addExtensionElement(org.w3c.dom.Element element)
          Add the extension element to jsdl:JobDefinition
 ProcessorType getCPUArchitectureRequirements()
          Get the requirements for target CPU architecture
 java.util.Collection<DataStagingElement> getDataStagingExportElements()
          Get data stage-out elements as a collection.
 java.util.Collection<DataStagingElement> getDataStagingImportElements()
          Get data stage-in elements as a collection.
 boolean getExclusiveExecutionRequirements()
          Get the flag of exclusive execution
 org.w3c.dom.Element[] getExtensionElement(javax.xml.namespace.QName qname)
          Get the extension elements from jsdl:JobDefinition by its qname
 java.lang.String getId()
           
 RangeValueType getIndividualCPUCountRequirements()
          Get the required CPU count per node
 RangeValueType getIndividualCPUSpeedRequirements()
          Get the required CPU speed per node
 RangeValueType getIndividualDiskSpaceRequirements()
          Get the required disk space per node
 RangeValueType getIndividualPhysicalMemoryRequirements()
          Get the required RAM amount per node
 OperatingSystemRequirementsType getOperatingSystemRequirements()
          Get the required O/S characteristics.
 RangeValueType getTotalCPUCountRequirements()
          Get the required CPU count
 void setCPUArchitectureRequirements(ProcessorType cpuArchitecture)
          Set the requirements for target CPU architecture
 void setExclusiveExecutionRequirements(boolean exclusiveExecutuion)
          Set the flag of exclusive execution
 void setId(java.lang.String id)
          Set /jsdl:Jobdefinition/@id attribute
 void setIndividualCPUCountRequirements(RangeValueType cpuCount)
          Set required CPU count
 void setIndividualCPUSpeedRequirements(RangeValueType cpuSpeed)
          Set the required CPU speed per node
 void setIndividualDiskSpaceRequirements(RangeValueType diskSpace)
          Set the required disk space per node
 void setIndividualPhysicalMemoryRequirements(RangeValueType physicalMemory)
          Set the required RAM amount per node
 void setOperatingSystemRequirements(OperatingSystemRequirementsType osType)
          Set requirements for target O/S
 void setTotalCPUCountRequirements(RangeValueType cpuCount)
          Set the required total CPU count
 byte[] toByteArray()
          Get the XML representation of the JSDL document as an array of bytes
 

Method Detail

setId

void setId(java.lang.String id)
Set /jsdl:Jobdefinition/@id attribute

Parameters:
id - The job identifier

getId

java.lang.String getId()
Returns:
The job identifier

addDataStagingImportElement

void addDataStagingImportElement(java.lang.String uri,
                                 java.lang.String fileSystem,
                                 java.lang.String file)
Add data stage-in element.

Parameters:
uri - The location of the file to stage-in
fileSystem - The name of the filesystem where to put the file
file - The local name of the file (in the working directory)

addDataStagingExportElement

void addDataStagingExportElement(java.lang.String fileSystem,
                                 java.lang.String file,
                                 java.lang.String uri)
Add data stage-out element

Parameters:
fileSystem - The name of the filesystem where to get the file from
file - The local name of the file (in the working directory)
uri - The remote location where the file is to be put

getDataStagingImportElements

java.util.Collection<DataStagingElement> getDataStagingImportElements()
Get data stage-in elements as a collection.

Returns:

getDataStagingExportElements

java.util.Collection<DataStagingElement> getDataStagingExportElements()
Get data stage-out elements as a collection.

Returns:

setOperatingSystemRequirements

void setOperatingSystemRequirements(OperatingSystemRequirementsType osType)
Set requirements for target O/S

Parameters:
osType - - the requirements structure

getOperatingSystemRequirements

OperatingSystemRequirementsType getOperatingSystemRequirements()
Get the required O/S characteristics.

Returns:
the O/S requirements

setCPUArchitectureRequirements

void setCPUArchitectureRequirements(ProcessorType cpuArchitecture)
Set the requirements for target CPU architecture

Parameters:
cpuArchitecture - - the required CPU acrhitecture

getCPUArchitectureRequirements

ProcessorType getCPUArchitectureRequirements()
Get the requirements for target CPU architecture

Returns:
the required CPU acrhitecture

setIndividualCPUCountRequirements

void setIndividualCPUCountRequirements(RangeValueType cpuCount)
Set required CPU count

Parameters:
cpuCount - - the required CPU count

getIndividualCPUCountRequirements

RangeValueType getIndividualCPUCountRequirements()
Get the required CPU count per node

Returns:
the required CPU count per node

setTotalCPUCountRequirements

void setTotalCPUCountRequirements(RangeValueType cpuCount)
Set the required total CPU count

Parameters:
cpuCount - - the required total CPU count

getTotalCPUCountRequirements

RangeValueType getTotalCPUCountRequirements()
Get the required CPU count

Returns:
the required CPU count

setIndividualPhysicalMemoryRequirements

void setIndividualPhysicalMemoryRequirements(RangeValueType physicalMemory)
Set the required RAM amount per node

Parameters:
physicalMemory - - the required RAM amount per node

getIndividualPhysicalMemoryRequirements

RangeValueType getIndividualPhysicalMemoryRequirements()
Get the required RAM amount per node

Returns:
- the required RAM amount per node

setIndividualCPUSpeedRequirements

void setIndividualCPUSpeedRequirements(RangeValueType cpuSpeed)
Set the required CPU speed per node

Parameters:
cpuSpeed - - the required CPU speed per node

getIndividualCPUSpeedRequirements

RangeValueType getIndividualCPUSpeedRequirements()
Get the required CPU speed per node

Returns:
the required CPU speed per node

setIndividualDiskSpaceRequirements

void setIndividualDiskSpaceRequirements(RangeValueType diskSpace)
Set the required disk space per node

Parameters:
diskSpace - - the required disk space per node

getIndividualDiskSpaceRequirements

RangeValueType getIndividualDiskSpaceRequirements()
Get the required disk space per node

Returns:
the required disk space per node

setExclusiveExecutionRequirements

void setExclusiveExecutionRequirements(boolean exclusiveExecutuion)
Set the flag of exclusive execution

Parameters:
exclusiveExecutuion - - if true then use the target machine exclusively

getExclusiveExecutionRequirements

boolean getExclusiveExecutionRequirements()
Get the flag of exclusive execution

Returns:
the flag of exclusive execution

toByteArray

byte[] toByteArray()
                   throws java.io.IOException
Get the XML representation of the JSDL document as an array of bytes

Returns:
Throws:
java.io.IOException

addExtensionElement

void addExtensionElement(org.w3c.dom.Element element)
Add the extension element to jsdl:JobDefinition

Parameters:
element - the extension element

getExtensionElement

org.w3c.dom.Element[] getExtensionElement(javax.xml.namespace.QName qname)
Get the extension elements from jsdl:JobDefinition by its qname

Parameters:
qname - the qname of the extension element
Returns:
the array of the extension elements, may be null if none


Copyright © 2008. All Rights Reserved.