|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.bo.job.InternalServiceJobImpl
public class InternalServiceJobImpl
Process info for a kernel service.
| Constructor Summary | |
|---|---|
InternalServiceJobImpl(ModuleArbiter arbiter,
java.lang.String actionName)
A new service process within the current thread. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getActionName()
Get action name. |
QedeqBoSet |
getBlockedModules()
Get QedeqModules blocked by this process. |
QedeqBo[] |
getCurrentlyProcessedModules()
Get currently processed QedeqModule list. |
java.lang.String |
getExecutionActionDescription()
Get description of currently taken action. |
double |
getExecutionPercentage()
Get percentage of currently running execution. |
long |
getId()
Get process id. |
InternalModuleServiceCall |
getInternalServiceCall()
Get currently running service call. |
ModuleServiceCall |
getModuleServiceCall()
Get currently running service call. |
java.lang.String |
getQedeqName()
Get name of currently processed QedeqBo. |
java.lang.String |
getQedeqUrl()
Get URL of currently processed QedeqBo. |
long |
getStart()
Get timestamp for service start. |
long |
getStop()
Get timestamp for service stop. |
java.lang.Thread |
getThread()
Get thread the service runs within. |
int |
hashCode()
|
void |
interrupt()
Interrupt running thread. |
boolean |
isBlocked()
Is the process running, but is blocked? |
boolean |
isRunning()
Is the process still running? |
void |
setBlocked(boolean blocked)
Set blocked state. |
void |
setFailureState()
Mark that thread execution lead to an exception. |
void |
setInternalServiceCall(InternalModuleServiceCall call)
Service call. |
void |
setInterruptedState()
Mark that thread execution was canceled by the user. |
void |
setSuccessState()
Mark that thread execution has normally ended. |
boolean |
wasFailure()
Has the process finished with an exception? This is also true, if the user canceled the execution. |
boolean |
wasInterrupted()
Has the process execution been canceled by the user? |
boolean |
wasSuccess()
Has the process normally ended? |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InternalServiceJobImpl(ModuleArbiter arbiter,
java.lang.String actionName)
arbiter - Remember module arbiter.actionName - Main process purpose.| Method Detail |
|---|
public void setInternalServiceCall(InternalModuleServiceCall call)
InternalServiceJob
setInternalServiceCall in interface InternalServiceJobcall - Execute this service call.public ModuleServiceCall getModuleServiceCall()
ServiceJob
getModuleServiceCall in interface ServiceJobnull.public InternalModuleServiceCall getInternalServiceCall()
InternalServiceJob
getInternalServiceCall in interface InternalServiceJobpublic java.lang.Thread getThread()
ServiceJob
getThread in interface ServiceJobpublic java.lang.String getQedeqName()
ServiceJob
getQedeqName in interface ServiceJobpublic java.lang.String getQedeqUrl()
ServiceJob
getQedeqUrl in interface ServiceJobpublic long getStart()
ServiceJob
getStart in interface ServiceJobpublic long getStop()
ServiceJob
getStop in interface ServiceJobpublic void setSuccessState()
InternalServiceJob
setSuccessState in interface InternalServiceJobpublic void setInterruptedState()
InternalServiceJob
setInterruptedState in interface InternalServiceJobpublic void setFailureState()
InternalServiceJob
setFailureState in interface InternalServiceJobpublic boolean isRunning()
ServiceJob
isRunning in interface ServiceJobpublic boolean isBlocked()
ServiceJob
isBlocked in interface ServiceJobpublic void setBlocked(boolean blocked)
InternalServiceJob
setBlocked in interface InternalServiceJobblocked - Blocked state.public boolean wasSuccess()
ServiceJob
wasSuccess in interface ServiceJobpublic boolean wasFailure()
ServiceJobServiceJob.wasInterrupted().
wasFailure in interface ServiceJobpublic boolean wasInterrupted()
ServiceJob
wasInterrupted in interface ServiceJobpublic void interrupt()
ServiceJobInterruptException when Thread.interrupted()
is true.
interrupt in interface ServiceJobpublic double getExecutionPercentage()
ServiceJob
getExecutionPercentage in interface ServiceJobpublic java.lang.String getActionName()
ServiceJob
getActionName in interface ServiceJobpublic java.lang.String getExecutionActionDescription()
ServiceJob
getExecutionActionDescription in interface ServiceJobpublic QedeqBoSet getBlockedModules()
ServiceJobQedeqModules blocked by this process.
getBlockedModules in interface ServiceJobpublic long getId()
ServiceJob
getId in interface ServiceJobpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic QedeqBo[] getCurrentlyProcessedModules()
ServiceJobQedeqModule list. This includes QEDEQ modules we try to get a lock for.
getCurrentlyProcessedModules in interface ServiceJob
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||