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

Alachisoft.NCache.Common.DataStructures.BucketStatus Maven / Gradle / Ivy

package Alachisoft.NCache.Common.DataStructures;

/**
 * Enumeration that defines the status of the bucket.
 */
public class BucketStatus {
    /**
     * The bucket is yet to be state transferred from the source node.
     */
//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: public const byte NeedTransfer = 1;
    public static final byte NeedTransfer = 1;

    /**
     * The bucket is being transfered from the source node to some target node.
     */
//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: public const byte UnderStateTxfr = 2;
    public static final byte UnderStateTxfr = 2;

    /**
     * The bucket is fully functional.
     */
//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: public const byte Functional = 4;
    public static final byte Functional = 4;

    //C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: public static string StatusToString(byte status)
    public static String StatusToString(byte status) {
        String toString = null;
        switch (status) {
            case NeedTransfer:
                toString = "NeedTransfer";
                break;

            case UnderStateTxfr:
                toString = "UnderStateTxfr";
                break;

            case Functional:
                toString = "Functional";
                break;

            default:
                toString = "UNDEFINED";
                break;
        }
        return toString;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy