| /********************************************************************* |
| * Copyright (c) 2014 Boeing |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Boeing - initial API and implementation |
| **********************************************************************/ |
| |
| package org.eclipse.osee.activity; |
| |
| import org.eclipse.osee.framework.jdk.core.type.Id; |
| |
| /** |
| * @author Ryan D. Brooks |
| */ |
| public final class ActivityConstants { |
| |
| private ActivityConstants() { |
| // Utility class |
| } |
| |
| public static final String NAMESPACE = "osee.activity.log"; |
| |
| private static String qualify(String value) { |
| return String.format("%s.%s", NAMESPACE, value); |
| } |
| |
| public static String ACTIVITY_LOGGER__EXECUTOR_ID = qualify("executor"); |
| public static String ACTIVITY_LOGGER__CLEANER_EXECUTOR_ID = qualify("cleaner"); |
| |
| public static String ACTIVITY_LOGGER__WRITE_RATE_IN_MILLIS = qualify("write.rate.millis"); |
| public static String ACTIVITY_LOGGER__STACKTRACE_LINE_COUNT = qualify("stacktrace.line.count"); |
| public static String ACTIVITY_LOGGER__CLEANER_KEEP_DAYS = qualify("cleaner.keep.days"); |
| public static String ACTIVITY_LOGGER__ENABLED = qualify("enabled"); |
| |
| public static long DEFAULT_ACTIVITY_LOGGER__WRITE_RATE_IN_MILLIS = 3000L; |
| public static int DEFAULT_ACTIVITY_LOGGER__STACKTRACE_LINE_COUNT = 5; |
| public static int DEFAULT_ACTIVITY_LOGGER__CLEANER_KEEP_DAYS = 365; |
| public static boolean DEFAULT_ACTIVITY_LOGGER__ENABLED = true; |
| |
| public static final String HTTP_HEADER__ACTIVITY_ENTRY_ID = "X-osee-activity-log-entryId"; |
| public static final String ERROR_MSG__MISSING_ACTIVITY_HEADER = |
| "Error [" + ActivityConstants.HTTP_HEADER__ACTIVITY_ENTRY_ID + "] was missing from request http header"; |
| |
| public static final Long DEFAULT_CLIENT_ID = Id.SENTINEL; |
| } |