Class ResourceDatabaseClientMock
java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.resource.ResourceDatabaseClientMock
- All Implemented Interfaces:
ResourceDatabaseClient
- Author:
- olaa
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMonthsWithSnapshotsForTenant(com.yahoo.config.provision.TenantName tenantName) getOldestSnapshotTimestamp(Set<DeploymentId> deployments) getRawSnapshotHistoryForTenant(com.yahoo.config.provision.TenantName tenantName, YearMonth yearMonth) getResourceSnapshotsForPeriod(com.yahoo.config.provision.TenantName tenantName, long start, long end) Set<com.yahoo.config.provision.TenantName>booleanvoidscalingEvents(Instant from, Instant to, Optional<com.yahoo.config.provision.ApplicationId> application) voidvoidvoidwriteScalingEvents(ClusterId clusterId, Collection<Cluster.ScalingEvent> scalingEvents) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.vespa.hosted.controller.api.integration.resource.ResourceDatabaseClient
getResourceSnapshotsForMonth
-
Constructor Details
-
ResourceDatabaseClientMock
-
-
Method Details
-
writeResourceSnapshots
- Specified by:
writeResourceSnapshotsin interfaceResourceDatabaseClient
-
getMonthsWithSnapshotsForTenant
public Set<YearMonth> getMonthsWithSnapshotsForTenant(com.yahoo.config.provision.TenantName tenantName) - Specified by:
getMonthsWithSnapshotsForTenantin interfaceResourceDatabaseClient
-
getRawSnapshotHistoryForTenant
public List<ResourceSnapshot> getRawSnapshotHistoryForTenant(com.yahoo.config.provision.TenantName tenantName, YearMonth yearMonth) - Specified by:
getRawSnapshotHistoryForTenantin interfaceResourceDatabaseClient
-
getTenants
- Specified by:
getTenantsin interfaceResourceDatabaseClient
-
getResourceSnapshotsForPeriod
public List<ResourceUsage> getResourceSnapshotsForPeriod(com.yahoo.config.provision.TenantName tenantName, long start, long end) - Specified by:
getResourceSnapshotsForPeriodin interfaceResourceDatabaseClient
-
refreshMaterializedView
public void refreshMaterializedView()- Specified by:
refreshMaterializedViewin interfaceResourceDatabaseClient
-
getOldestSnapshotTimestamp
- Specified by:
getOldestSnapshotTimestampin interfaceResourceDatabaseClient
-
writeScalingEvents
- Specified by:
writeScalingEventsin interfaceResourceDatabaseClient
-
scalingEvents
public List<Cluster.ScalingEvent> scalingEvents(Instant from, Instant to, Optional<com.yahoo.config.provision.ApplicationId> application) - Specified by:
scalingEventsin interfaceResourceDatabaseClient
-
setPlan
-
hasRefreshedMaterializedView
public boolean hasRefreshedMaterializedView() -
resourceSnapshots
-