Class MessageService

java.lang.Object
org.imixs.archive.service.util.MessageService

public class MessageService extends Object
This service provides a message log which can be used to monitor the timer status. With the method logMessage() a message can be added to a given topic. The Method getMessages() returns all messages for a topic.

The MAX_COUNT specifies the maximum count of messages stored in one message log.

Version:
2.0
Author:
rsoika
  • Constructor Details

    • MessageService

      public MessageService()
  • Method Details

    • getMessages

      public List<String> getMessages(String topic)
    • logMessage

      public void logMessage(String topic, String message)
      logs a new message into the message log
      Parameters:
      message -
    • userFriendlyBytes

      public String userFriendlyBytes(long bytes)
      Computes the file size into a user friendly format
      Parameters:
      size -
      Returns: