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 Voidabort(String executionID)ExecutiontTaskParameterscreateExecutionTask(String executionTaskID)voidenableExecutionTask(String executionTaskID)Stringexecute(String executionTaskID)Stringexecute(ExecutionParameters executionParams)ArtefactInfogetArtefactInfo(RepositoryObjectReference ref)AbstractArtefactgetArtefactType(String type)Set<String>getArtefactTypes()ExecutiontTaskParametersgetExecutionTask(String executionTaskID)TestSetStatusOverviewgetReport(RepositoryObjectReference report)ReportNodegetReportNode(String reportNodeId)List<ReportNode>getReportNodeChildren(String reportNodeId, Integer skip, Integer limit)List<ReportNode>getReportNodePath(String reportNodeId)List<ExecutiontTaskParameters>getScheduledExecutions()voidremoveExecutionTask(String executionTaskID, Boolean remove)voidschedule(ExecutiontTaskParameters schedule)voidshutdown()-
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
-
-