Package org.imixs.archive.service.util
Class MessageService
java.lang.Object
org.imixs.archive.service.util.MessageService
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessages(String topic) voidlogMessage(String topic, String message) logs a new message into the message loguserFriendlyBytes(long bytes) Computes the file size into a user friendly format
-
Constructor Details
-
MessageService
public MessageService()
-
-
Method Details
-
getMessages
-
logMessage
logs a new message into the message log- Parameters:
message-
-
userFriendlyBytes
Computes the file size into a user friendly format- Parameters:
size-- Returns:
-