Class ApplicationMetadata

java.lang.Object
net.solarnetwork.central.ApplicationMetadata

public class ApplicationMetadata extends Object
General application metadata.
  • Constructor Details

    • ApplicationMetadata

      public ApplicationMetadata(String name, String version, String instanceId)
      Constructor.
      Parameters:
      name - the application name, must not be null
      instanceId - a unique application instance ID, to differentiate multiple instances of the same application; if null a UUID-based value will be assigned
      the - application version; if null an empty string will be set
      Throws:
      IllegalArgumentException - if name is null
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getName

      public String getName()
      Get the name.
      Returns:
      the name, never
    • getVersion

      public String getVersion()
      Get the version.
      Returns:
      the version
    • getInstanceId

      public String getInstanceId()
      Get the instance ID.
      Returns:
      the instance ID, never null