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

com.sap.cloud.lm.sl.cf.persistence.message.Messages Maven / Gradle / Ivy

There is a newer version: 1.106.2
Show newest version
package com.sap.cloud.lm.sl.cf.persistence.message;

/**
 * A collection of string constants used for exception and logging messages.
 */
public final class Messages {

    // Exception messages:
    public static final String NO_VIRUS_SCANNER_CONFIGURED = "Virus scanner not configured";
    public static final String FILE_UPLOAD_FAILED = "Upload of file \"{0}\" to \"{1}\" failed";
    public static final String FILE_NOT_FOUND = "File \"{0}\" not found";
    public static final String ERROR_SAVING_MESSAGE = "Error saving message with process ID \"{0}\", task ID \"{1}\"";
    public static final String ERROR_UPDATING_MESSAGE = "Error updating message with ID \"{0}\"";
    public static final String ERROR_DELETING_MESSAGES_WITH_PROCESS_ID = "Error deleting messages with process ID \"{0}\"";
    public static final String ERROR_DELETING_MESSAGES_WITH_PROCESS_ID_TASK_ID = "Error deleting messages with process ID \"{0}\" and task ID \"{1}\"";
    public static final String ERROR_DELETING_MESSAGES_OLDER_THAN = "Error deleting messages older than \"{0}\"";
    public static final String ERROR_DELETING_MESSAGES_FOR_PROCESS_ID_AND_TASK_ID = "Error deleting messages for process ID \"{0}\" and task ID \"{1}\"";
    public static final String ERROR_GETTING_ALL_MESSAGES = "Error getting all messages";
    public static final String ERROR_GETTING_MESSAGES_WITH_PROCESS_ID = "Error getting messages with process ID \"{0}\"";
    public static final String ERROR_GETTING_MESSAGES_WITH_PROCESS_ID_TASK_ID = "Error getting messages with process ID \"{0}\", task ID \"{1}\"";
    public static final String ERROR_GETTING_LAST_MESSAGE_WITH_PROCESS_ID_AND_TASK_ID = "Error getting last message with process ID \"{0}\" and task ID \"{1}\"";
    public static final String ERROR_GETTING_MESSAGES_WITH_PROCESS_ID_TASK_ID_AND_TYPE = "Error getting messages with process ID \"{0}\", task ID \"{1}\" and type \"{2}\"";
    public static final String ERROR_GETTING_MESSAGES_WITH_PROCESS_ID_AND_TYPE = "Error getting messages with process ID \"{0}\" and type \"{1}\"";
    public static final String ERROR_CALCULATING_FILE_DIGEST = "Error calculating digest for file {0}: {1}";
    public static final String ERROR_FINDING_FILE_TO_UPLOAD = "Error finding file to upload with name {0}: {1}";
    public static final String ERROR_READING_FILE_CONTENT = "Error reading content of file {0}: {1}";
    public static final String FILE_WITH_ID_AND_SPACE_DOES_NOT_EXIST = "File with ID \"{0}\" and space \"{1}\" does not exist.";
    public static final String ERROR_DELETING_FILE_WITH_ID = "Error deleting file with ID \"{0}\"";
    public static final String ERROR_DELETING_FILES_ATTRIBUTES = "Error deleting files attributes";
    public static final String ERROR_GETTING_FILES_WITH_SPACE_AND_NAMESPACE = "Error getting files with space {0} and namespace {1}";
    public static final String ERROR_GETTING_ALL_FILES = "Error getting all files";
    public static final String ERROR_GETTING_FILES_MODIFIED_BEFORE = "Error getting files modified before {0}";
    public static final String ERROR_DELETING_PROCESS_LOGS_WITH_NAMESPACE = "Error deleting process logs with namespace \"{0}\"";
    public static final String ERROR_DELETING_DIRECTORY = "Error deleting directory \"{0}\"";
    public static final String ERROR_STORING_LOG_FILE = "Error storing log file \"{0}\"";
    public static final String ERROR_UPDATING_LOG_FILE = "Error updating log file \"{0}\"";

    // ERROR log messages:
    public static final String UPLOAD_STREAM_FAILED_TO_CLOSE = "Cannot close file upload stream";
    public static final String DELETING_LOCAL_FILE_BECAUSE_OF_INFECTION = "File \"{0}\" is infected and will be removed";
    public static final String CANNOT_CLOSE_LOGGER_CONTEXT = "Cannot close logger context";

    // WARN log messages:
    public static final String COULD_NOT_CLOSE_RESULT_SET = "Could not close result set.";
    public static final String COULD_NOT_CLOSE_STATEMENT = "Could not close statement.";
    public static final String COULD_NOT_CLOSE_CONNECTION = "Could not close connection.";
    public static final String COULD_NOT_ROLLBACK_TRANSACTION = "Could not rollback transaction!";
    public static final String COULD_NOT_PERSIST_LOGS_FILE = "Could not persist logs file: {0}";

    // INFO log messages:

    public static final String SCANNING_FILE = "Scanning file \"{0}\"...";
    public static final String SCANNING_FILE_SUCCESS = "File \"{0}\" is not infected";
    public static final String FAILED_TO_DELETE_FILE = "Failed to delete file {0}";
    public static final String DELETING_FILE_IN_TABLE = "File \"{0}\" in space \"{1}\" will be deleted from \"{2}\".";
    public static final String CREATING_INDEX_CONCURRENTLY = "Creating index {0} concurrently";
    public static final String INDEX_CREATED = "Index created.";

    // DEBUG log messages:
    public static final String DELETING_FILE_WITH_PATH_0 = "Deleting file with path \"{0}\"...";
    public static final String DELETED_FILE_0_SUCCESSFULLY_1 = "Deleted file with path \"{0}\": {1}";
    public static final String CREATING_LOGGER = "Creating logger \"{0}\"...";
    public static final String CREATING_APPENDER = "Creating appender for logger \"{0}\"...";
    public static final String REMOVING_ALL_LOGGERS_FOR_PROCESS = "Removing loggers {1} for process \"{0}\"...";
    public static final String REMOVING_ALL_APPENDERS_FROM_LOGGER = "Removing all appenders from logger \"{0}\"...";
    public static final String STORING_FILE_TO_PATH_0 = "Storing file to path \"{0}\"...";
    public static final String STORED_FILE_0 = "Stored file: \"{0}\"";
    public static final String STORED_FILE_0_WITH_SIZE_1_SUCCESSFULLY_2 = "Stored file \"{0}\" with size {1}";
    public static final String DELETED_0_FILES_WITH_SPACE_1 = "Deleted {0} files with space \"{1}\".";
    public static final String DELETED_0_FILES_WITH_SPACE_1_AND_NAMESPACE_2 = "Deleted {0} files with space \"{1}\" and namespace \"{2}\".";
    public static final String DELETED_0_FILES_MODIFIED_BEFORE_1 = "Deleted {0} files modified before \"{1}\".";
    public static final String DELETED_0_FILES_WITH_ID_1_AND_SPACE_2 = "Deleted {0} files with ID \"{1}\" and space \"{2}\".";
    public static final String DELETED_0_FILES_WITHOUT_CONTENT = "Deleted {0} files without content.";
    public static final String PROCESSING_FILE_0 = "Processing file \"{0}\"...";

    protected Messages() {
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy