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

Alachisoft.NCache.Common.EventID Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
package Alachisoft.NCache.Common;

public class EventID {

    public static final int CacheStart = 1000;
    public static final int CacheStop = 1001;
    public static final int CacheStartError = 1002;
    public static final int CacheStopError = 1003;
    public static final int ClientConnected = 1004;
    public static final int ClientDisconnected = 1005;
    public static final int NodeJoined = 1006;
    public static final int NodeLeft = 1007;
    public static final int StateTransferStart = 1008;
    public static final int StateTransferStop = 1009;
    public static final int StateTransferError = 1010;
    public static final int UnhandledException = 1011;
    public static final int LoginFailure = 1012;
    public static final int ServiceStartFailure = 1013;
    public static final int LoggingEnabled = 1014;
    public static final int LoggingDisabled = 1015;
    public static final int CacheSizeWarning = 1016;
    public static final int GeneralError = 1017;
    public static final int GeneralInformation = 1018;
    public static final int ConfigurationError = 1019;
    public static final int LicensingError = 1020;
    public static final int SecurityError = 1021;
    public static final int BadClientFound = 1022;
    public static final int ClientConnectionAlert = 1023;

    public static String EventText(int eventID) {
        String text = "";
        switch (eventID) {
            case EventID.CacheStart:
                text = "Cache Start";
                break;
            case EventID.CacheStop:
                text = "Cache Stop";
                break;
            case EventID.CacheStartError:
                text = "Cache Start Error";
                break;
            case EventID.CacheStopError:
                text = "Cache Stop Error";
                break;
            case EventID.ClientConnected:
                text = "Client Connected";
                break;
            case EventID.ClientDisconnected:
                text = "Client Diconnected";
                break;
            case EventID.NodeJoined:
                text = "Node Joined";
                break;
            case EventID.NodeLeft:
                text = "Node Left";
                break;
            case EventID.StateTransferStart:
                text = "State Transfer Start";
                break;
            case EventID.StateTransferStop:
                text = "State Transfer Stop";
                break;
            case EventID.StateTransferError:
                text = "State Transfer Error";
                break;
            case EventID.UnhandledException:
                text = "Unhandled Exception";
                break;
            case EventID.LoginFailure:
                text = "Login Failure";
                break;
            case EventID.ServiceStartFailure:
                text = "Service Start Failure";
                break;
            case EventID.CacheSizeWarning:
                text = "Cache Size Warning";
                break;
            case EventID.GeneralError:
                text = "General Error";
                break;
            case EventID.GeneralInformation:
                text = "General Information";
                break;
            case EventID.ConfigurationError:
                text = "Configuration Error";
                break;
            case EventID.LicensingError:
                text = "Licensing Error";
                break;
            case EventID.SecurityError:
                text = "Security Error";
                break;
            case EventID.BadClientFound:
                text = "Bad Client Found";
                break;
            default:
                text = "Unknown";
                break;
        }

        return text;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy