Class RunIdStore

  • All Implemented Interfaces:
    ExtensionPoint

    @Extension(ordinal=1.0)
    public class RunIdStore
    extends IdStore<Run>
    Manages Unique IDs for Runs. Whilst we could use the PersistenceRootIdStore that will create extra files for every single build. A build already has a unique identifier (build number / build id) and a parent job can have a unique ID, so we build one from the parent and our build number to save creating a file.
    • Constructor Detail

      • RunIdStore

        public RunIdStore()
    • Method Detail

      • make

        public void make​(Run run)
        Description copied from class: IdStore
        Creates an unique id for the given object. Subsequent calls are idempotent.
        Specified by:
        make in class IdStore<Run>
        Parameters:
        run - the object to make the id for.
      • get

        public String get​(Run run)
        Description copied from class: IdStore
        Get the id for this given object.
        Specified by:
        get in class IdStore<Run>
        Parameters:
        run - the object.
        Returns:
        the id or null if none assigned.