|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.bo.job.InternalModuleServiceCallImpl
public class InternalModuleServiceCallImpl
Single call for a service.
| Constructor Summary | |
|---|---|
InternalModuleServiceCallImpl(Service service,
QedeqBo qedeq,
Parameters config,
Parameters parameters,
InternalServiceJob process,
ModuleServiceCall parent)
A new service process within the current thread. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
|
void |
finish(ModuleServiceResult result)
Set result state for call and stop. |
void |
finishError(java.lang.String errorMessage)
Set generic failure result for call and stop. |
void |
finishOk()
Set generic success result for call and stop. |
java.lang.String |
getAction()
Get description of currently taken action. |
long |
getBeginTime()
Get timestamp for service start. |
Parameters |
getConfigParameters()
Get global config parameters for service call. |
java.lang.String |
getConfigParametersString()
Get global config parameter for service call as string. |
long |
getDuration()
Get milliseconds the call was working and not pausing. |
long |
getEndTime()
Get timestamp for service stop. |
double |
getExecutionPercentage()
Get percentage of currently running plugin execution. |
long |
getId()
Get call id. |
InternalServiceJob |
getInternalServiceProcess()
Return service process the call was initiated. |
java.lang.String |
getLocation()
Where are we now. |
boolean |
getNewlyBlockedModule()
|
Parameters |
getParameters()
Get call specific parameters for service call. |
java.lang.String |
getParametersString()
Get call specific parameters for service call as string. |
ModuleServiceCall |
getParentServiceCall()
Return parent service call if any. |
QedeqBo |
getQedeq()
Get QEDEQ module we work on. |
Service |
getService()
Get service we work for. |
ServiceJob |
getServiceProcess()
Return service process the call was initiated by. |
ModuleServiceResult |
getServiceResult()
Result of service execution. |
void |
halt(ModuleServiceResult result)
Set result state for call and stop. |
void |
halt(java.lang.String errorMessage)
Set generic failure result for call and stop. |
int |
hashCode()
|
void |
interrupt()
Set failure state for call and stop. |
boolean |
isPaused()
Is the execution currently paused because we are waiting for another process. |
boolean |
isRunning()
Is this service still running? This is also true if the process is paused. |
void |
pause()
Signal an execution pause. |
void |
resume()
Signal execution resume. |
void |
setAction(java.lang.String action)
Set description of currently taken action. |
void |
setExecutionPercentage(double percentage)
Set percentage of currently running plugin execution. |
void |
setNewlyBlockedModule(boolean newlyBlockedModule)
|
void |
setServiceCompleteness(ServiceCompleteness completeness)
Set someone who answers completeness questions. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InternalModuleServiceCallImpl(Service service,
QedeqBo qedeq,
Parameters config,
Parameters parameters,
InternalServiceJob process,
ModuleServiceCall parent)
service - This service is executed.qedeq - Module we work on.config - Current global config parameters for this call.parameters - Call specific parameters..process - Service process we run within.parent - Parent service call if any.| Method Detail |
|---|
public Service getService()
ModuleServiceCall
getService in interface ModuleServiceCallpublic QedeqBo getQedeq()
ModuleServiceCall
getQedeq in interface ModuleServiceCallpublic Parameters getConfigParameters()
InternalModuleServiceCall
getConfigParameters in interface InternalModuleServiceCallpublic java.lang.String getConfigParametersString()
ModuleServiceCall
getConfigParametersString in interface ModuleServiceCallpublic Parameters getParameters()
InternalModuleServiceCall
getParameters in interface InternalModuleServiceCallpublic java.lang.String getParametersString()
ModuleServiceCall
getParametersString in interface ModuleServiceCallpublic long getBeginTime()
ModuleServiceCall
getBeginTime in interface ModuleServiceCallpublic long getEndTime()
ModuleServiceCall
getEndTime in interface ModuleServiceCallpublic long getDuration()
ModuleServiceCall
getDuration in interface ModuleServiceCallpublic boolean isPaused()
ModuleServiceCall
isPaused in interface ModuleServiceCallpublic void pause()
InternalModuleServiceCall
pause in interface InternalModuleServiceCallpublic void resume()
InternalModuleServiceCall
resume in interface InternalModuleServiceCallpublic void setNewlyBlockedModule(boolean newlyBlockedModule)
public boolean getNewlyBlockedModule()
public void finishOk()
InternalModuleServiceCall
finishOk in interface InternalModuleServiceCallpublic void finishError(java.lang.String errorMessage)
InternalModuleServiceCall
finishError in interface InternalModuleServiceCallerrorMessage - Reason for finishing with error.public void finish(ModuleServiceResult result)
InternalModuleServiceCall
finish in interface InternalModuleServiceCallresult - Service result.public void halt(ModuleServiceResult result)
InternalModuleServiceCall
halt in interface InternalModuleServiceCallresult - Must include reason for halting.public void halt(java.lang.String errorMessage)
InternalModuleServiceCall
halt in interface InternalModuleServiceCallerrorMessage - Reason for halting.public void interrupt()
InternalModuleServiceCall
interrupt in interface InternalModuleServiceCallpublic boolean isRunning()
ModuleServiceCall
isRunning in interface ModuleServiceCallpublic ServiceJob getServiceProcess()
ModuleServiceCall
getServiceProcess in interface ModuleServiceCallpublic double getExecutionPercentage()
ModuleServiceCall
getExecutionPercentage in interface ModuleServiceCallpublic void setExecutionPercentage(double percentage)
InternalModuleServiceCall
setExecutionPercentage in interface InternalModuleServiceCallpercentage - Number between 0 and 100.public java.lang.String getAction()
ModuleServiceCall
getAction in interface ModuleServiceCallpublic java.lang.String getLocation()
ModuleServiceCall
getLocation in interface ModuleServiceCallpublic void setAction(java.lang.String action)
InternalModuleServiceCall
setAction in interface InternalModuleServiceCallaction - We are doing this currently.public long getId()
ModuleServiceCall
getId in interface ModuleServiceCallpublic 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 ModuleServiceCall getParentServiceCall()
ModuleServiceCall
getParentServiceCall in interface ModuleServiceCallnull.public ModuleServiceResult getServiceResult()
ModuleServiceCall
getServiceResult in interface ModuleServiceCallnull.public InternalServiceJob getInternalServiceProcess()
InternalModuleServiceCall
getInternalServiceProcess in interface InternalModuleServiceCallpublic void setServiceCompleteness(ServiceCompleteness completeness)
InternalModuleServiceCall
setServiceCompleteness in interface InternalModuleServiceCallcompleteness - An answer for completeness questions. Might be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||