Class ServiceVersion

java.lang.Object
uk.ac.manchester.spinnaker.alloc.ServiceVersion

@Service
@Role(1)
public class ServiceVersion
extends Object
The version information of the service.
  • Constructor Details

    • ServiceVersion

      public ServiceVersion​(@Value("${version}") String version, @Value("${build-timestamp}") String buildTimestamp)
      Create an instance.
      Parameters:
      version - The version, injected from the POM by the build process.
      buildTimestamp - The build timestamp, injected from the POM by the build process.
  • Method Details

    • getVersion

      public Version getVersion()
      Returns:
      The logical version number. Expected to at least approximately follow semver rules.
    • getFullVersion

      public String getFullVersion()
      Returns:
      The full version identifier. Conforms only to Maven conventions.
    • getBuildTimestamp

      public String getBuildTimestamp()
      Returns:
      The build timestamp. The format of this is not intended for further machine parsing.