Class MockMeteringClient
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.stubs.MockMeteringClient
-
- All Implemented Interfaces:
MeteringClient
public class MockMeteringClient extends java.lang.Object implements MeteringClient
- Author:
- olaa
-
-
Constructor Summary
Constructors Constructor Description MockMeteringClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume(java.util.Collection<ResourceSnapshot> resources)java.util.Collection<ResourceSnapshot>consumedResources()MeteringDatagetMeteringData(com.yahoo.config.provision.TenantName tenantName, com.yahoo.config.provision.ApplicationName applicationName)java.util.List<ResourceSnapshot>getSnapshotHistoryForTenant(com.yahoo.config.provision.TenantName tenantName, java.time.YearMonth yearMonth)voidsetMeteringData(MeteringData meteringData)
-
-
-
Method Detail
-
consume
public void consume(java.util.Collection<ResourceSnapshot> resources)
- Specified by:
consumein interfaceMeteringClient
-
getMeteringData
public MeteringData getMeteringData(com.yahoo.config.provision.TenantName tenantName, com.yahoo.config.provision.ApplicationName applicationName)
- Specified by:
getMeteringDatain interfaceMeteringClient
-
getSnapshotHistoryForTenant
public java.util.List<ResourceSnapshot> getSnapshotHistoryForTenant(com.yahoo.config.provision.TenantName tenantName, java.time.YearMonth yearMonth)
- Specified by:
getSnapshotHistoryForTenantin interfaceMeteringClient
-
consumedResources
public java.util.Collection<ResourceSnapshot> consumedResources()
-
setMeteringData
public void setMeteringData(MeteringData meteringData)
-
-