Class MSF4JDeployerSC

  • All Implemented Interfaces:
    org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener

    public class MSF4JDeployerSC
    extends java.lang.Object
    implements org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener
    Service 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 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.
      void onAllRequiredCapabilitiesAvailable()  
      protected void removeMicroservicesRegistry​(org.wso2.msf4j.MicroservicesRegistry microservicesRegistry, java.util.Map properties)  
      protected void start​(org.osgi.framework.BundleContext bundleContext)  
      protected void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MSF4JDeployerSC

        public MSF4JDeployerSC()
    • Method Detail

      • start

        protected void start​(org.osgi.framework.BundleContext bundleContext)
      • stop

        protected void stop()
      • onAllRequiredCapabilitiesAvailable

        public void onAllRequiredCapabilitiesAvailable()
        Specified by:
        onAllRequiredCapabilitiesAvailable in interface org.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)