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

io.minio.admin.messages.BucketTargetUsageInfo Maven / Gradle / Ivy

/*
 * MinIO Java SDK for Amazon S3 Compatible Cloud Storage,
 * (C) 2022 MinIO, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.minio.admin.messages;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Represents bucket replica stats of the current object APi.
 *
 * @see data-usage-utils.go
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class BucketTargetUsageInfo {
  @JsonProperty("objectsPendingReplicationTotalSize")
  private long objectsPendingReplicationTotalSize;

  @JsonProperty("objectsFailedReplicationTotalSize")
  private long objectsFailedReplicationTotalSize;

  @JsonProperty("objectsReplicatedTotalSize")
  private long objectsReplicatedTotalSize;

  @JsonProperty("objectReplicaTotalSize")
  private long objectReplicaTotalSize;

  @JsonProperty("objectsPendingReplicationCount")
  private long objectsPendingReplicationCount;

  @JsonProperty("objectsFailedReplicationCount")
  private long objectsFailedReplicationCount;

  public long objectsPendingReplicationTotalSize() {
    return objectsPendingReplicationTotalSize;
  }

  public long objectsFailedReplicationTotalSize() {
    return objectsFailedReplicationTotalSize;
  }

  public long objectsReplicatedTotalSize() {
    return objectsReplicatedTotalSize;
  }

  public long objectReplicaTotalSize() {
    return objectReplicaTotalSize;
  }

  public long objectsPendingReplicationCount() {
    return objectsPendingReplicationCount;
  }

  public long objectsFailedReplicationCount() {
    return objectsFailedReplicationCount;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy