Class AbstractOpenemsBackendComponent
java.lang.Object
io.openems.backend.common.component.AbstractOpenemsBackendComponent
- Direct Known Subclasses:
AbstractMetadata
,AggregatedInflux
,Alerting
,Backend2BackendRest
,Backend2BackendWebsocket
,CoreJsonRpcRequestHandlerImpl
,EdgeWebsocketImpl
,TimedataDummy
,TimedataInfluxDb
,TimedataManagerImpl
,TimedataTimescaleDb
,UiWebsocketImpl
-
Constructor Summary
ConstructorDescriptionInitializes the AbstractOpenemsBackendComponent. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
A descriptive name for this component.static void
logDebug
(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message) Log a debug message including the Component ID.protected void
Log a debug message including the Component ID.static void
logError
(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message) Log a error message including the Component ID.protected void
Log an error message including the Component ID.static void
logInfo
(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message) Log a info message including the Component ID.protected void
Log an info message including the Component ID.static void
logWarn
(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message) Log a warn message including the Component ID.protected void
Log a warn message including the Component ID.
-
Constructor Details
-
AbstractOpenemsBackendComponent
Initializes the AbstractOpenemsBackendComponent.- Parameters:
name
- a descriptive name for this component. Available viagetName()
-
-
Method Details
-
getName
A descriptive name for this component.- Returns:
- the name
-
logInfo
public static void logInfo(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message) Log a info message including the Component ID.- Parameters:
component
- theAbstractOpenemsBackendComponent
log
- theLogger
instancemessage
- the message
-
logInfo
Log an info message including the Component ID.- Parameters:
log
- the Logger that is used for writing the logmessage
- the Info-message
-
logWarn
public static void logWarn(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message) Log a warn message including the Component ID.- Parameters:
component
- theAbstractOpenemsBackendComponent
log
- theLogger
instancemessage
- the message
-
logWarn
Log a warn message including the Component ID.- Parameters:
log
- the Logger that is used for writing the logmessage
- the Warn-message
-
logError
public static void logError(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message) Log a error message including the Component ID.- Parameters:
component
- theAbstractOpenemsBackendComponent
log
- theLogger
instancemessage
- the message
-
logError
Log an error message including the Component ID.- Parameters:
log
- the Logger that is used for writing the logmessage
- the Error-message
-
logDebug
public static void logDebug(AbstractOpenemsBackendComponent component, org.slf4j.Logger log, String message) Log a debug message including the Component ID.- Parameters:
component
- theAbstractOpenemsBackendComponent
log
- theLogger
instancemessage
- the message
-
logDebug
Log a debug message including the Component ID.- Parameters:
log
- the Logger that is used for writing the logmessage
- the Debug-message
-