org.icenigrid.gridsam.core
Interface MutableJobInstance

All Superinterfaces:
JobInstance
All Known Implementing Classes:
DefaultMutableJobInstance

public interface MutableJobInstance
extends JobInstance

Interface extending JobInstance providing mutable access to job status and other information

Author:
wwhl

Method Summary
 void advanceJobState(JobState pState, java.lang.String pDescription)
          advance the state of this job to pState
 void setJobDefinition(org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument pDescription)
          set the job description
 void setProperties(java.util.Map pProps)
          set the properties associated with the job
 
Methods inherited from interface org.icenigrid.gridsam.core.JobInstance
getID, getJobDefinition, getJobStages, getLastKnownStage, getProperties, isInStage, wasInStage
 

Method Detail

setJobDefinition

void setJobDefinition(org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument pDescription)
set the job description

Parameters:
pDescription - the job description as a string

setProperties

void setProperties(java.util.Map pProps)
set the properties associated with the job

Parameters:
pProps - properties associated with the job

advanceJobState

void advanceJobState(JobState pState,
                     java.lang.String pDescription)
                     throws StateTransitionException
advance the state of this job to pState

Parameters:
pState - the new state
pDescription - description associated with the state
Throws:
StateTransitionException - if the new state cannot be reached from the current state


Copyright © 2008. All Rights Reserved.