|
||||||||||
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 QedeqModule s 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 InternalServiceJob
call
- Execute this service call.public ModuleServiceCall getModuleServiceCall()
ServiceJob
getModuleServiceCall
in interface ServiceJob
null
.public InternalModuleServiceCall getInternalServiceCall()
InternalServiceJob
getInternalServiceCall
in interface InternalServiceJob
public java.lang.Thread getThread()
ServiceJob
getThread
in interface ServiceJob
public java.lang.String getQedeqName()
ServiceJob
getQedeqName
in interface ServiceJob
public java.lang.String getQedeqUrl()
ServiceJob
getQedeqUrl
in interface ServiceJob
public long getStart()
ServiceJob
getStart
in interface ServiceJob
public long getStop()
ServiceJob
getStop
in interface ServiceJob
public void setSuccessState()
InternalServiceJob
setSuccessState
in interface InternalServiceJob
public void setInterruptedState()
InternalServiceJob
setInterruptedState
in interface InternalServiceJob
public void setFailureState()
InternalServiceJob
setFailureState
in interface InternalServiceJob
public boolean isRunning()
ServiceJob
isRunning
in interface ServiceJob
public boolean isBlocked()
ServiceJob
isBlocked
in interface ServiceJob
public void setBlocked(boolean blocked)
InternalServiceJob
setBlocked
in interface InternalServiceJob
blocked
- Blocked state.public boolean wasSuccess()
ServiceJob
wasSuccess
in interface ServiceJob
public boolean wasFailure()
ServiceJob
ServiceJob.wasInterrupted()
.
wasFailure
in interface ServiceJob
public boolean wasInterrupted()
ServiceJob
wasInterrupted
in interface ServiceJob
public void interrupt()
ServiceJob
InterruptException
when Thread.interrupted()
is true
.
interrupt
in interface ServiceJob
public double getExecutionPercentage()
ServiceJob
getExecutionPercentage
in interface ServiceJob
public java.lang.String getActionName()
ServiceJob
getActionName
in interface ServiceJob
public java.lang.String getExecutionActionDescription()
ServiceJob
getExecutionActionDescription
in interface ServiceJob
public QedeqBoSet getBlockedModules()
ServiceJob
QedeqModule
s blocked by this process.
getBlockedModules
in interface ServiceJob
public long getId()
ServiceJob
getId
in interface ServiceJob
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public QedeqBo[] getCurrentlyProcessedModules()
ServiceJob
QedeqModule
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 |