Class ChangingStatusLogger.ChangingStatusDefault
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.util.ChangingStatusLogger.ChangingStatusDefault
- All Implemented Interfaces:
ChangingStatusLogger.ChangingStatus
- Enclosing class:
- ChangingStatusLogger
public static class ChangingStatusLogger.ChangingStatusDefault
extends Object
implements ChangingStatusLogger.ChangingStatus
-
Constructor Summary
ConstructorsConstructorDescriptionChangingStatusDefault(String logMessageTemplate, int paramCount) ChangingStatusDefault(String logMessageTemplate, Object[] status) -
Method Summary
Modifier and TypeMethodDescriptionObject[]Get a copy of the parameters array.final Object[]Get the parameters to pass to the logger when logging a message.Get the message template.voidlogIfChanged(org.slf4j.Logger logger) Check if the status changed, and if so, log the configured message to the given logger.final voidfinal voidsetObjectAt(int idx, Object value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.fraunhofer.iosb.ilt.frostserver.util.ChangingStatusLogger.ChangingStatus
process
-
Constructor Details
-
ChangingStatusDefault
-
ChangingStatusDefault
-
-
Method Details
-
setAllTo
-
setObjectAt
-
getLogMessageTemplate
Description copied from interface:ChangingStatusLogger.ChangingStatusGet the message template.- Specified by:
getLogMessageTemplatein interfaceChangingStatusLogger.ChangingStatus- Returns:
- the message template, with placeholders for the parameters, to pass to the logger.
-
getCurrentParams
Description copied from interface:ChangingStatusLogger.ChangingStatusGet the parameters to pass to the logger when logging a message.- Specified by:
getCurrentParamsin interfaceChangingStatusLogger.ChangingStatus- Returns:
- The parameters to pass to the logger.
-
getCopyCurrentParams
Description copied from interface:ChangingStatusLogger.ChangingStatusGet a copy of the parameters array.- Specified by:
getCopyCurrentParamsin interfaceChangingStatusLogger.ChangingStatus- Returns:
- a copy of the parameters array.
-
logIfChanged
public void logIfChanged(org.slf4j.Logger logger) Description copied from interface:ChangingStatusLogger.ChangingStatusCheck if the status changed, and if so, log the configured message to the given logger. The method will be periodically called.- Specified by:
logIfChangedin interfaceChangingStatusLogger.ChangingStatus- Parameters:
logger- The logger to log to.
-