Package org.guvnor.rest.backend.cmd
Class AbstractJobCommand
- java.lang.Object
-
- org.guvnor.rest.backend.cmd.AbstractJobCommand
-
- All Implemented Interfaces:
Runnable,org.uberfire.commons.async.DescriptiveRunnable
- Direct Known Subclasses:
AddBranchCmd,AddProjectToSpaceCmd,CloneRepositoryCmd,CompileProjectCmd,CreateProjectCmd,CreateSpaceCmd,DeleteProjectCmd,DeployProjectCmd,InstallProjectCmd,RemoveBranchCmd,RemoveSpaceCmd,TestProjectCmd,UpdateSpaceCmd
public abstract class AbstractJobCommand extends Object implements org.uberfire.commons.async.DescriptiveRunnable
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>contextstatic StringJOB_REQUEST_KEYprotected JobRequestHelperjobRequestHelperprotected JobResultManagerjobResultManagerprotected static org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description AbstractJobCommand(JobRequestHelper jobRequestHelper, JobResultManager jobResultManager, Map<String,Object> context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetDescription()protected JobRequestHelpergetHelper()protected org.guvnor.rest.client.JobRequestgetJobRequest()protected abstract org.guvnor.rest.client.JobResultinternalExecute(org.guvnor.rest.client.JobRequest request)voidrun()
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
JOB_REQUEST_KEY
public static final String JOB_REQUEST_KEY
- See Also:
- Constant Field Values
-
jobRequestHelper
protected final JobRequestHelper jobRequestHelper
-
jobResultManager
protected final JobResultManager jobResultManager
-
-
Constructor Detail
-
AbstractJobCommand
public AbstractJobCommand(JobRequestHelper jobRequestHelper, JobResultManager jobResultManager, Map<String,Object> context)
-
-
Method Detail
-
getHelper
protected JobRequestHelper getHelper() throws Exception
- Throws:
Exception
-
getJobRequest
protected org.guvnor.rest.client.JobRequest getJobRequest()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceorg.uberfire.commons.async.DescriptiveRunnable
-
-