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 for the given deployment job.
      java.util.Optional<byte[]> get​(RunId id)
      Returns the run logs of the given deployment job, if existent.
      void put​(RunId id, byte[] log)
      Stores the given log 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
      • delete

        public void delete​(RunId id)
        Description copied from interface: RunDataStore
        Deletes the run logs 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