|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.deployment.OperationMonitor
public class OperationMonitor
Operation monitor thread.
| Constructor Summary | |
|---|---|
OperationMonitor()
Constructs a default instance of an operation monitor. |
|
OperationMonitor(java.lang.String threadName)
Constructs an instance of an operation monitor using the specified name for the thread. |
|
| Method Summary | |
|---|---|
void |
addThrowable(java.lang.Throwable throwable)
Adds a throwable. |
java.lang.Throwable[] |
getThrowables()
Gets the throwables which occurred during the monitored operation. |
boolean |
hasOperationCompleted()
Whether the operation has completed its execution. |
boolean |
isOK()
Determines whether any exceptions were encountered during the monitored operation. |
void |
run()
Monitor's runnable method which is invoked upon completion of the execution of the monitored process. |
void |
setOperationCompleted()
Specifies that the operation has completed its execution. |
| Constructor Detail |
|---|
public OperationMonitor()
public OperationMonitor(java.lang.String threadName)
threadName - Thread's name.| Method Detail |
|---|
public final boolean hasOperationCompleted()
hasOperationCompleted in interface OperationMonitorInterfacetrue if the operation has completed.public final void setOperationCompleted()
setOperationCompleted in interface OperationMonitorInterfacepublic final boolean isOK()
isOK in interface OperationMonitorInterfacetrue if no exceptions where encountered.OperationMonitorInterface.isOK()public final void addThrowable(java.lang.Throwable throwable)
addThrowable in interface OperationMonitorInterfacethrowable - Throwable encountered during the monitored operation.OperationMonitorInterface.addThrowable(Throwable)public final java.lang.Throwable[] getThrowables()
getThrowables in interface OperationMonitorInterfaceOperationMonitorInterface.getThrowables()public void run()
run in interface java.lang.Runnablerun in class java.lang.ThreadRunnable.run()
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||