|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.idm.util.progress.ProgressReporter
oracle.idm.util.progress.ProgressProcessor
oracle.idm.util.progress.ProgressMonitor
public class ProgressMonitor
The ProgressMonitor object is used to monitor execution of lengthy monolithic operations, that otherwise do not provide any indication of their progress. This is a convenient way to monitor progress, but it provides only current duration information.
When a ProgressMonitor is started by calling the start() method, a new timer task is created in the timer thread associated with the ProgressManager class. This task runs at intervals as specified by the ProgressMamager interval property, and it timeouts as specified by the ProgressManager timeout property.
Field Summary | |
---|---|
static Transitions |
TRANSITIONS State transition model (null is the pre-initial state): |
Fields inherited from class oracle.idm.util.progress.ProgressProcessor |
---|
ABORTED, CANCELED, FINISHED, progressEventDurationInfo, progressEventLocalizedMessage, progressEventMessage, progressEventName, progressEventPercentInfo, progressEventProgressInfo, progressEventStateInfo, progressEventStatusInfo, progressEventStepInfo, progressEventThrowable, RESTORED, RESUMED, STARTED, STOPPED, SUSPENDED, TIMEDOUT, transitions |
Constructor Summary | |
---|---|
ProgressMonitor(ProgressManager manager, java.lang.Runnable runnable) Creates an instance of a ProgressMonitor. |
|
ProgressMonitor(java.lang.Runnable runnable) Creates an instance of a ProgressMonitor. |
Method Summary | |
---|---|
long |
getInterval() Getter for the interval property. |
java.lang.String |
getProgressEventLocalizedMessage() Getter for the progressEventLocalizedMessage property. |
java.lang.String |
getProgressEventMessage() Getter for the progressEventMessage property. |
java.lang.String |
getProgressEventName() Getter for the progressEventName property. |
java.lang.Object |
getProgressEventProgressInfo() Getter for the progressEventProgressInfo property. |
protected void |
process(boolean quiet) This method first sends a start progress event the progress listeners. |
void |
setInterval(long interval) Setter for the interval property. |
void |
setProgressEventLocalizedMessage(java.lang.String localizedMessage) Setter for the progressEventLocalizedMessage property. |
void |
setProgressEventMessage(java.lang.String message) Setter for the progressEventMessage property. |
void |
setProgressEventName(java.lang.String name) Setter for the progressEventName property. |
void |
setProgressEventProgressInfo(java.lang.Object progressInfo) Setter for the progressEventProgressInfo property. |
void |
start() This method calls process(false); |
Methods inherited from class oracle.idm.util.progress.ProgressProcessor |
---|
abort, block, block, block, canAbort, canCancel, cancel, cancel, canFinish, canReset, canRestore, canResume, canStart, canStop, canSuspend, canTimeout, canTransition, finish, getProgressEvent, getProgressEventDurationInfo, getProgressEventPercentInfo, getProgressEventStateInfo, getProgressEventStatusInfo, getProgressEventStepInfo, getProgressEventThrowable, getTransitions, isAborted, isCanceled, isFinal, isFinished, isInitial, isIntermediate, isNext, isPrevious, isReachable, isReset, isRestored, isResumed, isStarted, isStopped, isSuspended, isTimedout, isUnreachable, ping, reset, restore, resume, resume, run, sendProgressEvent, setTransitions, start, stop, stop, suspend, suspend, timeout, transition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Transitions TRANSITIONS
null -> STARTED STARTED -> [ FINISHED | ABORTED | TIMEDOUT ]
Constructor Detail |
---|
public ProgressMonitor(java.lang.Runnable runnable)
runnable
- Runnable whose progress will to be monitored.ProgressManager.getProgressMonitor(java.lang.Runnable)
public ProgressMonitor(ProgressManager manager, java.lang.Runnable runnable)
manager
- ProgressManager that manages this ProgressMonitor.runnable
- Runnable whose progress will to be monitored.ProgressManager.getProgressMonitor(java.lang.Runnable)
Method Detail |
---|
public long getInterval()
ProgressMonitor
public void setInterval(long interval)
interval
- The interval at which progress events are reported by the ProgressMonitor.getInterval()
public java.lang.String getProgressEventName()
getProgressEventName
in class ProgressProcessor
public void setProgressEventName(java.lang.String name)
name
-public java.lang.String getProgressEventMessage()
getProgressEventMessage
in class ProgressProcessor
public void setProgressEventMessage(java.lang.String message)
message
-public java.lang.String getProgressEventLocalizedMessage()
getProgressEventLocalizedMessage
in class ProgressProcessor
public void setProgressEventLocalizedMessage(java.lang.String localizedMessage)
message
-public java.lang.Object getProgressEventProgressInfo()
getProgressEventProgressInfo
in class ProgressProcessor
public void setProgressEventProgressInfo(java.lang.Object progressInfo)
info
-public void start() throws java.lang.Exception
start
in class ProgressProcessor
java.lang.Exception
protected void process(boolean quiet) throws java.lang.Exception
process
in class ProgressProcessor
event
-java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |