ConnectionStateSnapshot Class

  • java.lang.Object
    • com.microsoft.azure.management.network.ConnectionStateSnapshot

public class ConnectionStateSnapshot

Connection state snapshot.

Constructor Summary

Constructor Description
ConnectionStateSnapshot()

Method Summary

Modifier and Type Method and Description
java.lang.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.

java.util.List<ConnectivityHop> hops()

Get list of hops between the source and the destination.

java.lang.Integer maxLatencyInMs()

Get maximum latency in ms.

java.lang.Integer minLatencyInMs()

Get minimum latency in ms.

java.lang.Integer probesFailed()

Get the number of failed probes.

java.lang.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(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(DateTime startTime)

Set the start time of the connection snapshot.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ConnectionStateSnapshot

public ConnectionStateSnapshot()

Method Details

avgLatencyInMs

public Integer avgLatencyInMs()

Get average latency in ms.

Returns:

the avgLatencyInMs value

connectionState

public ConnectionState connectionState()

Get the connection state. Possible values include: 'Reachable', 'Unreachable', 'Unknown'.

Returns:

the connectionState value

endTime

public DateTime endTime()

Get the end time of the connection snapshot.

Returns:

the endTime value

evaluationState

public EvaluationState evaluationState()

Get connectivity analysis evaluation state. Possible values include: 'NotStarted', 'InProgress', 'Completed'.

Returns:

the evaluationState value

hops

public List hops()

Get list of hops between the source and the destination.

Returns:

the hops value

maxLatencyInMs

public Integer maxLatencyInMs()

Get maximum latency in ms.

Returns:

the maxLatencyInMs value

minLatencyInMs

public Integer minLatencyInMs()

Get minimum latency in ms.

Returns:

the minLatencyInMs value

probesFailed

public Integer probesFailed()

Get the number of failed probes.

Returns:

the probesFailed value

probesSent

public Integer probesSent()

Get the number of sent probes.

Returns:

the probesSent value

startTime

public DateTime startTime()

Get the start time of the connection snapshot.

Returns:

the startTime value

withAvgLatencyInMs

public ConnectionStateSnapshot withAvgLatencyInMs(Integer avgLatencyInMs)

Set average latency in ms.

Parameters:

avgLatencyInMs - the avgLatencyInMs value to set

Returns:

the ConnectionStateSnapshot object itself.

withConnectionState

public ConnectionStateSnapshot withConnectionState(ConnectionState connectionState)

Set the connection state. Possible values include: 'Reachable', 'Unreachable', 'Unknown'.

Parameters:

connectionState - the connectionState value to set

Returns:

the ConnectionStateSnapshot object itself.

withEndTime

public ConnectionStateSnapshot withEndTime(DateTime endTime)

Set the end time of the connection snapshot.

Parameters:

endTime - the endTime value to set

Returns:

the ConnectionStateSnapshot object itself.

withEvaluationState

public ConnectionStateSnapshot withEvaluationState(EvaluationState evaluationState)

Set connectivity analysis evaluation state. Possible values include: 'NotStarted', 'InProgress', 'Completed'.

Parameters:

evaluationState - the evaluationState value to set

Returns:

the ConnectionStateSnapshot object itself.

withMaxLatencyInMs

public ConnectionStateSnapshot withMaxLatencyInMs(Integer maxLatencyInMs)

Set maximum latency in ms.

Parameters:

maxLatencyInMs - the maxLatencyInMs value to set

Returns:

the ConnectionStateSnapshot object itself.

withMinLatencyInMs

public ConnectionStateSnapshot withMinLatencyInMs(Integer minLatencyInMs)

Set minimum latency in ms.

Parameters:

minLatencyInMs - the minLatencyInMs value to set

Returns:

the ConnectionStateSnapshot object itself.

withProbesFailed

public ConnectionStateSnapshot withProbesFailed(Integer probesFailed)

Set the number of failed probes.

Parameters:

probesFailed - the probesFailed value to set

Returns:

the ConnectionStateSnapshot object itself.

withProbesSent

public ConnectionStateSnapshot withProbesSent(Integer probesSent)

Set the number of sent probes.

Parameters:

probesSent - the probesSent value to set

Returns:

the ConnectionStateSnapshot object itself.

withStartTime

public ConnectionStateSnapshot withStartTime(DateTime startTime)

Set the start time of the connection snapshot.

Parameters:

startTime - the startTime value to set

Returns:

the ConnectionStateSnapshot object itself.

Applies to