Package io.github.webbasedwodt.config
Class EnvironmentConfigurationLoader
java.lang.Object
io.github.webbasedwodt.config.EnvironmentConfigurationLoader
- All Implemented Interfaces:
ConfigurationLoader
The Configuration Loader implementation based on Environment Variables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the port to expose for the Digital Twin WoDT servicesGet the Digital Twin URI.Get the version of the exposed WoDT Digital Twin.Get the ditto observation endpoint.Get the ditto passwordGet the Ditto Thing ID.Get the ditto url.Get the ditto username.Get the associated Physical Asset ID.Get the Platform URI to register.Get the path of the YAML file that specifies the DT semantics.
-
Constructor Details
-
EnvironmentConfigurationLoader
public EnvironmentConfigurationLoader()Default constructor.
-
-
Method Details
-
getDittoUrl
Description copied from interface:ConfigurationLoader
Get the ditto url.- Specified by:
getDittoUrl
in interfaceConfigurationLoader
- Returns:
- the url.
-
getDittoObservationEndpoint
Description copied from interface:ConfigurationLoader
Get the ditto observation endpoint.- Specified by:
getDittoObservationEndpoint
in interfaceConfigurationLoader
- Returns:
- the endpoint.
-
getDittoUsername
Description copied from interface:ConfigurationLoader
Get the ditto username.- Specified by:
getDittoUsername
in interfaceConfigurationLoader
- Returns:
- the ditto username
-
getDittoPassword
Description copied from interface:ConfigurationLoader
Get the ditto password- Specified by:
getDittoPassword
in interfaceConfigurationLoader
- Returns:
- the ditto password.
-
getDittoThingId
Description copied from interface:ConfigurationLoader
Get the Ditto Thing ID.- Specified by:
getDittoThingId
in interfaceConfigurationLoader
- Returns:
- the Thing ID.
-
getYamlOntologyPath
Description copied from interface:ConfigurationLoader
Get the path of the YAML file that specifies the DT semantics.- Specified by:
getYamlOntologyPath
in interfaceConfigurationLoader
- Returns:
- the file path
-
getPlatformUri
Description copied from interface:ConfigurationLoader
Get the Platform URI to register.- Specified by:
getPlatformUri
in interfaceConfigurationLoader
- Returns:
- the URI.
-
getPhysicalAssetId
Description copied from interface:ConfigurationLoader
Get the associated Physical Asset ID.- Specified by:
getPhysicalAssetId
in interfaceConfigurationLoader
- Returns:
- the physical asset id
-
getDigitalTwinUri
Description copied from interface:ConfigurationLoader
Get the Digital Twin URI.- Specified by:
getDigitalTwinUri
in interfaceConfigurationLoader
- Returns:
- the DT URI
-
getDigitalTwinExposedPort
public int getDigitalTwinExposedPort()Description copied from interface:ConfigurationLoader
Get the port to expose for the Digital Twin WoDT services- Specified by:
getDigitalTwinExposedPort
in interfaceConfigurationLoader
- Returns:
- the port to expose
-
getDigitalTwinVersion
Description copied from interface:ConfigurationLoader
Get the version of the exposed WoDT Digital Twin.- Specified by:
getDigitalTwinVersion
in interfaceConfigurationLoader
- Returns:
- the version.
-