All Downloads are FREE. Search and download functionalities are using the official Maven repository.

alluxio.wire.WorkerWebUIConfiguration Maven / Gradle / Ivy

There is a newer version: 313
Show newest version
/*
 * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
 * (the "License"). You may not use this work except in compliance with the License, which is
 * available at www.apache.org/licenses/LICENSE-2.0
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied, as more fully set forth in the License.
 *
 * See the NOTICE file distributed with this work for information regarding copyright ownership.
 */

package alluxio.wire;

import com.google.common.base.MoreObjects;
import org.apache.commons.lang3.tuple.Triple;

import java.io.Serializable;
import java.util.List;
import java.util.TreeSet;
import javax.annotation.concurrent.NotThreadSafe;

/**
 * Alluxio WebUI configuration information.
 */
@NotThreadSafe
public final class WorkerWebUIConfiguration implements Serializable {
  private static final long serialVersionUID = -2277858633604882055L;

  private List mWhitelist;
  private TreeSet> mConfiguration;
  private String mClusterConfigHash;
  private String mPathConfigHash;
  private String mClusterConfigLastUpdateTime;
  private String mPathConfigLastUpdateTime;

  /**
   * Creates a new instance of {@link WorkerWebUIConfiguration}.
   */
  public WorkerWebUIConfiguration() {
  }

  /**
   * Gets configuration.
   *
   * @return the configuration
   */
  public TreeSet> getConfiguration() {
    return mConfiguration;
  }

  /**
   * Gets whitelist.
   *
   * @return the whitelist
   */
  public List getWhitelist() {
    return mWhitelist;
  }

  /**
   * Sets configuration.
   *
   * @param configuration the configuration
   * @return the configuration
   */
  public WorkerWebUIConfiguration setConfiguration(
      TreeSet> configuration) {
    mConfiguration = configuration;
    return this;
  }

  /**
   * Sets whitelist.
   *
   * @param whitelist the whitelist
   * @return the whitelist
   */
  public WorkerWebUIConfiguration setWhitelist(List whitelist) {
    mWhitelist = whitelist;
    return this;
  }

  /**
   * @return cluster config hash
   */
  public String getClusterConfigHash() {
    return mClusterConfigHash;
  }

  /**
   * Sets cluster config hash.
   * @param clusterConfigHash the cluster config hash
   * @return the configuration
   */
  public WorkerWebUIConfiguration setClusterConfigHash(String clusterConfigHash) {
    mClusterConfigHash = clusterConfigHash;
    return this;
  }

  /**
   * @return path config hash
   */
  public String getPathConfigHash() {
    return mPathConfigHash;
  }

  /**
   * Sets path config hash.
   *
   * @param pathConfigHash the path config hash
   * @return the configuration
   */
  public WorkerWebUIConfiguration setPathConfigHash(String pathConfigHash) {
    mPathConfigHash = pathConfigHash;
    return this;
  }

  /**
   * @return cluster config last update time
   */
  public String getClusterConfigLastUpdateTime() {
    return mClusterConfigLastUpdateTime;
  }

  /**
   * Sets cluster config last update time.
   *
   * @param clusterConfigLastUpdateTime the cluster config last update time
   * @return the configuration
   */
  public WorkerWebUIConfiguration setClusterConfigLastUpdateTime(
      String clusterConfigLastUpdateTime) {
    mClusterConfigLastUpdateTime = clusterConfigLastUpdateTime;
    return this;
  }

  /**
   * @return path config last update time
   */
  public String getPathConfigLastUpdateTime() {
    return mPathConfigLastUpdateTime;
  }

  /**
   * Sets the path config last update time.
   * @param pathConfigLastUpdateTime path config last update time
   * @return the configuration
   */
  public WorkerWebUIConfiguration setPathConfigLastUpdateTime(
      String pathConfigLastUpdateTime) {
    mPathConfigLastUpdateTime = pathConfigLastUpdateTime;
    return this;
  }

  @Override
  public String toString() {
    return MoreObjects.toStringHelper(this).add("configuration", mConfiguration)
        .add("whitelist", mWhitelist).toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy