|
2008-09-10 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.core.ConfigurableObject
org.eclipse.soda.dk.notification.NotificationResourceBase
org.eclipse.soda.dk.notification.NotificationBase
org.eclipse.soda.dk.notification.Notification
public class Notification
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.soda.dk.notification.NotificationResourceBase |
|---|
org.eclipse.soda.dk.notification.NotificationResourceBase.ConfigurationInformationProxy |
| Field Summary | |
|---|---|
protected java.util.Hashtable |
beginTopicListeners
Define the begin topic listeners (Hashtable) field. |
protected static NotificationService |
Broker
Define the broker (NotificationService) constant. |
protected java.util.Hashtable |
endTopicListeners
Define the end topic listeners (Hashtable) field. |
protected NotificationListener |
globalTopicListeners
Define the global topic listeners (NotificationListener) field. |
protected NotificationQueue |
queue
Define the information broker (InformationBrokerService) field. |
protected java.lang.Thread |
thread
Define the thread (Thread) field. |
protected java.util.Hashtable |
topicListeners
Define the record (Hashtable) field. |
| Fields inherited from class org.eclipse.soda.dk.notification.NotificationBase |
|---|
broadcastCount, broadcastThreshold, broadcastThresholdCount, BroadcastThresholdDefault, level, levelMaximum, levelMinimum, notificationExtension, NotificationHost, NotificationId, notificationMonitor, notifyCount, notifyThreshold, notifyThresholdCount, NotifyThresholdDefault, prefixStatus |
| Fields inherited from class org.eclipse.soda.dk.notification.NotificationResourceBase |
|---|
DefaultResourceBundle, NOTIFICATION_BROADCAST_EXCEEDED_RESOURCE, NOTIFICATION_BROADCAST_THRESHOLD_DEFAULT, NOTIFICATION_BROADCAST_THRESHOLD_KEY, NOTIFICATION_NOTIFY_EXCEEDED_RESOURCE, NOTIFICATION_NOTIFY_THRESHOLD_DEFAULT, NOTIFICATION_NOTIFY_THRESHOLD_KEY, NOTIFICATION_START_RESOURCE, NOTIFICATION_STOP_RESOURCE |
| Fields inherited from class org.eclipse.soda.dk.core.ConfigurableObject |
|---|
BUNDLE_VERSION_PROPERTY |
| Fields inherited from interface org.eclipse.soda.dk.notification.service.NotificationExtendableService |
|---|
SERVICE_NAME |
| Constructor Summary | |
|---|---|
Notification()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
static void |
addData(java.lang.String key,
java.util.Dictionary value,
int level)
Add data with the specified key and value parameters. |
void |
broadcast(java.lang.String key,
java.util.Dictionary value)
|
static NotificationService |
createBroker()
Create broker and return the NotificationService result. |
void |
exit()
Exit. |
static NotificationService |
getBroker()
Gets the broker (NotificationService) value. |
static java.lang.String |
getExternalKey(java.lang.String prefix,
java.lang.String key)
|
static java.lang.String[] |
getExternalKeys(java.lang.String prefix,
java.lang.String[] keys)
|
NotificationQueue |
getInformationBroker()
Returns the informationBroker. |
void |
notify(NotificationListener notificationListener,
java.lang.String topic,
java.util.Dictionary data)
Notify with the specified notification listener, topic and data parameters. |
void |
register(java.lang.String[] subscriptions,
NotificationListener listener)
Register with the specified externalKeys and listener parameters. |
void |
register(java.lang.String subscription,
NotificationListener listener)
Register with the specified externalKey and listener parameters. |
void |
register(java.lang.String subscription,
NotificationListener listener,
int count)
Register with the specified subscription, listener and count parameters. |
void |
run()
Run. |
void |
start()
Start |
void |
stop()
Stop. |
void |
unregister(NotificationListener listener)
Unregister with the specified listener parameter. |
| Methods inherited from class org.eclipse.soda.dk.notification.NotificationBase |
|---|
|
| Methods inherited from class org.eclipse.soda.dk.notification.NotificationResourceBase |
|---|
getErrorSeverity, getLogDetails2 |
| Methods inherited from class org.eclipse.soda.dk.core.ConfigurableObject |
|---|
createPropertiesFromHeaders, getConfigurationService, getId, setConfigurationService, setId, validateConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.soda.dk.notification.service.NotificationExtendableService |
|---|
addNotificationExtension, addNotificationMonitor, getNotificationExtension, getNotificationMonitor, removeNotificationExtension, removeNotificationMonitor, setNotificationExtension, setNotificationMonitor |
| Field Detail |
|---|
protected static NotificationService Broker
protected java.util.Hashtable topicListeners
protected java.util.Hashtable beginTopicListeners
protected java.util.Hashtable endTopicListeners
protected NotificationListener globalTopicListeners
protected NotificationQueue queue
protected java.lang.Thread thread
| Constructor Detail |
|---|
public Notification()
| Method Detail |
|---|
public static void addData(java.lang.String key,
java.util.Dictionary value,
int level)
key - The key (String) parameter.value - The value (Dictionary) parameter.level - The level (int) parameter.public static NotificationService createBroker()
NotificationService) value.getBroker(),
getInformationBroker()public static NotificationService getBroker()
NotificationService) value.createBroker(),
getInformationBroker()
public static java.lang.String getExternalKey(java.lang.String prefix,
java.lang.String key)
prefix - The prefix (String) parameter.key - The key (String) parameter.
String) value. The prefix (String) parameter. The key (String) parameter.
public static java.lang.String[] getExternalKeys(java.lang.String prefix,
java.lang.String[] keys)
prefix - The prefix (String) parameter.keys - The keys (String[]) parameter.
String[]) value. The prefix (String) parameter. The keys (String[]) parameter.
public void broadcast(java.lang.String key,
java.util.Dictionary value)
broadcast in interface NotificationServicebroadcast in class org.eclipse.soda.dk.notification.NotificationBasekey - The key (String) parameter.value - The value (Dictionary) parameter.public void exit()
exit in class org.eclipse.soda.dk.notification.NotificationBasepublic NotificationQueue getInformationBroker()
NotificationQueue) value.
public void notify(NotificationListener notificationListener,
java.lang.String topic,
java.util.Dictionary data)
notificationListener - The notification listener (NotificationListener) parameter.topic - The topic (String) parameter.data - The data (Dictionary) parameter.
public void register(java.lang.String subscription,
NotificationListener listener)
NotificationServiceString) parameter. The listener (NotificationListener) parameter.
register in interface NotificationServicesubscription - The subscription (String) parameter.listener - The listener (NotificationListener) parameter.register(String,NotificationListener,int),
register(String[],NotificationListener)
public void register(java.lang.String subscription,
NotificationListener listener,
int count)
subscription - The subscription (String) parameter.listener - The listener (NotificationListener) parameter.count - The count (int) parameter.register(String,NotificationListener),
register(String[],NotificationListener)
public void register(java.lang.String[] subscriptions,
NotificationListener listener)
NotificationServiceString[]) parameter. The listener (NotificationListener) parameter.
register in interface NotificationServicesubscriptions - The subscriptions (String[]) parameter.listener - The listener (NotificationListener) parameter.register(String,NotificationListener),
register(String,NotificationListener,int)public void run()
run in interface java.lang.Runnablepublic void start()
start in class org.eclipse.soda.dk.notification.NotificationBasepublic void stop()
public void unregister(NotificationListener listener)
NotificationServiceNotificationListener) parameter.
unregister in interface NotificationServicelistener - The listener (NotificationListener) parameter.
|
2008-09-10 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||