Package alluxio.conf

Class ReconfigurableRegistry


  • public class ReconfigurableRegistry
    extends java.lang.Object
    Registry of all reconfigurable listeners.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void register​(Reconfigurable listener)
      Add a listener.
      static boolean unregister​(Reconfigurable listener)
      remove the listener related to the given property.
      static boolean update()
      When the property was reconfigured, this function will be invoked.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • register

        public static void register​(Reconfigurable listener)
        Add a listener.
        Parameters:
        listener - the given property listener
      • unregister

        public static boolean unregister​(Reconfigurable listener)
        remove the listener related to the given property.
        Parameters:
        listener - the listener
        Returns:
        true if the instance is removed
      • update

        public static boolean update()
        When the property was reconfigured, this function will be invoked. This property listeners will be notified.
        Returns:
        false if no listener related to the given property, otherwise, return false