1.0.0

org.eclipse.soda.dk.notification.client
Class NotificationController

java.lang.Object
  extended by org.eclipse.soda.dk.notification.client.NotificationController
All Implemented Interfaces:
NotificationListener, NotificationService

public class NotificationController
extends java.lang.Object
implements NotificationService, NotificationListener

Version:
1.0.0

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, NotificationClient container)
          Constructs an instance of this class from the specified notification service parameter.
 
Method Summary
 void broadcast(java.lang.String externalKey, java.util.Dictionary data)
          Notify with the specified external key and data parameters.
 java.lang.String getId()
          Gets the id (String) value.
 NotificationClient getNotificationClient()
          Gets the notification client value.
 NotificationService getNotificationService()
          Gets the notification service value.
 void notificationReceived(java.lang.String externalKey, java.util.Dictionary data)
          Publication received with the specified arg0 and arg1 parameters.
protected  void notificationServiceAdded()
          Notification service added.
protected  void notificationServiceRemoving()
          Notification service removing.
 void register(java.lang.String externalKey)
          Register with the specified external key and listener parameters.
 void register(java.lang.String[] externalKeys)
          Register with the specified external keys and listener parameters.
 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.
protected  void removeQualifiedKeys()
          Remove qualified keys.
 void setId(java.lang.String id)
          Sets the id value.
 void setNotificationClient(NotificationClient container)
          Sets the notification client value.
 void setNotificationService(NotificationService notificationService)
          Sets the notification service value.
 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

idSperator

protected char idSperator
Define the id sperator (char) field.

Constructor Detail

NotificationController

public NotificationController(NotificationService notificationService,
                              NotificationClient container)
Constructs an instance of this class from the specified notification service parameter. The notification service (NotificationService) parameter. The container (NotificationClient) parameter. The notification service (NotificationService) parameter.

Parameters:
notificationService - The notification service (NotificationService) parameter.
container - The container (NotificationClient) parameter.
See Also:
NotificationController()

NotificationController

public NotificationController()
Constructs an instance of this class.

See Also:
NotificationController(NotificationService,NotificationClient)
Method Detail

broadcast

public void broadcast(java.lang.String externalKey,
                      java.util.Dictionary data)
Notify with the specified external key and data parameters. The external key (String) parameter. The data (Object) parameter. The external key (String) parameter. The data (Dictionary) parameter.

Specified by:
broadcast in interface NotificationService
Parameters:
externalKey - The external key (String) parameter.
data - The data (Dictionary) parameter.

getId

public java.lang.String getId()
Gets the id (String) value.

Returns:
The id (String) value.
See Also:
setId(String)

getNotificationClient

public NotificationClient getNotificationClient()
Gets the notification client value.

Returns:
The notification client (NotificationClient) value.
See Also:
setNotificationClient(NotificationClient)

getNotificationService

public NotificationService getNotificationService()
Gets the notification service value.

Returns:
The notification service (NotificationService) value.
See Also:
setNotificationService(NotificationService)

notificationReceived

public void notificationReceived(java.lang.String externalKey,
                                 java.util.Dictionary data)
Publication received with the specified arg0 and arg1 parameters. The arg0 (String) parameter. The arg1 (Object) parameter. The external key (String) parameter. The data (Object) parameter. The external key (String) parameter. The data (Dictionary) parameter.

Specified by:
notificationReceived in interface NotificationListener
Parameters:
externalKey - The external key (String) parameter.
data - The data (Dictionary) parameter.

notificationServiceAdded

protected void notificationServiceAdded()
Notification service added.


notificationServiceRemoving

protected void notificationServiceRemoving()
Notification service removing.


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.

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

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.

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

register

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

Parameters:
externalKey - The external key (String) parameter.
See Also:
register(String,NotificationListener), register(String[],NotificationListener), register(String[])

register

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

Parameters:
externalKeys - The external keys (String[]) parameter.
See Also:
register(String,NotificationListener), register(String[],NotificationListener), register(String)

removeQualifiedKeys

protected void removeQualifiedKeys()
Remove qualified keys.


setId

public void setId(java.lang.String id)
Sets the id value. The id (String) parameter. The id (String) parameter.

Parameters:
id - The id (String) parameter.
See Also:
getId()

setNotificationClient

public void setNotificationClient(NotificationClient container)
Sets the notification client value. The container (NotificationClient) parameter.

Parameters:
container - The container (NotificationClient) parameter.
See Also:
getNotificationClient()

setNotificationService

public void setNotificationService(NotificationService notificationService)
Sets the notification service value. The notification service (NotificationService) parameter. The notification service (NotificationService) parameter.

Parameters:
notificationService - The notification service (NotificationService) parameter.
See Also:
getNotificationService()

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.
See Also:
unregister()

unregister

public void unregister()
Unregister.

See Also:
unregister(NotificationListener)

1.0.0

Copyright (c) 1999, 2007 IBM