Package step.controller.grid.services
Class AbtractFunctionServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.controller.grid.services.AbtractFunctionServices
-
- Direct Known Subclasses:
FunctionServices
public abstract class AbtractFunctionServices extends AbstractServices
-
-
Field Summary
Fields Modifier and Type Field Description protected FunctionAccessor
functionAccessor
protected FunctionExecutionService
functionExecutionService
protected FunctionLocator
functionLocator
protected FunctionManager
functionManager
protected ObjectPredicateFactory
objectPredicateFactory
protected ReportNodeAttachmentManager
reportNodeAttachmentManager
protected SelectorHelper
selectorHelper
-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller
-
-
Constructor Summary
Constructors Constructor Description AbtractFunctionServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description step.functions.io.Output<javax.json.JsonObject>
callFunction(java.lang.String tokenId, java.lang.String functionId, FunctionInput<javax.json.JsonObject> input)
step.functions.io.Output<javax.json.JsonObject>
callFunction(java.lang.String tokenId, FunctionInput<javax.json.JsonObject> input, javax.ws.rs.core.UriInfo uriInfo)
void
copyFunction(java.lang.String id)
void
delete(java.lang.String functionId)
java.util.List<Function>
findMany(java.util.Map<java.lang.String,java.lang.String> attributes)
Function
get(java.lang.String functionId)
Function
get(java.util.Map<java.lang.String,java.lang.String> attributes)
java.util.List<Function>
getAll(java.lang.Integer skip, java.lang.Integer limit)
java.lang.String
getFunctionEditor(java.lang.String functionId)
step.grid.TokenWrapper
getTokenHandle(GetTokenHandleParameter parameter, javax.servlet.http.HttpServletRequest req)
void
init()
Function
lookupCallFunction(CallFunction callFunction)
Function
newFunctionTypeConf(java.lang.String type)
void
returnTokenHandle(java.lang.String tokenId)
Function
save(Function function)
-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getObjectEnricher, getScheduler, getSession, setSession
-
-
-
-
Field Detail
-
reportNodeAttachmentManager
protected ReportNodeAttachmentManager reportNodeAttachmentManager
-
functionAccessor
protected FunctionAccessor functionAccessor
-
functionManager
protected FunctionManager functionManager
-
functionExecutionService
protected FunctionExecutionService functionExecutionService
-
selectorHelper
protected SelectorHelper selectorHelper
-
functionLocator
protected FunctionLocator functionLocator
-
objectPredicateFactory
protected ObjectPredicateFactory objectPredicateFactory
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classAbstractServices
- Throws:
java.lang.Exception
-
getAll
@GET @Produces("application/json") public java.util.List<Function> getAll(@QueryParam("skip") java.lang.Integer skip, @QueryParam("limit") java.lang.Integer limit)
-
get
@GET @Path("/{id}") @Produces("application/json") public Function get(@PathParam("id") java.lang.String functionId)
-
get
@POST @Path("/search") @Produces("application/json") public Function get(java.util.Map<java.lang.String,java.lang.String> attributes)
-
findMany
@POST @Path("/find") @Produces("application/json") public java.util.List<Function> findMany(java.util.Map<java.lang.String,java.lang.String> attributes)
-
lookupCallFunction
@POST @Path("/lookup") @Produces("application/json") public Function lookupCallFunction(CallFunction callFunction)
-
getFunctionEditor
@GET @Path("/{id}/editor") public java.lang.String getFunctionEditor(@PathParam("id") java.lang.String functionId)
-
save
@POST @Consumes("application/json") @Produces("application/json") public Function save(Function function) throws SetupFunctionException, FunctionTypeException
-
copyFunction
@POST @Path("/{id}/copy") @Consumes("application/json") @Produces("application/json") public void copyFunction(@PathParam("id") java.lang.String id) throws FunctionTypeException
- Throws:
FunctionTypeException
-
delete
@DELETE @Path("/{id}") public void delete(@PathParam("id") java.lang.String functionId) throws FunctionTypeException
- Throws:
FunctionTypeException
-
newFunctionTypeConf
@GET @Path("/types/{id}") @Consumes("application/json") @Produces("application/json") public Function newFunctionTypeConf(@PathParam("id") java.lang.String type)
-
getTokenHandle
@POST @Produces("application/json") @Path("/executor/tokens/select") public step.grid.TokenWrapper getTokenHandle(GetTokenHandleParameter parameter, @Context javax.servlet.http.HttpServletRequest req) throws FunctionExecutionServiceException
-
returnTokenHandle
@POST @Produces("application/json") @Path("/executor/tokens/{id}/return") public void returnTokenHandle(@PathParam("id") java.lang.String tokenId) throws FunctionExecutionServiceException
-
callFunction
@POST @Produces("application/json") @Path("/executor/tokens/{id}/execute/{functionId}") public step.functions.io.Output<javax.json.JsonObject> callFunction(@PathParam("id") java.lang.String tokenId, @PathParam("functionId") java.lang.String functionId, FunctionInput<javax.json.JsonObject> input)
-
callFunction
@POST @Produces("application/json") @Path("/executor/tokens/{id}/execute") public step.functions.io.Output<javax.json.JsonObject> callFunction(@PathParam("id") java.lang.String tokenId, FunctionInput<javax.json.JsonObject> input, @Context javax.ws.rs.core.UriInfo uriInfo)
-
-