Class Master

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    @ThreadSafe
    public final class Master
    extends java.lang.Object
    implements java.io.Closeable
    Class for running and interacting with an Alluxio master in a separate process.
    • Constructor Summary

      Constructors 
      Constructor Description
      Master​(java.io.File logsDir, java.util.Map<alluxio.conf.PropertyKey,​java.lang.String> properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.util.Map<alluxio.conf.PropertyKey,​java.lang.String> getConf()  
      void start()
      Launches the master process.
      void updateConf​(alluxio.conf.PropertyKey key, java.lang.String value)
      Updates the master's configuration.
      • Methods inherited from class java.lang.Object

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

      • Master

        public Master​(java.io.File logsDir,
                      java.util.Map<alluxio.conf.PropertyKey,​java.lang.String> properties)
               throws java.io.IOException
        Parameters:
        logsDir - logs directory
        properties - alluxio properties
        Throws:
        java.io.IOException
    • Method Detail

      • updateConf

        public void updateConf​(alluxio.conf.PropertyKey key,
                               @Nullable
                               java.lang.String value)
        Updates the master's configuration. This update will take effect the next time the master is started.
        Parameters:
        key - the conf key to update
        value - the value to set, or null to unset the key
      • start

        public void start()
        Launches the master process.
      • getConf

        public java.util.Map<alluxio.conf.PropertyKey,​java.lang.String> getConf()
        Returns:
        the configuration used by this master
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable