Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2012 International Business Machines Corp.
   * 
   * See the NOTICE file distributed with this work for additional information
   * regarding copyright ownership. Licensed under the Apache License, 
   * Version 2.0 (the "License"); you may not use this file except in compliance
   * with the License. You may obtain a copy of the License at
   * 
   *   http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
 */
 package com.ibm.jbatch.container.services;
 
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
 
 
 public interface IPersistenceManagerService extends IBatchServiceBase {

    
JOB OPERATOR ONLY METHODS
 
     
 	public int jobOperatorGetJobInstanceCount(String jobName);
 	
 	
 	public List<LongjobOperatorGetJobInstanceIds(String jobNameint startint count);
 
 	public Timestamp jobOperatorQueryJobExecutionTimestamp(long keyString timetype);
 	
 	public String jobOperatorQueryJobExecutionStatus(long keyString requestedStatus);
 	
 	public long jobOperatorQueryJobExecutionJobInstanceId(long executionID);
 	
 	public void jobExecutionStatusStringUpdate(long keyString statusToUpdateString statusStringTimestamp updatets);
 	
 	public void jobExecutionTimestampUpdate(long keyString timestampToUpdateTimestamp ts);
 	
 	
 	public void jobOperatorUpdateBatchStatusWithUPDATETSonly(long keyString statusToUpdateString statusStringTimestamp updatets);
 	
 	public void jobOperatorUpdateBatchStatusWithSTATUSandUPDATETSonly(long keyString statusToUpdateString statusStringTimestamp updatets);
 	
 	public IJobExecution jobOperatorGetJobExecution(long jobExecutionId);
 
 	public Properties getParameters(long executionId);
 
 	public List<IJobExecutionjobOperatorGetJobExecutions(long jobInstanceId);
 
 	
 	public String getJobCurrentTag(long jobInstanceId);
 	
 	public void purge(String apptag);
 	
 	public JobStatus getJobStatusFromExecution(long executionId);
 	
 	public long getJobInstanceIdByExecutionId(long executionId);
 	
 	// JOBINSTANCEDATA
 	
Creates a JobIntance

Parameters:
name the job id from job.xml
apptag the application tag that owns this job
jobXml the resolved job xml
jobParameters parameters used for this job
Returns:
the job instance
 
 	public JobInstance createJobInstance(String nameString apptagString jobXmlProperties jobParameters);
 	
 	// EXECUTIONINSTANCEDATA
 	
Create a JobExecution

Parameters:
jobNavigator resolved job navigator
jobInstance the parent job instance
jobParameters the parent job instance parameters
jobContext the job context for this job execution
Returns:
the RuntimeJobExecutionHelper class for this JobExecution
	public RuntimeJobExecutionHelper createJobExecution(Navigator jobNavigatorJobInstance jobInstanceProperties jobParametersJobContextImpl jobContext);
	// STEPEXECUTIONINSTANCEDATA
Create a StepExecution

Parameters:
jobExecId the parent JobExecution id
stepContext the step context for this step execution
Returns:
the StepExecution
	public StepExecutionImpl createStepExecution(long jobExecIdStepContextImpl stepContextList<Stringcontainment);

Update a StepExecution

Parameters:
jobExecId the parent JobExecution id
stepContext the step context for this step execution
	public void updateStepExecution(long jobExecIdStepContextImpl stepContextList<Stringcontainment);
	// JOB_STATUS
Create a JobStatus

Parameters:
jobInstanceId the parent job instance id
Returns:
the JobStatus
	public JobStatus createJobStatus(long jobInstanceId);

Get a JobStatus

Parameters:
instanceId the parent job instance id
Returns:
the JobStatus
	public JobStatus getJobStatus(long instanceId);

Update a JobStatus

Parameters:
instanceId the parent job instance id
jobStatus the job status to be updated
	public void updateJobStatus(long instanceIdJobStatus jobStatus);
	// STEP_STATUS
Create a StepStatus

Parameters:
stepExecId the parent step execution id
Returns:
the StepStatus
	public StepStatus createStepStatus(long stepExecId);

Get a StepStatus The parent job instance id and this step name from the job xml are used to determine if the current step execution have previously run.

Parameters:
instanceId the parent job instance id
stepName the step name
Returns:
the StepStatus
	public StepStatus getStepStatus(long instanceIdString stepName);

Update a StepStatus

Parameters:
stepExecutionId the parent step execution id
stepStatus the step status to be updated
	public void updateStepStatus(long stepExecutionIdStepStatus stepStatus);


Get the application name from an execution id.

Parameters:
jobExecutionId the job execution id
Returns:
the application name
	public String getTagName(long jobExecutionId);
    public void updateCheckpointData(CheckpointDataKey keyCheckpointData value);
	long getMostRecentExecutionId(long jobInstanceId);
New to GrepCode? Check out our FAQ X