|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.device.NotificationController
public class NotificationController
| Field Summary | |
|---|---|
protected char |
idSperator
Define the id sperator (char) field. |
| Fields inherited from interface org.eclipse.soda.dk.notification.service.NotificationService |
|---|
ERROR_EXTERNAL_KEY, EXCEPTION_DATA_KEY, EXECUTE_EXTERNAL_KEY, FACTORY_SERVICE_NAME, GET_EXTERNAL_KEY, MESSAGE_DATA_KEY, READ_EXTERNAL_KEY, SERVICE_NAME, SET_EXTERNAL_KEY, TIMESTAMP_DATA_KEY, TOPIC_DELIMITER, TOPIC_DELIMITER_STRING, TOPIC_WILDCARD, TOPIC_WILDCARD_STRING, TRIGGER_EXTERNAL_KEY, VALUE_DATA_KEY, VALUE_OLD_DATA_KEY, WRITE_EXTERNAL_KEY |
| Constructor Summary | |
|---|---|
NotificationController()
Constructs an instance of this class. |
|
NotificationController(NotificationService notificationService,
Container container)
Constructs an instance of this class from the specified notification service parameter. |
|
NotificationController(NotificationService notificationService,
Container container,
java.lang.String id)
Constructs an instance of this class from the specified notification service, container and id parameters. |
|
| Method Summary | |
|---|---|
void |
addData(java.util.Dictionary data)
Add data with the specified data parameter. |
void |
addQualifiedKeys(java.lang.String id)
Add qualified keys with the specified id and controls parameters. |
void |
broadcast(java.lang.String externalKey,
java.util.Dictionary data)
Notify with the specified external key and data parameters. |
void |
commandExecuted(CommandService source,
java.lang.Object timestamp,
java.lang.Object data)
Command executed with the specified source, timestamp and data parameters. |
void |
errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
Error occurred with the specified source, timestamp and data parameters. |
org.osgi.framework.BundleContext |
getBundleContext()
Gets the bundle context value. |
Container |
getContainer()
Gets the container value. |
java.lang.String |
getId()
Gets the id (String) value. |
NotificationService |
getNotificationService()
Gets the notification service value. |
java.lang.String |
getSymbolicName()
Gets the symbolic name (String) value. |
void |
measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
Measurement changed with the specified source, timestamp, new value and old value parameters. |
void |
notificationReceived(java.lang.String externalKey,
java.util.Dictionary data)
Publication received with the specified arg0 and arg1 parameters. |
void |
register(java.lang.String externalKey)
Register with the specified external key parameter. |
void |
register(java.lang.String[] externalKeys)
Register with the specified external keys parameter. |
void |
register(java.lang.String[] externalKeys,
NotificationListener listener)
Register with the specified external keys and listener parameters. |
void |
register(java.lang.String externalKey,
NotificationListener listener)
Register with the specified external key and listener parameters. |
void |
removeQualifiedKeys()
Remove qualified keys. |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext)
Sets the bundle context value. |
void |
setContainer(Container container)
Sets the container value. |
void |
setId(java.lang.String id)
Sets the id value. |
void |
setNotificationService(NotificationService notificationService)
Sets the notification service value. |
void |
setSymbolicName(java.lang.String symbolicName)
Sets the symbolic name value. |
void |
signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
Signal occurred with the specified source, timestamp and data parameters. |
void |
unregister()
Unregister. |
void |
unregister(NotificationListener listener)
Unregister with the specified listener parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected char idSperator
| Constructor Detail |
|---|
public NotificationController(NotificationService notificationService,
Container container)
NotificationService)
parameter. The container (Container) parameter.
The notification service (NotificationService)
parameter.
container - The container (Container) parameter.notificationService - The notification service (NotificationService) parameter.NotificationController(NotificationService,Container,String),
NotificationController()
public NotificationController(NotificationService notificationService,
Container container,
java.lang.String id)
NotificationService)
parameter.
The container (Container) parameter.
The id (String) parameter.
notificationService - The notification service (NotificationService) parameter.container - The container (Container) parameter.id - The id (String) parameter.NotificationController(NotificationService,Container),
NotificationController()public NotificationController()
NotificationController(NotificationService,Container),
NotificationController(NotificationService,Container,String)| Method Detail |
|---|
public void addData(java.util.Dictionary data)
Dictionary) parameter.
data - The data (Dictionary) parameter.public void addQualifiedKeys(java.lang.String id)
String)
parameter. The controls (Map) parameter.
The id (String) parameter.
id - The id (String) parameter.removeQualifiedKeys()
public void broadcast(java.lang.String externalKey,
java.util.Dictionary data)
String) parameter. The data (Object)
parameter.
The external key (String) parameter.
The data (Dictionary) parameter.
broadcast in interface NotificationServiceexternalKey - The external key (String) parameter.data - The data (Dictionary) parameter.
public void commandExecuted(CommandService source,
java.lang.Object timestamp,
java.lang.Object data)
CommandService) parameter. The
timestamp (Object) parameter. The data (Object)
parameter.
The source (CommandService) parameter.
The timestamp (Object) parameter.
The data (Object) parameter.
commandExecuted in interface CommandListenersource - The source (CommandService) parameter.timestamp - The timestamp (Object) parameter.data - The data (Object) parameter.
public void errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
Object) parameter. The timestamp (Object)
parameter. The data (Object) parameter.
The source (Object) parameter.
The timestamp (Object) parameter.
The data (Object) parameter.
errorOccurred in interface ErrorListenersource - The source (Object) parameter.timestamp - The timestamp (Object) parameter.data - The data (Object) parameter.signalOccurred(SignalService,Object,Object)public org.osgi.framework.BundleContext getBundleContext()
BundleContext) value.setBundleContext(BundleContext)public Container getContainer()
Container) value.setContainer(Container)public java.lang.String getId()
String) value.setId(String)public NotificationService getNotificationService()
NotificationService)
value.setNotificationService(NotificationService)public java.lang.String getSymbolicName()
String) value.setSymbolicName(String)
public void measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
MeasurementService)
parameter. The timestamp (Object) parameter. The new
value (Object) parameter. The old value (Object)
parameter.
The source (MeasurementService) parameter.
The timestamp (Object) parameter.
The new value (Object) parameter.
The old value (Object) parameter.
measurementChanged in interface MeasurementListenersource - The source (MeasurementService) parameter.timestamp - The timestamp (Object) parameter.newValue - The new value (Object) parameter.oldValue - The old value (Object) parameter.
public void notificationReceived(java.lang.String externalKey,
java.util.Dictionary data)
String) parameter. The arg1 (Object)
parameter. The external key (String) parameter. The data (Object)
parameter.
The external key (String) parameter.
The data (Dictionary) parameter.
notificationReceived in interface NotificationListenerexternalKey - The external key (String) parameter.data - The data (Dictionary) parameter.
public void register(java.lang.String externalKey,
NotificationListener listener)
String) parameter. The listener (NotificationListener)
parameter.
The external key (String) parameter.
The listener (NotificationListener)
parameter.
register in interface NotificationServiceexternalKey - The external key (String) parameter.listener - The listener (NotificationListener) parameter.register(String),
register(String[],NotificationListener),
register(String[])public void register(java.lang.String externalKey)
String) parameter.
externalKey - The external key (String) parameter.register(String,NotificationListener),
register(String[],NotificationListener),
register(String[])
public void register(java.lang.String[] externalKeys,
NotificationListener listener)
String[]) parameter. The listener (NotificationListener)
parameter.
The external keys (String[]) parameter.
The listener (NotificationListener)
parameter.
register in interface NotificationServiceexternalKeys - The external keys (String[]) parameter.listener - The listener (NotificationListener) parameter.register(String,NotificationListener),
register(String),
register(String[])public void register(java.lang.String[] externalKeys)
String[]) parameter.
externalKeys - The external keys (String[]) parameter.register(String,NotificationListener),
register(String),
register(String[],NotificationListener)public void removeQualifiedKeys()
addQualifiedKeys(String)public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
BundleContext) parameter.
bundleContext - The bundle context (BundleContext) parameter.getBundleContext()public void setContainer(Container container)
Container)
parameter.
container - The container (Container) parameter.getContainer()public void setId(java.lang.String id)
String) parameter.
The id (String) parameter.
id - The id (String) parameter.getId()public void setNotificationService(NotificationService notificationService)
NotificationService)
parameter.
The notification service (NotificationService)
parameter.
notificationService - The notification service (NotificationService) parameter.getNotificationService()public void setSymbolicName(java.lang.String symbolicName)
String) parameter.
symbolicName - The symbolic name (String) parameter.getSymbolicName()
public void signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
SignalService) parameter. The timestamp (Object)
parameter. The data (Object) parameter.
The source (SignalService) parameter.
The timestamp (Object) parameter.
The data (Object) parameter.
signalOccurred in interface SignalListenersource - The source (SignalService) parameter.timestamp - The timestamp (Object) parameter.data - The data (Object) parameter.errorOccurred(Object,Object,Object)public void unregister(NotificationListener listener)
NotificationListener)
parameter.
The listener (NotificationListener)
parameter.
unregister in interface NotificationServicelistener - The listener (NotificationListener) parameter.unregister()public void unregister()
unregister(NotificationListener)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||