@Service(value=ManagedServiceFactory.class) @Service(value=SystemStatusConfiguration.class) @Properties(value=@Property(name="service.pid",value="system.status.pid")) public class SystemStatusConfiguration extends java.lang.Object implements ManagedServiceFactory
| Constructor and Description |
|---|
SystemStatusConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleted(java.lang.String pid)
Remove a factory instance.
|
java.lang.String |
getName()
Return a descriptive name of this factory.
|
int |
getStatus(Alert alert) |
void |
start() |
void |
stop() |
void |
updated(java.lang.String pid,
java.util.Dictionary properties)
Create a new instance, or update the configuration of an existing
instance.
|
@Activate public void start()
@Deactivate public void stop()
public java.lang.String getName()
ManagedServiceFactorygetName in interface ManagedServiceFactorypublic void updated(java.lang.String pid,
java.util.Dictionary properties)
throws ConfigurationException
ManagedServiceFactoryConfiguration object is new for the
Managed Service Factory, then create a new factory instance, using the
configuration properties provided. Else, update the
service instance with the provided properties.
If the factory instance is registered with the Framework, then the
configuration properties should be copied to its registry
properties. This is not mandatory and security sensitive properties
should obviously not be copied.
If this method throws any Exception, the Configuration
Admin service must catch it and should log it.
When the implementation of updated detects any kind of error in the
configuration properties, it should create a new
ConfigurationException which describes the problem.
The Configuration Admin service must call this method asynchronously.
This implies that implementors of the ManagedServiceFactory
class can be assured that the callback will not take place during
registration when they execute the registration in a synchronized method.
updated in interface ManagedServiceFactorypid - The PID for this configuration.properties - A copy of the configuration properties. This argument
must not contain the service.bundleLocation" property. The value
of this property may be obtained from the
Configuration.getBundleLocation method.ConfigurationException - when the configuration properties are
invalid.public void deleted(java.lang.String pid)
ManagedServiceFactory
If this method throws any Exception, the Configuration
Admin service must catch it and should log it.
The Configuration Admin service must call this method asynchronously.
deleted in interface ManagedServiceFactorypid - the PID of the service to be removedpublic int getStatus(Alert alert)
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.