Package org.wso2.msf4j.deployer.internal
Class MSF4JDeployerSC
- java.lang.Object
-
- org.wso2.msf4j.deployer.internal.MSF4JDeployerSC
-
- All Implemented Interfaces:
org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener
public class MSF4JDeployerSC extends java.lang.Object implements org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListenerService component for Microservices Deployer.- Since:
- 2.4.0
-
-
Constructor Summary
Constructors Constructor Description MSF4JDeployerSC()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddMicroservicesRegitry(org.wso2.msf4j.MicroservicesRegistry registry, java.util.Map properties)To deploy micro services, we need to have at least one micro service registry in the system.voidonAllRequiredCapabilitiesAvailable()protected voidremoveMicroservicesRegistry(org.wso2.msf4j.MicroservicesRegistry microservicesRegistry, java.util.Map properties)protected voidstart(org.osgi.framework.BundleContext bundleContext)protected voidstop()
-
-
-
Method Detail
-
start
protected void start(org.osgi.framework.BundleContext bundleContext)
-
stop
protected void stop()
-
onAllRequiredCapabilitiesAvailable
public void onAllRequiredCapabilitiesAvailable()
- Specified by:
onAllRequiredCapabilitiesAvailablein interfaceorg.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener
-
addMicroservicesRegitry
protected void addMicroservicesRegitry(org.wso2.msf4j.MicroservicesRegistry registry, java.util.Map properties)To deploy micro services, we need to have at least one micro service registry in the system. Since microservice registry is added when microservice server is active, added the reference to wait till microservices server is active. Otherwise if deployer registered before at least one registry is added, Deployer will start to deploy services and will fail deployment.
-
removeMicroservicesRegistry
protected void removeMicroservicesRegistry(org.wso2.msf4j.MicroservicesRegistry microservicesRegistry, java.util.Map properties)
-
-