blob: 623e19fa38295206a7be2c393116bcbb642886e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.jdisc.state;
import java.io.PrintStream;
/**
* @author gjoranv
*/
public class MockSnapshotProvider implements SnapshotProvider {
private MetricSnapshot snapshot;
public void setSnapshot(MetricSnapshot snapshot) {
this.snapshot = snapshot;
}
@Override
public MetricSnapshot latestSnapshot() {
return snapshot;
}
@Override
public void histogram(PrintStream output) { }
}
|