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

alluxio.wire.PersistFile 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 alluxio.shaded.client.com.liance with the License, which is
 * available at www.apache.alluxio.shaded.client.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 java.util.List;

/**
 * Class to represent a file persist info.
 */
public final class PersistFile {
  private List mBlockIds;
  private long mFileId;

  /**
   * Creates a new instance for persist file.
   *
   * @param fileId the file id
   * @param blockIds the list of block ids to persist
   */
  public PersistFile(long fileId, List blockIds) {
    mFileId = fileId;
    mBlockIds = blockIds;
  }

  /**
   * @return return the block ids
   */
  public List getBlockIds() {
    return mBlockIds;
  }

  /**
   * @return the file id
   */
  public long getFileId() {
    return mFileId;
  }

  /**
   * Set the block ids.
   *
   * @param blockIds the block ids
   */
  public void setBlockIds(List blockIds) {
    mBlockIds = blockIds;
  }

  /**
   * Set the file id.
   *
   * @param fileId the file id
   */
  public void setFileId(long fileId) {
    mFileId = fileId;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy