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 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
    • putLogs

      public void putLogs(RunId id, boolean tester, InputStream logs)
      Description copied from interface: RunDataStore
      Stores Vespa logs for the run.
      Specified by:
      putLogs in interface RunDataStore
    • getLogs

      public InputStream getLogs(RunId id, boolean tester)
      Description copied from interface: RunDataStore
      Fetches Vespa logs for the run.
      Specified by:
      getLogs in interface RunDataStore