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

io.github.portlek.sfs.status.Volume Maven / Gradle / Ivy

There is a newer version: 5.7
Show newest version
package io.github.portlek.sfs.status;

import io.github.portlek.sfs.ReplicationStrategy;

public class Volume {

    public int Id;

    public long Size;

    public String RepType;

    public String Collection;

    public String Version;

    public long FileCount;

    public long DeleteCount;

    public long DeletedByteCount;

    public boolean ReadOnly;

    public ReplicaPlacement ReplicaPlacement;

    public Ttl Ttl;

    public int CompactRevision;

    public int ModifiedAtSecond;

    public String RemoteStorageName;

    public String RemoteStorageKey;

    public ReplicationStrategy getReplicationStrategy() {
        return ReplicationStrategy.fromParameterValue(this.RepType);
    }

    @Override
    public String toString() {
        return "Volume{" +
            "Id=" + this.Id +
            ", Size=" + this.Size +
            ", RepType='" + this.RepType + '\'' +
            ", Collection='" + this.Collection + '\'' +
            ", Version='" + this.Version + '\'' +
            ", FileCount=" + this.FileCount +
            ", DeleteCount=" + this.DeleteCount +
            ", DeletedByteCount=" + this.DeletedByteCount +
            ", ReadOnly=" + this.ReadOnly +
            ", ReplicaPlacement=" + this.ReplicaPlacement +
            ", Ttl=" + this.Ttl +
            ", CompactRevision=" + this.CompactRevision +
            ", ModifiedAtSecond=" + this.ModifiedAtSecond +
            ", RemoteStorageName='" + this.RemoteStorageName + '\'' +
            ", RemoteStorageKey='" + this.RemoteStorageKey + '\'' +
            '}';
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy