public class ApplicationStatusImpl extends Object implements ApplicationStatus
ApplicationStatus.ApplicationState
Constructor and Description |
---|
ApplicationStatusImpl(Application application,
ApplicationStatus.ApplicationState installState,
Set<org.apache.karaf.features.Feature> errorFeatures,
Set<org.osgi.framework.Bundle> errorBundles)
Creates a new instance of application status.
|
Modifier and Type | Method and Description |
---|---|
Application |
getApplication()
Application this status is for.
|
Set<org.osgi.framework.Bundle> |
getErrorBundles()
Gets the bundles for this application that are not properly installed.
|
Set<org.apache.karaf.features.Feature> |
getErrorFeatures()
Gets the features for this application that are not properly installed.
|
ApplicationStatus.ApplicationState |
getState()
Retrieves the state of the current application.
|
public ApplicationStatusImpl(Application application, ApplicationStatus.ApplicationState installState, Set<org.apache.karaf.features.Feature> errorFeatures, Set<org.osgi.framework.Bundle> errorBundles)
application
- The application this status is for.installState
- The state of the application.errorFeatures
- Set of features that are in an error state.errorBundles
- Set of bundles that are in an error state.public Application getApplication()
ApplicationStatus
getApplication
in interface ApplicationStatus
public ApplicationStatus.ApplicationState getState()
ApplicationStatus
getState
in interface ApplicationStatus
ApplicationStatus.ApplicationState
for the current applicationpublic Set<org.apache.karaf.features.Feature> getErrorFeatures()
ApplicationStatus
getErrorFeatures
in interface ApplicationStatus
public Set<org.osgi.framework.Bundle> getErrorBundles()
ApplicationStatus
getErrorBundles
in interface ApplicationStatus
This work is licensed under a Creative Commons Attribution 4.0 International License.