|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.core.Progress
public abstract class Progress
This class is implemented by all kinds of processes.
It gives feedback on the current process. Moreover, it allows to
interrupt the process by calling the stop() method.
| Field Summary | |
|---|---|
InfoListener |
listen
Listener, reacting on progress information. |
boolean |
updating
This flag indicates that a command may perform updates. |
| Constructor Summary | |
|---|---|
Progress()
|
|
| Method Summary | |
|---|---|
void |
checkStop()
Checks if the progress was interrupted; if yes, sends a runtime exception. |
java.lang.String |
detail()
Returns detailed information on the current process or sub process. |
void |
listen(InfoListener il)
Attaches the specified info listener. |
double |
progress()
Returns a progress value from the interval [0, 1]. |
void |
startTimeout(long sec)
Starts a timeout thread. |
void |
stop()
Stops a process or sub process. |
void |
stopTimeout()
Stops the timeout thread. |
java.lang.String |
title()
Returns short information on the current process or sub process. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public InfoListener listen
public boolean updating
| Constructor Detail |
|---|
public Progress()
| Method Detail |
|---|
public final java.lang.String title()
public final java.lang.String detail()
public final double progress()
[0, 1].
public final void listen(InfoListener il)
il - info listenerpublic final void stop()
public final void checkStop()
public final void startTimeout(long sec)
sec - seconds to wait; deactivated if set to 0public final void stopTimeout()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||