Class AbstractMetadata
java.lang.Object
io.openems.backend.common.component.AbstractOpenemsBackendComponent
io.openems.backend.common.metadata.AbstractMetadata
- All Implemented Interfaces:
Metadata
- Direct Known Subclasses:
MetadataDummy
,MetadataFile
,MetadataOdoo
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.backend.common.metadata.Metadata
Metadata.Events
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractMetadata
(String name) Initializes the AbstractMetadata. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Was the Metadata service fully initialized?.protected void
Make sure to call this method once initialized!.Methods inherited from class io.openems.backend.common.component.AbstractOpenemsBackendComponent
getName, logDebug, logDebug, logError, logError, logInfo, logInfo, logWarn, logWarn
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.backend.common.metadata.Metadata
addEdgeToUser, addEdgeToUser, authenticate, authenticate, edge, getAllOfflineEdges, getEdge, getEdgeBySetupPassword, getEdgeIdForApikey, getEdgeMetadataForUser, getEdgeOrError, getEventAdmin, getPageDevice, getSerialNumberForEdge, getSetupProtocol, getSetupProtocolData, getUser, getUserAlertingSettings, getUserAlertingSettings, getUserInformation, logout, registerUser, setUserAlertingSettings, setUserInformation, submitSetupProtocol, updateUserLanguage
-
Constructor Details
-
AbstractMetadata
Initializes the AbstractMetadata.- Parameters:
name
- a descriptive name for this component. Available viaAbstractOpenemsBackendComponent.getName()
-
-
Method Details
-
setInitialized
protected void setInitialized()Make sure to call this method once initialized!. -
isInitialized
public final boolean isInitialized()Description copied from interface:Metadata
Was the Metadata service fully initialized?.The service might take some time in the beginning to establish a connection or to cache data from an external database.
- Specified by:
isInitialized
in interfaceMetadata
- Returns:
- true if it is initialized
-