java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.stubs.MockRunDataStore
All Implemented Interfaces:
RunDataStore

public class MockRunDataStore extends Object implements RunDataStore
Author:
jonmv
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(com.yahoo.config.provision.ApplicationId id)
    Deletes all data associated with the given application.
    void
    Deletes the run logs and test report for the given deployment job.
    Optional<byte[]>
    get(RunId id)
    Returns the run logs of the given deployment job, if existent.
    Optional<byte[]>
    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 Details

    • MockRunDataStore

      public MockRunDataStore()
  • Method Details

    • get

      public 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 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