Package org.jpos.util
package org.jpos.util
-
ClassDescriptionAbstract class for LogEventWriter implementations.implements a blocking queueThrown by queue operations after the queue has been closed.
BufferedLogListenervariant that only retains events whose payload carries an exception, useful for buffering recent failures for triage.LogListenerthat buffers a configurable window of recent events and replays them (asynchronously) to any registered downstream listeners.Return Caller's short class name, method and line numberGeneral purpose Chronometer Measures execution time (in millis) with support for partial durations.Helpers that build pre-tunedjava.util.concurrentprimitives for use across jPOS, currently focused on virtual-thread-backed scheduled executors with sensible shutdown semantics.Rotates log daily and compress the previous log.Convenience helpers for parsing and formatting dates and times in a small set of jPOS-specific patterns.Timer accesor singletonImplemented by objects that require explicit cleanup on shutdown; the container callsDestroyable.destroy()during teardown.DirPoll operates on a set of directories which defaults to request response tmp run bad archive scanning for incoming requests (of varying priorities) on the request directory and processing them by means of DirPoll.Processor or DirPoll.FileProcessorException thrown byDirPoll.ProcessororDirPoll.FileProcessorto signal a processing error.Callback interface for processing requestFileobjects directly.Callback interface for processing binary request files.ALoggeablewrapper around a named byte array payload.A specific log listener that filters all LogEvents that doesn't contain any exception.A specific log listener that filters logs based on their priorities.A LogListener that uses the RemoveNewLinesMapper to remove newlines from the LogEvent dump output.An immutable, serializable snapshot of aLogEvent.General purpose, Field Separator delimited message.Protects selected fields from LogEvents.Log listener that suppresses configured realms or MTIs.JSONL (one JSON object per line) LogEventWriter with built-in PCI protection.Deprecated.Represents a LogSource and adds several helpersSerializes log file compression across all log listener instances through a single on-demand background worker.A single structured log event that carries a tag, realm, payload items, and optionally aThrowable.OutputStreamthat buffers writes and periodically flushes the accumulated bytes as a singleLogEventafter a configurable delay.LogEventWriters allow the customization of how LogListeners write LogEvent data to output streams.Implemented by objects that can produce a human-readable log representation viaLoggeable.dump(java.io.PrintStream, String).Peer class Logger forwards LogEvents generated by LogSources to LogListeners.Interface for objects that produce log events and manage a list ofLogListeners.Helpers for emitting strings that may contain XML-reserved characters inside log payloads, optionally wrapping them inCDATAblocks.LogEventWriter that can be configured with event and output mappers to modify the events before writing to output stream and modify the output stream before writing to the final destination respectfully.LogEventthat captures a precomputed Markdown rendering and replays it verbatim on subsequentdump/toStringcalls.Deprecated.HdrHistogram-backed metrics aggregator with on-demand histogram creation per name.Implemented by components that publish aMetricsinstance for inspection or dumping.Allow runtime binding of jPOS's components (ISOChannels, Logger, MUXes, etc)Thrown when a requested name is not found in the registrar.PGP utility helpers used by jPOS for license verification, public-key loading, and simple encryption/decryption with Bouncy Castle.Simple ProfilerA single timed checkpoint entry recorded by the Profiler.Protects selected fields from LogEvents.Canonical realm strings used by jPOS log sources to group related events.Filters LogEvents by their realm
RealmLogFilter is a filter for Event logs, it should be defined _before_ other standard LogListeners such as SimpleLogListener or RotateLogListeners.Recyclable<T>Caches a supplier's result up to approximatelymaxCycles.Rotates logsJava-serialization helpers with deserialization filters that reject known gadget-chain classes and enforce a depth limit.LogSources can choose to extends this SimpleLogSourceA simple general purpose loggeable message.A LogListener implementation that allows logging during a configurable time window every configurable period.LogListenerthat publishes events into aSpacequeue, optionally freezing them to aFrozenLogEventfirst so background subscribers see a stable snapshot.Simple wall-clock timer that pads a block of work to a minimum duration, useful when masking timing differences between branches (e.g.SysLog Listener see www.ietf.org/rfc/rfc3164.txtPeriodically dumps Thread and memory usageSerializable, mutable set of string tags with helpers for parsing comma-separated values.Deprecated.Used Executor frameworkMarks jobs that can be supervised and interrupted when expired.Exposes thread-pool metrics via JMX.ThroughputControl limits the throughput of a process to a maximum number of transactions in a given period of time.TPS can be used to measure Transactions Per Second (or transactions during other period of time).Deprecated.WatchDog will issue a warning message if not canceled on timeDeprecated.Uses java.util.zip to compress an input file and store it to the given output.