public class ConnectionStateSnapshot extends Object
| Constructor and Description |
|---|
ConnectionStateSnapshot() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
avgLatencyInMs()
Get average latency in ms.
|
ConnectionState |
connectionState()
Get the connection state.
|
org.joda.time.DateTime |
endTime()
Get the end time of the connection snapshot.
|
EvaluationState |
evaluationState()
Get connectivity analysis evaluation state.
|
List<ConnectivityHop> |
hops()
Get list of hops between the source and the destination.
|
Integer |
maxLatencyInMs()
Get maximum latency in ms.
|
Integer |
minLatencyInMs()
Get minimum latency in ms.
|
Integer |
probesFailed()
Get the number of failed probes.
|
Integer |
probesSent()
Get the number of sent probes.
|
org.joda.time.DateTime |
startTime()
Get the start time of the connection snapshot.
|
ConnectionStateSnapshot |
withAvgLatencyInMs(Integer avgLatencyInMs)
Set average latency in ms.
|
ConnectionStateSnapshot |
withConnectionState(ConnectionState connectionState)
Set the connection state.
|
ConnectionStateSnapshot |
withEndTime(org.joda.time.DateTime endTime)
Set the end time of the connection snapshot.
|
ConnectionStateSnapshot |
withEvaluationState(EvaluationState evaluationState)
Set connectivity analysis evaluation state.
|
ConnectionStateSnapshot |
withMaxLatencyInMs(Integer maxLatencyInMs)
Set maximum latency in ms.
|
ConnectionStateSnapshot |
withMinLatencyInMs(Integer minLatencyInMs)
Set minimum latency in ms.
|
ConnectionStateSnapshot |
withProbesFailed(Integer probesFailed)
Set the number of failed probes.
|
ConnectionStateSnapshot |
withProbesSent(Integer probesSent)
Set the number of sent probes.
|
ConnectionStateSnapshot |
withStartTime(org.joda.time.DateTime startTime)
Set the start time of the connection snapshot.
|
public ConnectionState connectionState()
public ConnectionStateSnapshot withConnectionState(ConnectionState connectionState)
connectionState - the connectionState value to setpublic org.joda.time.DateTime startTime()
public ConnectionStateSnapshot withStartTime(org.joda.time.DateTime startTime)
startTime - the startTime value to setpublic org.joda.time.DateTime endTime()
public ConnectionStateSnapshot withEndTime(org.joda.time.DateTime endTime)
endTime - the endTime value to setpublic EvaluationState evaluationState()
public ConnectionStateSnapshot withEvaluationState(EvaluationState evaluationState)
evaluationState - the evaluationState value to setpublic Integer avgLatencyInMs()
public ConnectionStateSnapshot withAvgLatencyInMs(Integer avgLatencyInMs)
avgLatencyInMs - the avgLatencyInMs value to setpublic Integer minLatencyInMs()
public ConnectionStateSnapshot withMinLatencyInMs(Integer minLatencyInMs)
minLatencyInMs - the minLatencyInMs value to setpublic Integer maxLatencyInMs()
public ConnectionStateSnapshot withMaxLatencyInMs(Integer maxLatencyInMs)
maxLatencyInMs - the maxLatencyInMs value to setpublic Integer probesSent()
public ConnectionStateSnapshot withProbesSent(Integer probesSent)
probesSent - the probesSent value to setpublic Integer probesFailed()
public ConnectionStateSnapshot withProbesFailed(Integer probesFailed)
probesFailed - the probesFailed value to setpublic List<ConnectivityHop> hops()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/