Package step.core.deployment
Class ControllerServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.core.deployment.ControllerServices
-
@Singleton @Path("controller") public class ControllerServices extends AbstractServices
-
-
Field Summary
-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller
-
-
Constructor Summary
Constructors Constructor Description ControllerServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
abort(String executionID)
ExecutiontTaskParameters
createExecutionTask(String executionTaskID)
void
enableExecutionTask(String executionTaskID)
String
execute(String executionTaskID)
String
execute(ExecutionParameters executionParams)
ArtefactInfo
getArtefactInfo(RepositoryObjectReference ref)
AbstractArtefact
getArtefactType(String type)
Set<String>
getArtefactTypes()
ExecutiontTaskParameters
getExecutionTask(String executionTaskID)
TestSetStatusOverview
getReport(RepositoryObjectReference report)
ReportNode
getReportNode(String reportNodeId)
List<ReportNode>
getReportNodeChildren(String reportNodeId, Integer skip, Integer limit)
List<ReportNode>
getReportNodePath(String reportNodeId)
List<ExecutiontTaskParameters>
getScheduledExecutions()
void
removeExecutionTask(String executionTaskID, Boolean remove)
void
schedule(ExecutiontTaskParameters schedule)
void
shutdown()
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getScheduler, getSession, init, setSession
-
-
-
-
Method Detail
-
shutdown
@POST @Consumes("application/json") @Path("/shutdown") public void shutdown()
-
schedule
@POST @Consumes("application/json") @Path("/task") public void schedule(ExecutiontTaskParameters schedule)
-
execute
@POST @Consumes("application/json") @Path("/task/{id}/execute") public String execute(@PathParam("id") String executionTaskID)
-
enableExecutionTask
@PUT @Path("/task/{id}") public void enableExecutionTask(@PathParam("id") String executionTaskID)
-
removeExecutionTask
@DELETE @Path("/task/{id}") public void removeExecutionTask(@PathParam("id") String executionTaskID, @QueryParam("remove") Boolean remove)
-
getExecutionTask
@GET @Path("/task/{id}") @Produces("application/json") public ExecutiontTaskParameters getExecutionTask(@PathParam("id") String executionTaskID)
-
createExecutionTask
@GET @Path("/task/new") @Produces("application/json") public ExecutiontTaskParameters createExecutionTask(@PathParam("id") String executionTaskID)
-
getScheduledExecutions
@GET @Path("/task") @Produces("application/json") public List<ExecutiontTaskParameters> getScheduledExecutions()
-
execute
@POST @Consumes("application/json") @Path("/execution") public String execute(ExecutionParameters executionParams)
-
getReportNode
@GET @Path("/reportnode/{id}") @Produces("application/json") public ReportNode getReportNode(@PathParam("id") String reportNodeId)
-
getReportNodePath
@GET @Path("/reportnode/{id}/path") public List<ReportNode> getReportNodePath(@PathParam("id") String reportNodeId)
-
getReportNodeChildren
@GET @Path("/reportnode/{id}/children") @Produces("application/json") public List<ReportNode> getReportNodeChildren(@PathParam("id") String reportNodeId, @QueryParam("skip") Integer skip, @QueryParam("limit") Integer limit)
-
getArtefactInfo
@POST @Path("/repository/artefact/info") @Consumes("application/json") @Produces("application/json") public ArtefactInfo getArtefactInfo(RepositoryObjectReference ref)
-
getReport
@POST @Path("/repository/report") @Consumes("application/json") @Produces("application/json") public TestSetStatusOverview getReport(RepositoryObjectReference report) throws Exception
- Throws:
Exception
-
getArtefactTypes
@GET @Path("/artefact/types") @Consumes("application/json") @Produces("application/json") public Set<String> getArtefactTypes()
-
getArtefactType
@GET @Path("/artefact/types/{id}") @Consumes("application/json") @Produces("application/json") public AbstractArtefact getArtefactType(@PathParam("id") String type) throws Exception
- Throws:
Exception
-
-