Package eu.bandm.tools.message
package eu.bandm.tools.message
Messages from an application to the user, and the building blocks
for a processing pipeline.
See the
user documentation.
-
ClassDescriptionAbstract base class of the metatools message architecture.Fundamental enum type for categorization of all
Message
objects.MessageAsync<M extends Message>A subclass ofSingleSender
which lets the drain's receive method run asynchronouously in a separate thread.Executes payload code and sends the first exception caught to its given message drain.Counts all received messages, per kind, in total, and per critical/non-critical.Message de-multiplexer which propagates each received message individually to zero to multiple receivers.A message de-multiplexer which propagates each message to all receivers in the map.MessageDemux.ByKind<M extends Message>A message de-multiplexer which sorts messages by their kind.Does nothing with every message it receives.Wraps any kind of message to send it as an exception.Inserts the arguments into the message text, similar to the Java standard string formatter.MessageKindFilter<M extends Message>A filter which propagates only those messages the kind of which is currently in the selection.MessageLatch<M extends Message>A simple register which save the most recenly received message.MessageLevelFilter<M extends Message>A filter which sends messages only to its drain if their level value is equal to or below a given threshold.A filter which propagates only those messages which lie in particular location regions.A message receiver which receives a message of one type, and propagates the result of applying a function to this message, which may be of different type.MessagePasser<M extends Message>Simply passes every message it receives to a single drain.Paisley patterns for messages.MessagePrinter<M extends Message>Prints textual representations of all received messages to an output stream.MessagePrinter.Indenting<M extends Message>Specialization ofMessagePrinter
with addtional features.MessageReceiver<M extends Message>Everything which can receive a message.MessageStore<M extends Message>Storage for a sequence ofMessage
s in order of their arrival.MessageStore_<M extends Message>Common superclass for different kinds of message storages.MessageStoreSorted<M extends Message>Storage for a sequence ofMessage
s with dynamic sorting.MessageStripExceptions<M extends Message>A filter which strips off all exceptions, or at least their stack traces.MessageSync<M extends Message>Can accept messages from many different parallel threads.MessageTee<M extends Message>Propagates all received messages sequentially to a multitude of current drains.MessageThrower<M extends Message>Throws each message it receives after wrapping it into aMessageException
.Translates the text of the message and all embedded sub-structures.Prints textual representations of all received messages to an output stream.Wraps every printed line (on its completion) into one "log" message and sends it to themessage receiver
.Paisley patterns for messages.Auxiliary class which maps from an enumeration type to optionalMessageReceiver
s.A minimal selection of message data which is useful in practice.Passes all incoming messages to its drain, after applying the given location map.Log message with not more informative content than "I am still alive".A convenience class which allows to create and send a message with one single method invocation.SingleSender<M extends Message>Common superclass of classes which send messages to one single switchable drain.SwingMessageField<M extends Message>A one-line display for one message at a time, to be included in a Swing based GUI.Multi-line rendering for messages, to be included in a Swing based GUI.A graphic object showing a traffic light in different phases.The states of aTrafficLight
and of aTrafficMessageReceiver
.Graphic indication of received messages.