2008-02-07 1.1.0

org.eclipse.soda.dk.notification.event.admin
Class NotificationEventAdmin

java.lang.Object
  extended by org.eclipse.soda.dk.notification.event.admin.NotificationEventAdmin
All Implemented Interfaces:
NotificationService

public class NotificationEventAdmin
extends java.lang.Object
implements NotificationService

Version:
1.1.0

Field Summary
protected static long BroadcastThreshold
          Define the broadcast threshold (long) field.
protected  org.osgi.framework.BundleContext bundleContext
          Define the bundle context (BundleContext) field.
protected  org.osgi.service.event.EventAdmin eventAdmin
          Define the event admin (EventAdmin) field.
protected  java.util.Hashtable notificationListeners
          Define the notification listener (NotificationListener) field.
 
Fields inherited from interface org.eclipse.soda.dk.notification.service.NotificationService
Capabilities, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, CAPABILITIES_READ_EXTERNAL_KEY, Configuration, CONFIGURATION_DATA_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, CONFIGURATION_READ_EXTERNAL_KEY, ERROR_EXTERNAL_KEY, EXCEPTION_DATA_KEY, EXECUTE_EXTERNAL_KEY, FACTORY_SERVICE_NAME, GET_EXTERNAL_KEY, MESSAGE_DATA_KEY, Metrics, METRICS_EXTERNAL_KEY, METRICS_GET_EXTERNAL_KEY, READ_EXTERNAL_KEY, SERVICE_NAME, SET_EXTERNAL_KEY, Status, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY, STATUS_READ_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
NotificationEventAdmin()
          Constructs an instance of this class.
 
Method Summary
 void addData(java.util.Dictionary data)
           
 void broadcast(java.lang.String externalKey, java.util.Dictionary data)
           
 org.osgi.framework.BundleContext getBundleContext()
          Gets the bundle context value.
 org.osgi.service.event.EventAdmin getEventAdmin()
          Gets the event admin value.
 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 setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
           
 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

BroadcastThreshold

protected static long BroadcastThreshold
Define the broadcast threshold (long) field.


eventAdmin

protected org.osgi.service.event.EventAdmin eventAdmin
Define the event admin (EventAdmin) field.


bundleContext

protected org.osgi.framework.BundleContext bundleContext
Define the bundle context (BundleContext) field.


notificationListeners

protected java.util.Hashtable notificationListeners
Define the notification listener (NotificationListener) field.

Constructor Detail

NotificationEventAdmin

public NotificationEventAdmin()
Constructs an instance of this class.

Method Detail

addData

public void addData(java.util.Dictionary data)
Parameters:
data - The data (Dictionary) parameter.

broadcast

public void broadcast(java.lang.String externalKey,
                      java.util.Dictionary data)
Specified by:
broadcast in interface NotificationService
Parameters:
externalKey - The external key (String) parameter.
data - The data (Dictionary) parameter.

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()
Gets the bundle context value.

Returns:
The bundle context (BundleContext) value.
See Also:
setBundleContext(BundleContext)

getEventAdmin

public org.osgi.service.event.EventAdmin getEventAdmin()
Gets the event admin value.

Returns:
The event admin (EventAdmin) value.
See Also:
NotificationEventAdmin(), setEventAdmin(EventAdmin)

register

public void register(java.lang.String externalKey,
                     NotificationListener listener)
Register with the specified external key and listener parameters. The external key (String) parameter. The listener (NotificationListener) parameter. The external key (String) parameter. The listener (NotificationListener) parameter.

Specified by:
register in interface NotificationService
Parameters:
externalKey - The external key (String) parameter.
listener - The listener (NotificationListener) parameter.
See Also:
register(String[],NotificationListener)

register

public void register(java.lang.String[] externalKeys,
                     NotificationListener listener)
Register with the specified external keys and listener parameters. The external keys (String[]) parameter. The listener (NotificationListener) parameter. The external keys (String[]) parameter. The listener (NotificationListener) parameter.

Specified by:
register in interface NotificationService
Parameters:
externalKeys - The external keys (String[]) parameter.
listener - The listener (NotificationListener) parameter.
See Also:
register(String,NotificationListener)

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
Parameters:
bundleContext - The bundle context (BundleContext) parameter.
See Also:
getBundleContext()

setEventAdmin

public void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
Parameters:
eventAdmin - The event admin (EventAdmin) parameter.
See Also:
NotificationEventAdmin(), getEventAdmin()

unregister

public void unregister(NotificationListener listener)
Unregister with the specified listener parameter. The listener (NotificationListener) parameter. The listener (NotificationListener) parameter.

Specified by:
unregister in interface NotificationService
Parameters:
listener - The listener (NotificationListener) parameter.

2008-02-07 1.1.0

Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.3.1.R33x_v20070828