Class HostnameIdProvider

java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.HostnameIdProvider
All Implemented Interfaces:
IdProvider

public class HostnameIdProvider extends Object implements IdProvider
A device ID provider based on the hostname of the device.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • HostnameIdProvider

      public HostnameIdProvider()
  • Method Details

    • provideId

      public String provideId()
      Description copied from interface: IdProvider
      Returns the id of this device. As the ID is also used as shortId in the platform AAS, it may be that the AAS implementation adjusts the ID to comply with the AAS id rules. Thus, it may be adequate that the returned ID already complies with these rules, e.g., must start with a character.
      Specified by:
      provideId in interface IdProvider
      Returns:
      the id, may be null if for some reason the ID cannot be provided and a fallback shall be used
    • allowsConsoleOverride

      public boolean allowsConsoleOverride()
      Description copied from interface: IdProvider
      Returns whether the console parameter "--"iip.id"" may override the value of this provider.
      Specified by:
      allowsConsoleOverride in interface IdProvider
      Returns:
      true for override, false else