Interface ApplicationManagerService
-
- All Known Implementing Classes:
ApplicationManager
public interface ApplicationManagerServiceOSGi service interface for the Application Management
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeployCarbonApp(String archPath, org.apache.axis2.engine.AxisConfiguration axisConfig)Deploy the provided carbon App..ArrayList<CarbonApplication>getCarbonApps(String tenantId)Returns all deployed carbon apps in the systemHashMap<String,Exception>getFaultyCarbonApps(String tenantId)Get the list of faulty CarbonApplications for the give tenant id.voidregisterDeploymentHandler(AppDeploymentHandler handler)All app deployers register their instances throgh this methodvoidundeployCarbonApp(CarbonApplication carbonApp, org.apache.axis2.engine.AxisConfiguration axisConfig)Undeploy the provided carbon App..voidunregisterDeploymentHandler(AppDeploymentHandler handler)Unregister the specified handler if it is already regitered
-
-
-
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 pathaxisConfig- - 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 instanceaxisConfig- - 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
-
-