Class MockRunDataStore

  • All Implemented Interfaces:
    RunDataStore

    public class MockRunDataStore
    extends java.lang.Object
    implements RunDataStore
    Author:
    jonmv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(com.yahoo.config.provision.ApplicationId id)
      Deletes all data associated with the given application.
      void delete​(RunId id)
      Deletes the run logs and test report for the given deployment job.
      java.util.Optional<byte[]> get​(RunId id)
      Returns the run logs of the given deployment job, if existent.
      java.util.Optional<byte[]> getTestReport​(RunId id)
      Returns the test report og the given deployment job, if present
      void put​(RunId id, byte[] log)
      Stores the given log for the given deployment job.
      void putTestReport​(RunId id, byte[] report)
      Stores the test report for the given deployment job
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MockRunDataStore

        public MockRunDataStore()
    • Method Detail

      • get

        public java.util.Optional<byte[]> get​(RunId id)
        Description copied from interface: RunDataStore
        Returns the run logs of the given deployment job, if existent.
        Specified by:
        get in interface RunDataStore
      • put

        public void put​(RunId id,
                        byte[] log)
        Description copied from interface: RunDataStore
        Stores the given log for the given deployment job.
        Specified by:
        put in interface RunDataStore
      • getTestReport

        public java.util.Optional<byte[]> getTestReport​(RunId id)
        Description copied from interface: RunDataStore
        Returns the test report og the given deployment job, if present
        Specified by:
        getTestReport in interface RunDataStore
      • putTestReport

        public void putTestReport​(RunId id,
                                  byte[] report)
        Description copied from interface: RunDataStore
        Stores the test report for the given deployment job
        Specified by:
        putTestReport in interface RunDataStore
      • delete

        public void delete​(RunId id)
        Description copied from interface: RunDataStore
        Deletes the run logs and test report for the given deployment job.
        Specified by:
        delete in interface RunDataStore
      • delete

        public void delete​(com.yahoo.config.provision.ApplicationId id)
        Description copied from interface: RunDataStore
        Deletes all data associated with the given application.
        Specified by:
        delete in interface RunDataStore