001/* 002 * jPOS Project [http://jpos.org] 003 * Copyright (C) 2000-2026 jPOS Software SRL 004 * 005 * This program is free software: you can redistribute it and/or modify 006 * it under the terms of the GNU Affero General Public License as 007 * published by the Free Software Foundation, either version 3 of the 008 * License, or (at your option) any later version. 009 * 010 * This program is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 013 * GNU Affero General Public License for more details. 014 * 015 * You should have received a copy of the GNU Affero General Public License 016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 017 */ 018 019package org.jpos.util; 020 021/** 022 * Canonical realm strings used by jPOS log sources to group related events. 023 * 024 * <p>Constants in this class are passed to {@link Log}/{@link Logger} 025 * so events can be filtered or routed by component family. 026 */ 027public final class Realm { 028 /** Generic communications realm. */ 029 public static final String COMM = "comm"; 030 /** Channel-level communications realm. */ 031 public static final String COMM_CHANNEL = "comm/channel"; 032 /** Server-side communications realm. */ 033 public static final String COMM_SERVER = "comm/server"; 034 /** MUX communications realm. */ 035 public static final String COMM_MUX = "comm/mux"; 036 /** Client-side communications realm. */ 037 public static final String COMM_CLIENT = "comm/client"; 038 /** Transaction-manager realm. */ 039 public static final String TXN = "txn"; 040 /** Q2 container realm. */ 041 public static final String Q2 = "q2"; 042 /** Q2 deploy/undeploy realm. */ 043 public static final String Q2_DEPLOY = "q2/deploy"; 044 /** Q2 startup/shutdown lifecycle realm. */ 045 public static final String Q2_LIFECYCLE = "q2/lifecycle"; 046 /** Q2 system monitor (SysInfo) realm. */ 047 public static final String Q2_SYSMON = "q2/sysinfo"; 048 /** Security/SM realm. */ 049 public static final String SECURITY = "security"; 050 /** Generic system realm. */ 051 public static final String SYSTEM = "system"; 052 053 private Realm() { 054 } 055}