public class ApplicationServiceBean extends Object implements ApplicationServiceBeanMBean
| Constructor and Description |
|---|
ApplicationServiceBean(ApplicationService appService,
ConfigurationAdmin configAdmin,
MBeanServer mBeanServer)
Creates an instance of an ApplicationServiceBean
|
| Modifier and Type | Method and Description |
|---|---|
void |
addApplications(List<Map<String,Object>> applicationURLList)
Adds a list of applications that are specified by their URL.
|
void |
destroy()
Destroys the application service bean by unregistering it from the MBean server.
|
List<Map<String,Object>> |
findApplicationFeatures(String applicationName)
Returns all Features in DDF by Application
|
List<Map<String,Object>> |
getAllFeatures()
Returns all Features in DDF
|
List<ApplicationPlugin> |
getApplicationPlugins()
Getter method for the plugin list.
|
List<Map<String,Object>> |
getApplications()
Creates an application list that has two attributes that describes relationships between
applications (parent and children dependencies).
|
List<Map<String,Object>> |
getApplicationTree()
Creates an application hierarchy tree that shows relationships between applications.
|
protected org.osgi.framework.BundleContext |
getContext() |
List<Map<String,Object>> |
getInstallationProfiles()
Gets all installation profiles on the system.
|
List<Map<String,Object>> |
getPluginsForApplication(String appName)
Returns the the json for the plugins based on the app name.
|
List<Map<String,Object>> |
getServices(String applicationID)
TODO:
|
void |
init()
Initializes the initial variables and registers the class to the MBean server.
|
void |
removeApplication(String appName)
Removes an application that is specified by its URL.
|
void |
setApplicationPlugins(List<ApplicationPlugin> applicationPlugins)
Setter method for the plugin list.
|
boolean |
startApplication(String appName)
Starts an application with the given name.
|
boolean |
stopApplication(String appName)
Stops an application with the given name.
|
public ApplicationServiceBean(ApplicationService appService, ConfigurationAdmin configAdmin, MBeanServer mBeanServer) throws ApplicationServiceException
appService - ApplicationService that is running in the system.ApplicationServiceException - If an error occurs when trying to construct the MBean
objects.public void init()
throws ApplicationServiceException
ApplicationServiceException - if an error occurs during registration.public void destroy()
throws ApplicationServiceException
ApplicationServiceException - if an error occurs during unregistration.public List<Map<String,Object>> getInstallationProfiles()
ApplicationServiceBeanMBeangetInstallationProfiles in interface ApplicationServiceBeanMBeanpublic List<Map<String,Object>> getApplicationTree()
ApplicationServiceBeanMBeangetApplicationTree in interface ApplicationServiceBeanMBeanpublic List<Map<String,Object>> getApplications()
ApplicationServiceBeanMBeangetApplications in interface ApplicationServiceBeanMBeanpublic boolean startApplication(String appName)
ApplicationServiceBeanMBeanstartApplication in interface ApplicationServiceBeanMBeanappName - Name of the application to start.public boolean stopApplication(String appName)
ApplicationServiceBeanMBeanstopApplication in interface ApplicationServiceBeanMBeanappName - Name of the application to stop.public void addApplications(List<Map<String,Object>> applicationURLList)
ApplicationServiceBeanMBeanaddApplications in interface ApplicationServiceBeanMBeanpublic void removeApplication(String appName)
ApplicationServiceBeanMBeanremoveApplication in interface ApplicationServiceBeanMBeanpublic List<Map<String,Object>> getServices(String applicationID)
getServices in interface ApplicationServiceBeanMBeanpublic List<ApplicationPlugin> getApplicationPlugins()
public void setApplicationPlugins(List<ApplicationPlugin> applicationPlugins)
applicationPlugins - the plugin list.public List<Map<String,Object>> getAllFeatures()
ApplicationServiceBeanMBeangetAllFeatures in interface ApplicationServiceBeanMBeanpublic List<Map<String,Object>> findApplicationFeatures(String applicationName)
ApplicationServiceBeanMBeanfindApplicationFeatures in interface ApplicationServiceBeanMBeanprotected org.osgi.framework.BundleContext getContext()
public List<Map<String,Object>> getPluginsForApplication(String appName)
getPluginsForApplication in interface ApplicationServiceBeanMBeanappName - - what we want the plugins for.This work is licensed under a Creative Commons Attribution 4.0 International License.