Class ServiceSchemaManagerImpl

  • All Implemented Interfaces:
    SMSObjectListener, EventListener

    public class ServiceSchemaManagerImpl
    extends Object
    implements SMSObjectListener
    The class ServiceSchemaManagerImpl provides the internal implemation for ServiceSchemaManager. There should be only one instance of ServiceSchemaManagerImpl per service name and version. This class implements all the "read" methods and would receive notification when schema changes.
    • Method Detail

      • isValid

        public boolean isValid()
                        throws SMSException
        Returns if the object is still valid
        Returns:
        validity of this object
        Throws:
        SMSException
      • getName

        public String getName()
        Returns the Service name
      • getVersion

        public String getVersion()
        Returns the Service's version
      • getResourceName

        public String getResourceName()
        The name to use in CREST representation.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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
      • update

        public void update()
      • printListeners

        public String printListeners()