|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdekoh.portal.fwk.importer.ImportProgressObject
public class ImportProgressObject
ImportProgressObject indicates the progress of current importing of Digital Objects. An instance of this
class is returned by ImportService#start(ImportContext,ImportProgressObject)
method.
| Nested Class Summary | |
|---|---|
static class |
ImportProgressObject.ProgressStatus
States of an import process. |
protected class |
ImportProgressObject.RegisteredTask
|
| Constructor Summary | |
|---|---|
ImportProgressObject()
|
|
ImportProgressObject(int initialWeightage)
|
|
| Method Summary | |
|---|---|
void |
addImportProgressListener(ImportProgressEventListener importProgressEventListener)
|
void |
cancel()
Cancels the current import process, rolling back all the files that may be imported to Dekoh Database since the start operation. |
String |
getCompletionMessage()
|
protected List |
getImportTasksToRegister()
|
int |
getInitialWeightage()
|
ImportProgressObject.ProgressStatus |
getProgressStatus()
|
protected void |
invokeListeners()
|
boolean |
isCancelSupported()
|
boolean |
isDone()
|
boolean |
isStopped()
|
void |
removeImportProgressListener(ImportProgressEventListener importProgressEventListener)
|
void |
stop()
Stops the current importing of DigitalObjects. |
void |
updateStatus(ImportStatus importStatus,
File f)
|
void |
updateStatus(ImportStatus importStatus,
int percentageCompletion,
File f)
Creates an event and nofify the listener with the new ImportStatus |
void |
updateStatus(ImportStatus importStatus,
int percentageCompletion,
File f,
String message)
|
void |
updateStatusToCompleted()
|
void |
updateStatusToFailure(String message,
Throwable cause)
|
void |
waitForCompletion()
|
void |
waitForCompletion(int timeout)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImportProgressObject()
public ImportProgressObject(int initialWeightage)
| Method Detail |
|---|
protected List getImportTasksToRegister()
public void addImportProgressListener(ImportProgressEventListener importProgressEventListener)
public int getInitialWeightage()
public void removeImportProgressListener(ImportProgressEventListener importProgressEventListener)
public boolean isStopped()
public void stop()
public boolean isCancelSupported()
public void cancel()
start operation. (Optional operation)
UnsupportedOperationExceptionImportProgressObject.isCancelSupported()
public void updateStatus(ImportStatus importStatus,
File f)
public void updateStatus(ImportStatus importStatus,
int percentageCompletion,
File f)
importStatus - percentageCompletion - f -
public void updateStatus(ImportStatus importStatus,
int percentageCompletion,
File f,
String message)
public ImportProgressObject.ProgressStatus getProgressStatus()
public boolean isDone()
public void updateStatusToFailure(String message,
Throwable cause)
public void updateStatusToCompleted()
public String getCompletionMessage()
protected void invokeListeners()
public void waitForCompletion(int timeout)
throws InterruptedException
InterruptedException
public void waitForCompletion()
throws InterruptedException
InterruptedException
|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
© 2009 Pramati Technologies - Dekoh - Portal for Developers