|
|||||||||
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.ProgressRequestProcessor
public abstract class ProgressRequestProcessor
This class provides a base implementation for progress event producing tools.
Unlike ProgressProcessor, which allows only direct access to state transitions, ProgressRequestProcessor adds a state transition request queue which only records requests for state transitions. This allows the processor to execute the actual state transition at a later time more convenient for the processor.
ProgressProcessor
Field Summary |
---|
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, TRANSITIONS |
Constructor Summary | |
---|---|
protected |
ProgressRequestProcessor() |
protected |
ProgressRequestProcessor(ProgressManager manager) |
protected |
ProgressRequestProcessor(ProgressManager manager, Transitions transitions) |
protected |
ProgressRequestProcessor(Transitions transitions) |
Method Summary | |
---|---|
protected void |
cancel() This method calls requestCancel(false). |
boolean |
canRequestAbort() |
boolean |
canRequestCancel() |
boolean |
canRequestFinish() |
boolean |
canRequestRestore() |
boolean |
canRequestResume() |
boolean |
canRequestStart() |
boolean |
canRequestStop() |
boolean |
canRequestSuspend() |
boolean |
canRequestTimeout() |
boolean |
canRequestTransition(java.lang.String state) Checks if the last requested state can be transitioned to the state parameter. |
protected void |
clearStateQueue() |
protected java.util.LinkedList |
getStateQueue() |
protected StateInfo |
getStateQueueHead() |
protected StateInfo |
getStateQueueTail() |
protected StateInfo |
popStateQueue() |
protected void |
pushStateQueue(StateInfo stateInfo) |
protected boolean |
requestAbort(boolean quiet) |
protected boolean |
requestCancel(boolean quiet) |
protected boolean |
requestFinish(boolean quiet) |
protected boolean |
requestRestore(boolean quiet) |
protected boolean |
requestResume(boolean quiet) |
protected boolean |
requestStart(boolean quiet) |
protected boolean |
requestStop(boolean quiet) |
protected boolean |
requestSuspend(boolean quiet) |
protected boolean |
requestTimeout(boolean quiet) |
protected boolean |
requestTransition(java.lang.String state, boolean quiet) This method will push a request to change the state onto the state queue. |
void |
reset() This method resets the progress reporter, call when you want to reuse the same progress reporter to report progress on a new process. |
protected void |
resume() This method calls requestResume(false). |
protected void |
start() This method calls super.start(). |
protected void |
stop() This method calls requestStop(false). |
protected void |
suspend() This method calls requestSuspend(false). |
protected boolean |
transition(boolean quiet) This method will pop a request to change the state from the state queue, and try to change the current state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ProgressRequestProcessor()
protected ProgressRequestProcessor(ProgressManager manager)
protected ProgressRequestProcessor(Transitions transitions)
protected ProgressRequestProcessor(ProgressManager manager, Transitions transitions)
Method Detail |
---|
protected void start() throws java.lang.Exception
Subclasses should make this method public.
start
in class ProgressProcessor
java.lang.Exception
protected void stop()
Subclasses that support STOPPED state should make this method public.
stop
in class ProgressProcessor
protected void cancel()
Subclasses that support CANCELED state should make this method public.
cancel
in class ProgressProcessor
protected void suspend()
Subclasses that support SUSPENDED state should make this method public.
suspend
in class ProgressProcessor
protected void resume()
Subclasses that support RESUMED state should make this method public.
resume
in class ProgressProcessor
public boolean canRequestTransition(java.lang.String state)
public boolean canRequestStart()
public boolean canRequestStop()
public boolean canRequestCancel()
public boolean canRequestRestore()
public boolean canRequestSuspend()
public boolean canRequestResume()
public boolean canRequestFinish()
public boolean canRequestAbort()
public boolean canRequestTimeout()
protected boolean requestTransition(java.lang.String state, boolean quiet)
quiet
- if quiet is true, it will not throw TransitionException upon failureprotected boolean requestStart(boolean quiet)
protected boolean requestStop(boolean quiet)
protected boolean requestCancel(boolean quiet)
protected boolean requestRestore(boolean quiet)
protected boolean requestSuspend(boolean quiet)
protected boolean requestResume(boolean quiet)
protected boolean requestFinish(boolean quiet)
protected boolean requestAbort(boolean quiet)
protected boolean requestTimeout(boolean quiet)
protected boolean transition(boolean quiet)
quiet
- if quiet is true, it will not throw TransitionException upon failurepublic void reset()
ProgressReporter
reset
in class ProgressProcessor
protected java.util.LinkedList getStateQueue()
protected void clearStateQueue()
protected void pushStateQueue(StateInfo stateInfo)
protected StateInfo popStateQueue()
protected StateInfo getStateQueueHead()
protected StateInfo getStateQueueTail()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |