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.jobinstance;
 
 import java.util.Date;
 
 
 
 
     private final static String sourceClass = JobOperatorJobExecutionImpl.class.getName();
     private final static Logger logger = Logger.getLogger();
     
 	private static ServicesManager servicesManager = ServicesManagerImpl.getInstance();
 
     private long executionID = 0L;
     private long instanceID = 0L;
     
     Timestamp endTime;
     String batchStatus;
     String exitStatus;
     Properties jobProperties = null;
     String jobName = null;
 	private JobContextImpl jobContext = null;
     
     public void setJobName(String jobName) {
 		this. = jobName;
 	}
 
     
 	public void setJobContext(JobContextImpl jobContext) {
 		this. = jobContext;
 	}
 
 	public JobOperatorJobExecutionImpl(long executionIdlong instanceId) {
 		this. = executionId;
 		this. = instanceId;
 	}
 	
 	public BatchStatus getBatchStatus() {
 		
 		BatchStatus batchStatus  = null;
 		
 		if (this. != null){
 			batchStatus = this..getBatchStatus();
 			.finest("Returning batch status of: " + batchStatus + " from JobContext.");
 		}
 		else {
 			// old job, retrieve from the backend
 			} else {
 				throw new UnsupportedOperationException("Only JDBC-based persistence currently supported for this function.");
 			}
 			.finest("Returning batch status of: " + batchStatus + " from JobContext.");
 		}
 		return batchStatus;
 	}
 
 	public Date getCreateTime() {
 
 		if (this. == null) {
 
			}
		}
		return new Date(.getTime());
	}
	public Date getEndTime() {
		if (this. == null) {
			}
		}
		return new Date(.getTime());
	}
	public long getExecutionId() {
		return ;
	}
	public String getExitStatus() {
		if (this. != null){
			return this..getExitStatus();
		}
		else {
			// old job, retrieve from the backend
			}
			return ;
		}
	}
		// if and only if we are accessing the JDBC impl, get the requested timestamp
		/*
		if (_persistenceManagementService instanceof JDBCPersistenceManagerImpl){
			updateTime = ((JDBCPersistenceManagerImpl)_persistenceManagementService).jobOperatorQueryJobExecutionTimestamp(executionID, JDBCPersistenceManagerImpl.UPDATE_TIME);
		}
		*/
		if (this. == null) {
			}
		}
		return new Date(this..getTime());
	}
	public Date getStartTime() {
		// if and only if we are accessing the JDBC impl, get the requested timestamp
		/*
		if (_persistenceManagementService instanceof JDBCPersistenceManagerImpl){
			startTime = ((JDBCPersistenceManagerImpl)_persistenceManagementService).jobOperatorQueryJobExecutionTimestamp(executionID, JDBCPersistenceManagerImpl.START_TIME);
		}
		*/
		if (this. == null) {
			}
		}
		return new Date(.getTime());
	}
		// TODO Auto-generated method stub
	}
	// IMPL specific setters
	public void setBatchStatus(String status) {
		 = status;
	}
	public void setCreateTime(Timestamp ts) {
		 = ts;
	}
	public void setEndTime(Timestamp ts) {
		 = ts;
	}
	public void setExecutionId(long id) {
	}
	public void setJobInstanceId(long jobInstanceID){
		 = jobInstanceID;
	}
	public void setExitStatus(String status) {
		 = status;
	}
	public void setInstanceId(long id) {
		 = id;
	}
	public void setLastUpdateTime(Timestamp ts) {
		 = ts;
	}
	public void setStartTime(Timestamp ts) {
		 = ts;
	}
	public void setJobParameters(Properties jProps){
		 = jProps;
	}
	public String getJobName() {
		return ;
	}
	public String getTagName() {
	}
	public long getInstanceId() {
		return ;
	}
	public String toString() {
		StringBuffer buf = new StringBuffer();
	    buf.append("createTime=" + );
	    buf.append(",batchStatus=" + );
	    buf.append(",exitStatus=" + );
	    buf.append(",jobName=" + );
	    buf.append(",instanceId=" + );
	    buf.append(",executionId=" + );
	    return buf.toString();
	}
New to GrepCode? Check out our FAQ X