Package step.plugins.interactive
Class InteractiveServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.plugins.interactive.InteractiveServices
-
@Singleton @Path("interactive") public class InteractiveServices extends AbstractServices
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InteractiveServices.FunctionTestingSession
-
Field Summary
-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller
-
-
Constructor Summary
Constructors Constructor Description InteractiveServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportNode
executeArtefact(java.lang.String sessionId, java.lang.String planId, java.lang.String artefactId, javax.ws.rs.container.ContainerRequestContext crc)
protected AbstractArtefact
findArtefactInPlan(java.lang.String planId, java.lang.String artefactId)
void
init()
java.lang.String
start(ExecutionParameters executionParameters)
InteractiveServices.FunctionTestingSession
startFunctionTestingSession(java.lang.String keywordid)
void
stop(java.lang.String sessionId)
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, setSession
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classAbstractServices
- Throws:
java.lang.Exception
-
start
@POST @Consumes("application/json") @Path("/start") public java.lang.String start(ExecutionParameters executionParameters) throws step.grid.client.AbstractGridClientImpl.AgentCommunicationException
- Throws:
step.grid.client.AbstractGridClientImpl.AgentCommunicationException
-
stop
@POST @Consumes("application/json") @Path("/{id}/stop") public void stop(@PathParam("id") java.lang.String sessionId) throws FunctionExecutionServiceException, java.lang.InterruptedException, java.util.concurrent.ExecutionException
- Throws:
FunctionExecutionServiceException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
-
executeArtefact
@POST @Consumes("application/json") @Path("/{id}/execute/{planid}/{artefactid}") public ReportNode executeArtefact(@PathParam("id") java.lang.String sessionId, @PathParam("planid") java.lang.String planId, @PathParam("artefactid") java.lang.String artefactId, @Context javax.ws.rs.container.ContainerRequestContext crc) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
- Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
-
findArtefactInPlan
protected AbstractArtefact findArtefactInPlan(java.lang.String planId, java.lang.String artefactId)
-
startFunctionTestingSession
@POST @Consumes("application/json") @Path("/functiontest/{keywordid}/start") public InteractiveServices.FunctionTestingSession startFunctionTestingSession(@PathParam("keywordid") java.lang.String keywordid) throws step.grid.client.AbstractGridClientImpl.AgentCommunicationException
- Throws:
step.grid.client.AbstractGridClientImpl.AgentCommunicationException
-
-