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
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectDrainer, getObjectEnricher, getScheduler, getSession, setSession
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws Exception
- Overrides:
init
in classAbstractServices
- Throws:
Exception
-
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)
-
enableAllExecutionTasksSchedule
@PUT @Path("/task/schedule") public void enableAllExecutionTasksSchedule(@QueryParam("enabled") Boolean enabled)
-
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()
-
getArtefactTemplates
@GET @Path("/artefact/templates") @Consumes("application/json") @Produces("application/json") public Set<String> getArtefactTemplates()
-
getArtefactType
@GET @Path("/artefact/types/{id}") @Consumes("application/json") @Produces("application/json") public AbstractArtefact getArtefactType(@PathParam("id") String type) throws Exception
- Throws:
Exception
-
-