public class ApplicationAdmin
extends org.wso2.carbon.core.AbstractAdmin
Constructor and Description |
---|
ApplicationAdmin() |
Modifier and Type | Method and Description |
---|---|
void |
deleteAllFaultyAppliations() |
void |
deleteApplication(String appName)
Deletes an entire application by deleting all its artifacts
|
void |
deleteFaultyApplication(String[] faultyAppName)
Deletes an entire application by deleting all its artifacts
|
DataHandler |
downloadCappArchive(String fileName)
Used to download a carbon application archive.
|
ApplicationMetadata |
getAppData(String appName)
Gives an ApplicationMetadata object with axis2 artifacts deployed through the given app.
|
String |
getFaultException(String faultCarbonAppName)
Gives Fault Reason of the given Faulty Carbon Application
|
String[] |
listAllApplications()
Give the names of all applications in the system
|
String[] |
listAllFaultyApplications()
Give the names of all faulty applications in the system
|
void |
redeployApplication(String appName)
Mark an application to be redeployed again in the next deployment pass.
|
getAxisConfig, getConfigContext, getConfigSystemRegistry, getConfigUserRegistry, getGovernanceRegistry, getGovernanceSystemRegistry, getGovernanceUserRegistry, getHttpSession, getLocalRepo, getRegistry, getTenantDomain, getUsername, getUserRealm, setConfigurationContext, setPermissionUpdateTimestamp
public String[] listAllApplications() throws Exception
Exception
- - error on getting carbon app servicepublic String[] listAllFaultyApplications() throws Exception
Exception
- - error on getting carbon app servicepublic String getFaultException(String faultCarbonAppName) throws Exception
faultCarbonAppName
- - name of the faulty ApplicationException
- - error on getting carbon app servicepublic void deleteApplication(String appName) throws Exception
appName
- - name of the Application to be deletedException
- - invalid scenariospublic void deleteFaultyApplication(String[] faultyAppName) throws Exception
faultyAppName
- - name of the Application to be deletedException
- - error on getting carbon app servicepublic void deleteAllFaultyAppliations() throws Exception
Exception
public void redeployApplication(String appName) throws Exception
appPName
- - input app nameException
- - error on redeploying app filepublic ApplicationMetadata getAppData(String appName) throws Exception
appName
- - input app nameException
- - error on retrieving metadatapublic DataHandler downloadCappArchive(String fileName) throws Exception
fileName
- the name of the application archive (.car) to be downloadedException
- for invalid scenariosCopyright © 2020 WSO2. All rights reserved.