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()
ApplicationServiceBeanMBean
getInstallationProfiles
in interface ApplicationServiceBeanMBean
public List<Map<String,Object>> getApplicationTree()
ApplicationServiceBeanMBean
getApplicationTree
in interface ApplicationServiceBeanMBean
public List<Map<String,Object>> getApplications()
ApplicationServiceBeanMBean
getApplications
in interface ApplicationServiceBeanMBean
public boolean startApplication(String appName)
ApplicationServiceBeanMBean
startApplication
in interface ApplicationServiceBeanMBean
appName
- Name of the application to start.public boolean stopApplication(String appName)
ApplicationServiceBeanMBean
stopApplication
in interface ApplicationServiceBeanMBean
appName
- Name of the application to stop.public void addApplications(List<Map<String,Object>> applicationURLList)
ApplicationServiceBeanMBean
addApplications
in interface ApplicationServiceBeanMBean
public void removeApplication(String appName)
ApplicationServiceBeanMBean
removeApplication
in interface ApplicationServiceBeanMBean
public List<Map<String,Object>> getServices(String applicationID)
getServices
in interface ApplicationServiceBeanMBean
public List<ApplicationPlugin> getApplicationPlugins()
public void setApplicationPlugins(List<ApplicationPlugin> applicationPlugins)
applicationPlugins
- the plugin list.public List<Map<String,Object>> getAllFeatures()
ApplicationServiceBeanMBean
getAllFeatures
in interface ApplicationServiceBeanMBean
public List<Map<String,Object>> findApplicationFeatures(String applicationName)
ApplicationServiceBeanMBean
findApplicationFeatures
in interface ApplicationServiceBeanMBean
protected org.osgi.framework.BundleContext getContext()
public List<Map<String,Object>> getPluginsForApplication(String appName)
getPluginsForApplication
in interface ApplicationServiceBeanMBean
appName
- - what we want the plugins for.This work is licensed under a Creative Commons Attribution 4.0 International License.