public class AlertUtil extends java.lang.Object implements Supervisable
| Modifier and Type | Field and Description |
|---|---|
protected Alert[] |
alertArray
holds the raised alerts in the form of array
|
protected java.util.Vector |
alerts
Alerts container
|
protected org.osgi.framework.BundleContext |
bc
BundleContext needed for registering as Supervisable
|
protected boolean |
modified
Flag denoting whether the set of alerts has been changed since the last getAlerts invocation.
|
protected org.osgi.framework.ServiceRegistration |
reg
service registration for Supervisable service
|
| Constructor and Description |
|---|
AlertUtil(org.osgi.framework.BundleContext bc)
Creates an instance of this class with given BundleContext
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAll()
Pulls down (immediately) all alerts raised by this AlertUtil
|
void |
destroy()
Called when the bundle does no longer wish to be supervised.
|
Alert[] |
getAlerts()
Implementing the Supervisable.getAelrts method
|
void |
pullDown(Alert alert)
Pulls down (immediately) an alert from the alert board.
|
void |
raise(Alert alert)
Raises (immediately) a new alert on the alert board.
|
protected java.util.Vector alerts
protected org.osgi.framework.ServiceRegistration reg
protected org.osgi.framework.BundleContext bc
protected boolean modified
protected Alert[] alertArray
public AlertUtil(org.osgi.framework.BundleContext bc)
public void destroy()
public void raise(Alert alert)
public void pullDown(Alert alert)
public void clearAll()
public Alert[] getAlerts()
getAlerts in interface SupervisableCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.