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 TypeMethodDescriptionintGet 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:ConfigurationLoaderGet the ditto url.- Specified by:
getDittoUrlin interfaceConfigurationLoader- Returns:
- the url.
-
getDittoObservationEndpoint
Description copied from interface:ConfigurationLoaderGet the ditto observation endpoint.- Specified by:
getDittoObservationEndpointin interfaceConfigurationLoader- Returns:
- the endpoint.
-
getDittoUsername
Description copied from interface:ConfigurationLoaderGet the ditto username.- Specified by:
getDittoUsernamein interfaceConfigurationLoader- Returns:
- the ditto username
-
getDittoPassword
Description copied from interface:ConfigurationLoaderGet the ditto password- Specified by:
getDittoPasswordin interfaceConfigurationLoader- Returns:
- the ditto password.
-
getDittoThingId
Description copied from interface:ConfigurationLoaderGet the Ditto Thing ID.- Specified by:
getDittoThingIdin interfaceConfigurationLoader- Returns:
- the Thing ID.
-
getYamlOntologyPath
Description copied from interface:ConfigurationLoaderGet the path of the YAML file that specifies the DT semantics.- Specified by:
getYamlOntologyPathin interfaceConfigurationLoader- Returns:
- the file path
-
getPlatformUri
Description copied from interface:ConfigurationLoaderGet the Platform URI to register.- Specified by:
getPlatformUriin interfaceConfigurationLoader- Returns:
- the URI.
-
getPhysicalAssetId
Description copied from interface:ConfigurationLoaderGet the associated Physical Asset ID.- Specified by:
getPhysicalAssetIdin interfaceConfigurationLoader- Returns:
- the physical asset id
-
getDigitalTwinUri
Description copied from interface:ConfigurationLoaderGet the Digital Twin URI.- Specified by:
getDigitalTwinUriin interfaceConfigurationLoader- Returns:
- the DT URI
-
getDigitalTwinExposedPort
public int getDigitalTwinExposedPort()Description copied from interface:ConfigurationLoaderGet the port to expose for the Digital Twin WoDT services- Specified by:
getDigitalTwinExposedPortin interfaceConfigurationLoader- Returns:
- the port to expose
-
getDigitalTwinVersion
Description copied from interface:ConfigurationLoaderGet the version of the exposed WoDT Digital Twin.- Specified by:
getDigitalTwinVersionin interfaceConfigurationLoader- Returns:
- the version.
-