Package org.wso2.carbon.application.mgt
Class ApplicationAdmin
java.lang.Object
org.wso2.carbon.core.AbstractAdmin
org.wso2.carbon.application.mgt.ApplicationAdmin
public class ApplicationAdmin
extends org.wso2.carbon.core.AbstractAdmin
-
Field Summary
Fields inherited from class org.wso2.carbon.core.AbstractAdmin
axisConfig, configurationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteApplication(String appName) Deletes an entire application by deleting all its artifactsvoiddeleteFaultyApplication(String[] faultyAppName) Deletes an entire application by deleting all its artifactsdownloadCappArchive(String fileName) Used to download a carbon application archive.getAppData(String appName) Gives an ApplicationMetadata object with axis2 artifacts deployed through the given app.getFaultException(String faultCarbonAppName) Gives Fault Reason of the given Faulty Carbon ApplicationString[]Give the names of all applications in the systemString[]Give the names of all faulty applications in the systemvoidredeployApplication(String appName) Mark an application to be redeployed again in the next deployment pass.Methods inherited from class org.wso2.carbon.core.AbstractAdmin
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
-
Constructor Details
-
ApplicationAdmin
public ApplicationAdmin()
-
-
Method Details
-
listAllApplications
Give the names of all applications in the system- Returns:
- - names array
- Throws:
Exception- - error on getting carbon app service
-
listAllFaultyApplications
Give the names of all faulty applications in the system- Returns:
- - names array
- Throws:
Exception- - error on getting carbon app service
-
getFaultException
Gives Fault Reason of the given Faulty Carbon Application- Parameters:
faultCarbonAppName- - name of the faulty Application- Throws:
Exception- - error on getting carbon app service
-
deleteApplication
Deletes an entire application by deleting all its artifacts- Parameters:
appName- - name of the Application to be deleted- Throws:
Exception- - invalid scenarios
-
deleteFaultyApplication
Deletes an entire application by deleting all its artifacts- Parameters:
faultyAppName- - name of the Application to be deleted- Throws:
Exception- - error on getting carbon app service
-
deleteAllFaultyAppliations
- Throws:
Exception
-
redeployApplication
Mark an application to be redeployed again in the next deployment pass.- Parameters:
appPName- - input app name- Throws:
Exception- - error on redeploying app file
-
getAppData
Gives an ApplicationMetadata object with axis2 artifacts deployed through the given app.- Parameters:
appName- - input app name- Returns:
- - ApplicationMetadata object with found artifact info
- Throws:
Exception- - error on retrieving metadata
-
downloadCappArchive
Used to download a carbon application archive.- Parameters:
fileName- the name of the application archive (.car) to be downloaded- Returns:
- datahandler corresponding to the .car file to be downloaded
- Throws:
Exception- for invalid scenarios
-