Class MockMeteringClient
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.stubs.MockMeteringClient
-
- All Implemented Interfaces:
MeteringClient
public class MockMeteringClient extends 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(Collection<ResourceSnapshot> resources)Collection<ResourceSnapshot>consumedResources()MeteringDatagetMeteringData(com.yahoo.config.provision.TenantName tenantName, com.yahoo.config.provision.ApplicationName applicationName)List<ResourceSnapshot>getSnapshotHistoryForTenant(com.yahoo.config.provision.TenantName tenantName, YearMonth yearMonth)booleanisRefreshed()voidrefresh()voidsetMeteringData(MeteringData meteringData)
-
-
-
Method Detail
-
consume
public void consume(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 List<ResourceSnapshot> getSnapshotHistoryForTenant(com.yahoo.config.provision.TenantName tenantName, YearMonth yearMonth)
- Specified by:
getSnapshotHistoryForTenantin interfaceMeteringClient
-
refresh
public void refresh()
- Specified by:
refreshin interfaceMeteringClient
-
consumedResources
public Collection<ResourceSnapshot> consumedResources()
-
setMeteringData
public void setMeteringData(MeteringData meteringData)
-
isRefreshed
public boolean isRefreshed()
-
-