public void updateJob ( String jobId , PoolInformation poolInfo , Integer priority , JobConstraints constraints , OnAllTasksComplete onAllTasksComplete , List < MetadataItem > metadata , Iterable < BatchClientBehavior > additionalBehaviors ) throws BatchErrorException , IOException { JobUpdateOptions options = new JobUpdateOptions ( ) ; BehaviorManager bhMgr = new BehaviorManager ( this . customBehaviors ( ) , additionalBehaviors ) ; bhMgr . applyRequestBehaviors ( options ) ; JobUpdateParameter param = new JobUpdateParameter ( ) . withPriority ( priority ) . withPoolInfo ( poolInfo ) . withConstraints ( constraints ) . withOnAllTasksComplete ( onAllTasksComplete ) . withMetadata ( metadata ) ; this . parentBatchClient . protocolLayer ( ) . jobs ( ) . update ( jobId , param , options ) ; }
Updates the specified job . This method performs a full replace of all updatable properties of the job . For example if the constraints parameter is null then the Batch service removes the job s existing constraints and replaces them with the default constraints .