Interface ApplicationManagerService

  • All Known Implementing Classes:
    ApplicationManager

    public interface ApplicationManagerService
    OSGi service interface for the Application Management
    • Method Detail

      • registerDeploymentHandler

        void registerDeploymentHandler​(AppDeploymentHandler handler)
        All app deployers register their instances throgh this method
        Parameters:
        handler - - app deployer which implements the AppDeploymentHandler interface
      • unregisterDeploymentHandler

        void unregisterDeploymentHandler​(AppDeploymentHandler handler)
        Unregister the specified handler if it is already regitered
        Parameters:
        handler - - input deployer handler
      • deployCarbonApp

        void deployCarbonApp​(String archPath,
                             org.apache.axis2.engine.AxisConfiguration axisConfig)
                      throws Exception
        Deploy the provided carbon App..
        Parameters:
        archPath - - carbon app archive path
        axisConfig - - AxisConfiguration of the current tenant
        Throws:
        Exception - - error on registry actions
      • undeployCarbonApp

        void undeployCarbonApp​(CarbonApplication carbonApp,
                               org.apache.axis2.engine.AxisConfiguration axisConfig)
        Undeploy the provided carbon App..
        Parameters:
        carbonApp - - CarbonApplication instance
        axisConfig - - AxisConfiguration of the current tenant
      • getCarbonApps

        ArrayList<CarbonApplication> getCarbonApps​(String tenantId)
        Returns all deployed carbon apps in the system
        Parameters:
        tenantId - - tenant id to find cApps
        Returns:
        List of carbon apps
      • getFaultyCarbonApps

        HashMap<String,​Exception> getFaultyCarbonApps​(String tenantId)
        Get the list of faulty CarbonApplications for the give tenant id. If the list is null, return an empty Arraylist
        Parameters:
        tenantId - - tenant id to find faulty cApps
        Returns:
        - list of tenant faulty cApps