public interface ApplicationService
Modifier and Type | Method and Description |
---|---|
void |
addApplication(URI applicationURL)
Adds a new application to the application list.
|
List<FeatureDetails> |
findApplicationFeatures(String applicationName)
Returns List of FeatureDtos with repository and status information by Application
|
Application |
findFeature(org.apache.karaf.features.Feature feature)
Determine which application contains a certain feature.
|
List<FeatureDetails> |
getAllFeatures()
Returns List of FeatureDtos with repository and status information
|
Application |
getApplication(String applicationName)
Returns the application that has the given name
|
Set<Application> |
getApplications()
Retrieve a set of applications are currently installed in the system.
|
ApplicationStatus |
getApplicationStatus(Application application)
Retrieve the status for the given application.
|
Set<ApplicationNode> |
getApplicationTree()
Creates a hierarchy tree of application nodes that show the relationship between applications.
|
List<org.apache.karaf.features.Feature> |
getInstallationProfiles()
Gets the application Profile features on the system.
|
boolean |
isApplicationStarted(Application application)
Determine if an application is currently started.
|
void |
removeApplication(Application application)
Removes the given application.
|
void |
removeApplication(String applicationName)
Removes an application that has the given name.
|
void |
removeApplication(URI applicationURL)
Removes an application that has the given URI.
|
void |
startApplication(Application application)
Starts an application, including any defined dependencies in the application.
|
void |
startApplication(String application)
Starts an application, including any defined dependencies in the application.
|
void |
stopApplication(Application application)
Stops an application, does not include any external transitive dependencies as they may be
needed by other applications.
|
void |
stopApplication(String application)
Stops an application, does not include any external transitive dependencies as they may be
needed by other applications.
|
Set<Application> getApplications()
Application getApplication(String applicationName)
applicationName
- Name of the application to retrieve. Is case-insensitive.boolean isApplicationStarted(Application application)
application
- Application to check if started.ApplicationStatus.ApplicationState
void startApplication(Application application) throws ApplicationServiceException
TODO DDF-3076 Re-evaluate the implementation of the ApplicationService
application
- Application instance to start.ApplicationServiceException
- If the application cannot start due to an error, the
exception will be thrown with the error message.void startApplication(String application) throws ApplicationServiceException
TODO DDF-3076 Re-evaluate the implementation of the ApplicationService
application
- Name of the application to start.ApplicationServiceException
- If the application cannot start due to an error, the
exception will be thrown with the error message.void stopApplication(Application application) throws ApplicationServiceException
application
- Application instance to stop.ApplicationServiceException
- If the application cannot stop due to an error (or it is
not started), the exception will be thrown with the error message.void stopApplication(String application) throws ApplicationServiceException
application
- Name of the application to stop.ApplicationServiceException
- If the application cannot stop due to an error (or it is
not started), the exception will be thrown with the error message.void addApplication(URI applicationURL) throws ApplicationServiceException
applicationURL
- URL location of the application. Currently must be a features repository.ApplicationServiceException
- If there is an error trying to add the application.void removeApplication(URI applicationURL) throws ApplicationServiceException
applicationURL
- URL location of the application. Currently must be a features repository.ApplicationServiceException
- If there is an error trying to remove the application.void removeApplication(Application application) throws ApplicationServiceException
application
- Application instance to remove.ApplicationServiceException
- If there is an error trying to remove the application.void removeApplication(String applicationName) throws ApplicationServiceException
applicationName
- Name of the application to remove.ApplicationServiceException
- If there is an error trying to remove the application.ApplicationStatus getApplicationStatus(Application application)
application
- Application to obtain status for.Set<ApplicationNode> getApplicationTree()
Application findFeature(org.apache.karaf.features.Feature feature)
feature
- The feature to search for.List<org.apache.karaf.features.Feature> getInstallationProfiles()
List<FeatureDetails> getAllFeatures()
List<FeatureDetails> findApplicationFeatures(String applicationName)
This work is licensed under a Creative Commons Attribution 4.0 International License.