Class ApplicationServiceBean
java.lang.Object
org.codice.ddf.admin.application.service.impl.ApplicationServiceBean
- All Implemented Interfaces:
ApplicationServiceBeanMBean
Implementation of the Application Service MBean. Provides an MBean interface for the application
service api.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationServiceBean(ApplicationService appService, org.codice.ddf.admin.core.api.ConfigurationAdmin configAdmin, MBeanServer mBeanServer, org.codice.ddf.sync.installer.api.SynchronizedInstaller syncInstaller, org.apache.karaf.system.SystemService systemService) Creates an instance of an ApplicationServiceBean -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroys the application service bean by unregistering it from the MBean server.Returns all Features in DDFGetter method for the plugin list.Creates an application list that has two attributes that describes relationships between applications (parent and children dependencies).protected org.osgi.framework.BundleContextGets all installation profiles on the system.getPluginsForApplication(String appName) Returns the the json for the plugins based on the app name.getServices(String applicationID) TODO:voidinit()Initializes the initial variables and registers the class to the MBean server.voidinstallFeature(String feature) Installs the specified featurevoidrestart()Triggers a restart of the system.voidsetApplicationPlugins(List<ApplicationPlugin> applicationPlugins) Setter method for the plugin list.voidsetSecurityLogger(ddf.security.audit.SecurityLogger securityLogger) voiduninstallFeature(String feature) Uninstalls the specified feature
-
Constructor Details
-
ApplicationServiceBean
public ApplicationServiceBean(ApplicationService appService, org.codice.ddf.admin.core.api.ConfigurationAdmin configAdmin, MBeanServer mBeanServer, org.codice.ddf.sync.installer.api.SynchronizedInstaller syncInstaller, org.apache.karaf.system.SystemService systemService) throws ApplicationServiceException Creates an instance of an ApplicationServiceBean- Parameters:
appService- ApplicationService that is running in the system.- Throws:
ApplicationServiceException- If an error occurs when trying to construct the MBean objects.
-
-
Method Details
-
init
Initializes the initial variables and registers the class to the MBean server.
NOTE: This should be run before any other operations are performed. Operations will NOT be usable until this is called (and until destroy() is called).- Throws:
ApplicationServiceException- if an error occurs during registration.
-
destroy
Destroys the application service bean by unregistering it from the MBean server.
NOTE: This should be run after all operations are completed and the bean is no longer needed. Operations will NOT be usable after this is called (until init() is called).- Throws:
ApplicationServiceException- if an error occurs during unregistration.
-
installFeature
Description copied from interface:ApplicationServiceBeanMBeanInstalls the specified feature- Specified by:
installFeaturein interfaceApplicationServiceBeanMBean- Parameters:
feature- name to install.
-
uninstallFeature
Description copied from interface:ApplicationServiceBeanMBeanUninstalls the specified feature- Specified by:
uninstallFeaturein interfaceApplicationServiceBeanMBean- Parameters:
feature- name to install.
-
getInstallationProfiles
Description copied from interface:ApplicationServiceBeanMBeanGets all installation profiles on the system.- Specified by:
getInstallationProfilesin interfaceApplicationServiceBeanMBean- Returns:
- installation profile objects.
-
getApplications
Description copied from interface:ApplicationServiceBeanMBeanCreates an application list that has two attributes that describes relationships between applications (parent and children dependencies).- Specified by:
getApplicationsin interfaceApplicationServiceBeanMBean- Returns:
- A list of the root applications expressed as maps.
-
getServices
TODO:.- Specified by:
getServicesin interfaceApplicationServiceBeanMBean- Returns:
-
getApplicationPlugins
Getter method for the plugin list.- Returns:
- the plugin list.
-
setApplicationPlugins
Setter method for the plugin list.- Parameters:
applicationPlugins- the plugin list.
-
getAllFeatures
Description copied from interface:ApplicationServiceBeanMBeanReturns all Features in DDF- Specified by:
getAllFeaturesin interfaceApplicationServiceBeanMBean- Returns:
-
getContext
protected org.osgi.framework.BundleContext getContext() -
getPluginsForApplication
Returns the the json for the plugins based on the app name..- Specified by:
getPluginsForApplicationin interfaceApplicationServiceBeanMBean- Parameters:
appName- - what we want the plugins for.- Returns:
- a mapping that will be converted to json.
-
restart
public void restart()Description copied from interface:ApplicationServiceBeanMBeanTriggers a restart of the system.- Specified by:
restartin interfaceApplicationServiceBeanMBean
-
setSecurityLogger
public void setSecurityLogger(ddf.security.audit.SecurityLogger securityLogger)
-