Package org.opennms.web.svclayer.model
Class ProgressMonitor
- java.lang.Object
-
- org.opennms.web.svclayer.model.ProgressMonitor
-
public class ProgressMonitor extends java.lang.Object
ProgressMonitor class.
- Author:
- Mathew Brozowski, DJ Gregor
-
-
Constructor Summary
Constructors Constructor Description ProgressMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginNextPhase(java.lang.String phaseLabel)
beginNextPhasevoid
errorOccurred(java.lang.Throwable t)
errorOccurredvoid
finished(java.lang.Object result)
finishedint
getPhase()
getPhaseint
getPhaseCount()
getPhaseCountjava.lang.String
getPhaseLabel()
getPhaseLabeljava.lang.Object
getResult()
getResultjava.lang.Throwable
getThrowable()
getThrowableboolean
isError()
isErrorboolean
isFinished()
isFinishedvoid
setPhaseCount(int phaseCount)
setPhaseCount
-
-
-
Method Detail
-
getPhaseCount
public int getPhaseCount()
getPhaseCount
- Returns:
- a int.
-
setPhaseCount
public void setPhaseCount(int phaseCount)
setPhaseCount
- Parameters:
phaseCount
- a int.
-
getPhaseLabel
public java.lang.String getPhaseLabel()
getPhaseLabel
- Returns:
- a
String
object.
-
getPhase
public int getPhase()
getPhase
- Returns:
- a int.
-
beginNextPhase
public void beginNextPhase(java.lang.String phaseLabel)
beginNextPhase
- Parameters:
phaseLabel
- aString
object.
-
finished
public void finished(java.lang.Object result)
finished
- Parameters:
result
- aObject
object.
-
isFinished
public boolean isFinished()
isFinished
- Returns:
- a boolean.
-
getResult
public java.lang.Object getResult()
getResult
- Returns:
- a
Object
object.
-
isError
public boolean isError()
isError
- Returns:
- a boolean.
-
getThrowable
public java.lang.Throwable getThrowable()
getThrowable
- Returns:
- a
Throwable
object.
-
errorOccurred
public void errorOccurred(java.lang.Throwable t)
errorOccurred
- Parameters:
t
- aThrowable
object.
-
-