salto.batch.apiconsole.scheduler
Class BatchInfoWrapper

java.lang.Object
  extended by salto.batch.apiconsole.scheduler.BatchInfoWrapper

public class BatchInfoWrapper
extends java.lang.Object

Client Service API that gives infos about batch executions.

Author:
Philippe Mouawad

Method Summary
static BatchInfoWrapper getInstance()
           
 BatchExecutionBean getLastBatchExecution(java.lang.String batchName)
          Get last execution of batch with full name batchName
 BatchExecutionBean getLastBatchExecution(java.lang.String batchName, boolean withErrors)
          Get last execution of batch with or without errors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static BatchInfoWrapper getInstance()
Returns:
BatchSchedulerWrapper the singleton

getLastBatchExecution

public BatchExecutionBean getLastBatchExecution(java.lang.String batchName,
                                                boolean withErrors)
                                         throws BatchException
Get last execution of batch with or without errors

Parameters:
batchName - full name of batch
withErrors - boolean if true return last execution with errors otherwise returns last successful execution
Returns:
BatchExecutionBean null if no execution
Throws:
BatchException

getLastBatchExecution

public BatchExecutionBean getLastBatchExecution(java.lang.String batchName)
                                         throws BatchException
Get last execution of batch with full name batchName

Parameters:
batchName - full name of batch
Returns:
BatchExecutionBean null if no execution
Throws:
BatchException


Copyright © 2005-2008 Ubik-Ingenierie. All Rights Reserved.