Class ApplicationAdmin


  • public class ApplicationAdmin
    extends org.wso2.carbon.core.AbstractAdmin
    • Constructor Detail

      • ApplicationAdmin

        public ApplicationAdmin()
    • Method Detail

      • listAllApplications

        public String[] listAllApplications()
                                     throws Exception
        Give the names of all applications in the system
        Returns:
        - names array
        Throws:
        Exception - - error on getting carbon app service
      • listAllFaultyApplications

        public String[] listAllFaultyApplications()
                                           throws Exception
        Give the names of all faulty applications in the system
        Returns:
        - names array
        Throws:
        Exception - - error on getting carbon app service
      • getFaultException

        public String getFaultException​(String faultCarbonAppName)
                                 throws Exception
        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

        public void deleteApplication​(String appName)
                               throws Exception
        Deletes an entire application by deleting all its artifacts
        Parameters:
        appName - - name of the Application to be deleted
        Throws:
        Exception - - invalid scenarios
      • deleteFaultyApplication

        public void deleteFaultyApplication​(String[] faultyAppName)
                                     throws Exception
        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

        public void deleteAllFaultyAppliations()
                                        throws Exception
        Throws:
        Exception
      • redeployApplication

        public void redeployApplication​(String appName)
                                 throws Exception
        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

        public ApplicationMetadata getAppData​(String appName)
                                       throws Exception
        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

        public DataHandler downloadCappArchive​(String fileName)
                                        throws Exception
        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