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

com.hmsonline.cassandra.triggers.ErrorLog Maven / Gradle / Ivy

package com.hmsonline.cassandra.triggers;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ErrorLog extends LogEntryStore {
    private static Logger logger = LoggerFactory.getLogger(ErrorLog.class);

    public static final String KEYSPACE = "triggers";
    public static final String COLUMN_FAMILY_PREFIX = "ErrorLog";
    public static final int MAX_NUMBER_COLUMNS = 100;
    public static final int BATCH_SIZE = 1000;

    private static ErrorLog instance = null;

    public ErrorLog() throws Exception {
        super(KEYSPACE, COLUMN_FAMILY_PREFIX);
        logger.warn("Instantiated error log.");
    }

    public static synchronized ErrorLog getErrorLog() throws Exception {
        if (instance == null) {
            instance = new ErrorLog();
        }
        return instance;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy