Class IpdSharedFileWriteLatencyMeter
- java.lang.Object
-
- com.atlassian.confluence.internal.diagnostics.ipd.filesystem.IpdSharedFileWriteLatencyMeter
-
public class IpdSharedFileWriteLatencyMeter extends Object
Makes measurements of file write duration to shared file system without guaranteed persistence.- Since:
- 8.7
-
-
Field Summary
Fields Modifier and Type Field Description protected Clock
clock
protected int
numberOfMeasurements
protected Random
random
protected static byte[]
SAMPLE_DATA
-
Constructor Summary
Constructors Constructor Description IpdSharedFileWriteLatencyMeter(com.atlassian.dc.filestore.api.FileStore.Path file, int numberOfMeasurements)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static long
getMedian(List<Long> measurements)
List<Duration>
makeWriteLatencyMeasurements()
protected Duration
measureWriteLatency()
-
-
-
Method Detail
-
measureWriteLatency
protected Duration measureWriteLatency() throws IOException
- Throws:
IOException
-
makeWriteLatencyMeasurements
public List<Duration> makeWriteLatencyMeasurements() throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-