Class CreateDeployment
java.lang.Object
net.lightapi.portal.command.AbstractCommandHandler
net.lightapi.portal.deployment.command.handler.CreateDeployment
- All Implemented Interfaces:
com.networknt.rpc.HybridHandler
public class CreateDeployment
extends net.lightapi.portal.command.AbstractCommandHandler
'
create a deployment for the given product.
-
Field Summary
FieldsFields inherited from class net.lightapi.portal.command.AbstractCommandHandler
config, HOST_ID, INCORRECT_TOKEN_TYPE, SEND_MESSAGE_EXCEPTION, USER_IDFields inherited from interface com.networknt.rpc.HybridHandler
ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalAction(io.undertow.server.HttpServerExchange exchange, Map<String, Object> map, String userId, String host) Invoke platform to start a deployment job, then add returned fields (jobId, etc.) to cloud event payload.enrichInput(io.undertow.server.HttpServerExchange exchange, Map<String, Object> map) protected Stringprotected org.slf4j.LoggerMethods inherited from class net.lightapi.portal.command.AbstractCommandHandler
buildCloudEvent, customizeOutput, handle, validateInput, validateTokenTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.networknt.rpc.HybridHandler
getStatus, getStatus, validate
-
Field Details
-
OBJECT_NOT_FOUND
- See Also:
-
GENERIC_EXCEPTION
- See Also:
-
-
Constructor Details
-
CreateDeployment
public CreateDeployment()
-
-
Method Details
-
getCloudEventType
- Specified by:
getCloudEventTypein classnet.lightapi.portal.command.AbstractCommandHandler
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classnet.lightapi.portal.command.AbstractCommandHandler
-
enrichInput
protected com.networknt.monad.Result<Map<String,Object>> enrichInput(io.undertow.server.HttpServerExchange exchange, Map<String, Object> map) - Overrides:
enrichInputin classnet.lightapi.portal.command.AbstractCommandHandler
-
additionalAction
protected com.networknt.monad.Result<Map<String,Object>> additionalAction(io.undertow.server.HttpServerExchange exchange, Map<String, Object> map, String userId, String host) Invoke platform to start a deployment job, then add returned fields (jobId, etc.) to cloud event payload.- Overrides:
additionalActionin classnet.lightapi.portal.command.AbstractCommandHandler
-