mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
125781 rmunteanu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1) 125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
82 lines
1.7 KiB
Java
82 lines
1.7 KiB
Java
package org.alfresco.repo.batch;
|
|
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* An interface that allows the monitoring of metrics relating to a potentially long-running batch process.
|
|
*
|
|
* @author dward
|
|
*/
|
|
public interface BatchMonitor
|
|
{
|
|
/**
|
|
* Gets the process name.
|
|
*
|
|
* @return the process name
|
|
*/
|
|
public String getProcessName();
|
|
|
|
/**
|
|
* Gets the start time.
|
|
*
|
|
* @return the start time
|
|
*/
|
|
public Date getStartTime();
|
|
|
|
/**
|
|
* Gets the total number of results.
|
|
*
|
|
* @return the total number of results
|
|
*/
|
|
public int getTotalResults();
|
|
|
|
/**
|
|
* Gets the ID of the entry being processed
|
|
*
|
|
* @return the current entry id
|
|
*/
|
|
public String getCurrentEntryId();
|
|
|
|
/**
|
|
* Gets the number of successfully processed entries.
|
|
*
|
|
* @return the successfully processed entries
|
|
*/
|
|
public int getSuccessfullyProcessedEntries();
|
|
|
|
/**
|
|
* Gets the progress expressed as a percentage.
|
|
*
|
|
* @return the progress expressed as a percentage
|
|
*/
|
|
public String getPercentComplete();
|
|
|
|
/**
|
|
* Gets the total number of errors.
|
|
*
|
|
* @return the total number of errors
|
|
*/
|
|
public int getTotalErrors();
|
|
|
|
/**
|
|
* Gets the stack trace of the last error.
|
|
*
|
|
* @return the stack trace of the last error
|
|
*/
|
|
public String getLastError();
|
|
|
|
/**
|
|
* Gets the entry id that caused the last error.
|
|
*
|
|
* @return the last error entry id
|
|
*/
|
|
public String getLastErrorEntryId();
|
|
|
|
/**
|
|
* Gets the end time.
|
|
*
|
|
* @return the end time
|
|
*/
|
|
public Date getEndTime();
|
|
}
|