Package org.wso2.msf4j.deployer.internal
Class MicroservicesDeployer
- java.lang.Object
-
- org.wso2.msf4j.deployer.internal.MicroservicesDeployer
-
- All Implemented Interfaces:
org.wso2.carbon.deployment.engine.Deployer
public class MicroservicesDeployer extends java.lang.Object implements org.wso2.carbon.deployment.engine.DeployerImplementation of the micro service deployer. This will be picked by the DeploymentEngine service according to the whiteboard pattern to deploy micro service POJO artifacts.
-
-
Constructor Summary
Constructors Constructor Description MicroservicesDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectdeploy(org.wso2.carbon.deployment.engine.Artifact artifact)Deploy and artifact in the netty-http service.org.wso2.carbon.deployment.engine.ArtifactTypegetArtifactType()java.net.URLgetLocation()voidinit()voidundeploy(java.lang.Object key)Undeploy the artifact with the key from the netty-http service.java.lang.Objectupdate(org.wso2.carbon.deployment.engine.Artifact artifact)Update the artifact from the netty-http service.
-
-
-
Method Detail
-
init
public void init()
- Specified by:
initin interfaceorg.wso2.carbon.deployment.engine.Deployer
-
deploy
public java.lang.Object deploy(org.wso2.carbon.deployment.engine.Artifact artifact) throws org.wso2.carbon.deployment.engine.exception.CarbonDeploymentExceptionDeploy and artifact in the netty-http service.- Specified by:
deployin interfaceorg.wso2.carbon.deployment.engine.Deployer- Parameters:
artifact- the artifact to be deployed- Returns:
- A key to identify the deployed artifact
- Throws:
org.wso2.carbon.deployment.engine.exception.CarbonDeploymentException- If deployment fails
-
undeploy
public void undeploy(java.lang.Object key) throws org.wso2.carbon.deployment.engine.exception.CarbonDeploymentExceptionUndeploy the artifact with the key from the netty-http service.- Specified by:
undeployin interfaceorg.wso2.carbon.deployment.engine.Deployer- Parameters:
key- Key to identify the artifact- Throws:
org.wso2.carbon.deployment.engine.exception.CarbonDeploymentException- If an error occurs while undeploying
-
update
public java.lang.Object update(org.wso2.carbon.deployment.engine.Artifact artifact) throws org.wso2.carbon.deployment.engine.exception.CarbonDeploymentExceptionUpdate the artifact from the netty-http service.- Specified by:
updatein interfaceorg.wso2.carbon.deployment.engine.Deployer- Parameters:
artifact- the artifact to be deployed- Returns:
- A key to identify the deployed artifact
- Throws:
org.wso2.carbon.deployment.engine.exception.CarbonDeploymentException- If update fails
-
getLocation
public java.net.URL getLocation()
- Specified by:
getLocationin interfaceorg.wso2.carbon.deployment.engine.Deployer- Returns:
- Artifact deployment location relative to the server dir in repository
-
getArtifactType
public org.wso2.carbon.deployment.engine.ArtifactType getArtifactType()
- Specified by:
getArtifactTypein interfaceorg.wso2.carbon.deployment.engine.Deployer- Returns:
- Artifact deployment location
-
-