Class SMSNotificationManager

  • All Implemented Interfaces:
    SMSObjectListener, EventListener

    public class SMSNotificationManager
    extends Object
    implements SMSObjectListener
    Handles all the notification events for SMS. Classes that will register for notifications are: 1) SMSEventListnerManager -- to send notifications to internal objects Framework classes i.e., Cached* & *Impls that maintain read only caches 2) SMSJAXRPCObjectImpl -- to send notifications to remote clients 3) SMSLdapObjectImpl -- to clear its internal cache Of the above (2) and (3) would happen only on the Server only. This class will resgister itself with either one of them: On the Server, if "enableDataStoreNotification" is true it would register with SMSObject.registerCallbackHandler(..) via SMSEntry, else will send notifications by itself. On the Client, it will register with SMSJAXRPCObject, again via registerCallbackHandler(..)
    • Method Detail

      • initializeProperties

        protected void initializeProperties()
      • deregisterListener

        protected void deregisterListener​(SMSObject object)
      • isCacheEnabled

        public static boolean isCacheEnabled()
      • isDataStoreNotificationEnabled

        public static boolean isDataStoreNotificationEnabled()
      • removeCallbackHandler

        public void removeCallbackHandler​(String id)
      • objectChanged

        public void objectChanged​(String name,
                                  int type)
        Description copied from interface: SMSObjectListener
        This callback method is called by the EventService when the Directory Server triggers a PersistentSearch notification
        Specified by:
        objectChanged in interface SMSObjectListener
      • allObjectsChanged

        public void allObjectsChanged()
        Description copied from interface: SMSObjectListener
        This callback notifies the listener that all object should be marked as "changed" or "dirty". This callback is only used in the case when Event Service looses the directory connection and does not know what could have changed in the directory.
        Specified by:
        allObjectsChanged in interface SMSObjectListener