|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.client.common.UnknownEMFStoreWorkloadCommand<T>
T - the return type of the command's run methodpublic abstract class UnknownEMFStoreWorkloadCommand<T>
This class provides a way to indicate the progress of a command without knowing
the actual workload, i.e. the IProgressMonitor instance that is passed
to the run method is incremented every
| Constructor Summary | |
|---|---|
UnknownEMFStoreWorkloadCommand(org.eclipse.core.runtime.IProgressMonitor monitor)
Constructor. |
|
| Method Summary | |
|---|---|
T |
execute()
Executes the command. |
int |
getWorked()
Returns how many ticks the command has incremented the monitor. |
abstract T |
run(org.eclipse.core.runtime.IProgressMonitor monitor)
The actual behavior of the command that is meant to be implemented by clients. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnknownEMFStoreWorkloadCommand(org.eclipse.core.runtime.IProgressMonitor monitor)
monitor - the monitor that will be used to indicate that the command is in progress| Method Detail |
|---|
public T execute()
throws ESException
ESException - in case the command throws an exceptionpublic int getWorked()
public abstract T run(org.eclipse.core.runtime.IProgressMonitor monitor)
throws ESException
monitor - a progress monitor that is used to indicate
T
ESException - in case the command throws an exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||