Class MockRunDataStore
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.stubs.MockRunDataStore
-
- All Implemented Interfaces:
RunDataStore
public class MockRunDataStore extends java.lang.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 for the given deployment job.java.util.Optional<byte[]>get(RunId id)Returns the run logs of the given deployment job, if existent.voidput(RunId id, byte[] log)Stores the given log for the given deployment job.
-
-
-
Method Detail
-
get
public java.util.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
-
delete
public void delete(RunId id)
Description copied from interface:RunDataStoreDeletes the run logs 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
-
-