Class MockRunDataStore
- 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 MockRunDataStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(com.yahoo.config.provision.ApplicationId id)Deletes all data associated with the given application.voiddelete(RunId id)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[]>getTestReport(RunId id)Returns the test report og the given deployment job, if presentvoidput(RunId id, byte[] log)Stores the given log for the given deployment job.voidputTestReport(RunId id, byte[] report)Stores the test report for the given deployment job
-
-
-
Method Detail
-
get
public Optional<byte[]> get(RunId id)
Description copied from interface:RunDataStoreReturns the run logs of the given deployment job, if existent.- Specified by:
getin interfaceRunDataStore
-
put
public void put(RunId id, byte[] log)
Description copied from interface:RunDataStoreStores the given log for the given deployment job.- Specified by:
putin interfaceRunDataStore
-
getTestReport
public Optional<byte[]> getTestReport(RunId id)
Description copied from interface:RunDataStoreReturns the test report og the given deployment job, if present- Specified by:
getTestReportin interfaceRunDataStore
-
putTestReport
public void putTestReport(RunId id, byte[] report)
Description copied from interface:RunDataStoreStores the test report for the given deployment job- Specified by:
putTestReportin interfaceRunDataStore
-
delete
public void delete(RunId id)
Description copied from interface:RunDataStoreDeletes the run logs and test report for the given deployment job.- Specified by:
deletein interfaceRunDataStore
-
delete
public void delete(com.yahoo.config.provision.ApplicationId id)
Description copied from interface:RunDataStoreDeletes all data associated with the given application.- Specified by:
deletein interfaceRunDataStore
-
-