|
||||||||||
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 ModuleServiceCall
public QedeqBo getQedeq()
ModuleServiceCall
getQedeq
in interface ModuleServiceCall
public Parameters getConfigParameters()
InternalModuleServiceCall
getConfigParameters
in interface InternalModuleServiceCall
public java.lang.String getConfigParametersString()
ModuleServiceCall
getConfigParametersString
in interface ModuleServiceCall
public Parameters getParameters()
InternalModuleServiceCall
getParameters
in interface InternalModuleServiceCall
public java.lang.String getParametersString()
ModuleServiceCall
getParametersString
in interface ModuleServiceCall
public long getBeginTime()
ModuleServiceCall
getBeginTime
in interface ModuleServiceCall
public long getEndTime()
ModuleServiceCall
getEndTime
in interface ModuleServiceCall
public long getDuration()
ModuleServiceCall
getDuration
in interface ModuleServiceCall
public boolean isPaused()
ModuleServiceCall
isPaused
in interface ModuleServiceCall
public void pause()
InternalModuleServiceCall
pause
in interface InternalModuleServiceCall
public void resume()
InternalModuleServiceCall
resume
in interface InternalModuleServiceCall
public void setNewlyBlockedModule(boolean newlyBlockedModule)
public boolean getNewlyBlockedModule()
public void finishOk()
InternalModuleServiceCall
finishOk
in interface InternalModuleServiceCall
public void finishError(java.lang.String errorMessage)
InternalModuleServiceCall
finishError
in interface InternalModuleServiceCall
errorMessage
- Reason for finishing with error.public void finish(ModuleServiceResult result)
InternalModuleServiceCall
finish
in interface InternalModuleServiceCall
result
- Service result.public void halt(ModuleServiceResult result)
InternalModuleServiceCall
halt
in interface InternalModuleServiceCall
result
- Must include reason for halting.public void halt(java.lang.String errorMessage)
InternalModuleServiceCall
halt
in interface InternalModuleServiceCall
errorMessage
- Reason for halting.public void interrupt()
InternalModuleServiceCall
interrupt
in interface InternalModuleServiceCall
public boolean isRunning()
ModuleServiceCall
isRunning
in interface ModuleServiceCall
public ServiceJob getServiceProcess()
ModuleServiceCall
getServiceProcess
in interface ModuleServiceCall
public double getExecutionPercentage()
ModuleServiceCall
getExecutionPercentage
in interface ModuleServiceCall
public void setExecutionPercentage(double percentage)
InternalModuleServiceCall
setExecutionPercentage
in interface InternalModuleServiceCall
percentage
- Number between 0 and 100.public java.lang.String getAction()
ModuleServiceCall
getAction
in interface ModuleServiceCall
public java.lang.String getLocation()
ModuleServiceCall
getLocation
in interface ModuleServiceCall
public void setAction(java.lang.String action)
InternalModuleServiceCall
setAction
in interface InternalModuleServiceCall
action
- We are doing this currently.public long getId()
ModuleServiceCall
getId
in interface ModuleServiceCall
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 ModuleServiceCall getParentServiceCall()
ModuleServiceCall
getParentServiceCall
in interface ModuleServiceCall
null
.public ModuleServiceResult getServiceResult()
ModuleServiceCall
getServiceResult
in interface ModuleServiceCall
null
.public InternalServiceJob getInternalServiceProcess()
InternalModuleServiceCall
getInternalServiceProcess
in interface InternalModuleServiceCall
public void setServiceCompleteness(ServiceCompleteness completeness)
InternalModuleServiceCall
setServiceCompleteness
in interface InternalModuleServiceCall
completeness
- An answer for completeness questions. Might be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |