public class ConnectionMonitorTestConfiguration extends Object
| Constructor and Description |
|---|
ConnectionMonitorTestConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ConnectionMonitorHttpConfiguration |
httpConfiguration()
Get the parameters used to perform test evaluation over HTTP.
|
ConnectionMonitorIcmpConfiguration |
icmpConfiguration()
Get the parameters used to perform test evaluation over ICMP.
|
String |
name()
Get the name of the connection monitor test configuration.
|
PreferredIPVersion |
preferredIPVersion()
Get the preferred IP version to use in test evaluation.
|
ConnectionMonitorTestConfigurationProtocol |
protocol()
Get the protocol to use in test evaluation.
|
ConnectionMonitorSuccessThreshold |
successThreshold()
Get the threshold for declaring a test successful.
|
ConnectionMonitorTcpConfiguration |
tcpConfiguration()
Get the parameters used to perform test evaluation over TCP.
|
Integer |
testFrequencySec()
Get the frequency of test evaluation, in seconds.
|
ConnectionMonitorTestConfiguration |
withHttpConfiguration(ConnectionMonitorHttpConfiguration httpConfiguration)
Set the parameters used to perform test evaluation over HTTP.
|
ConnectionMonitorTestConfiguration |
withIcmpConfiguration(ConnectionMonitorIcmpConfiguration icmpConfiguration)
Set the parameters used to perform test evaluation over ICMP.
|
ConnectionMonitorTestConfiguration |
withName(String name)
Set the name of the connection monitor test configuration.
|
ConnectionMonitorTestConfiguration |
withPreferredIPVersion(PreferredIPVersion preferredIPVersion)
Set the preferred IP version to use in test evaluation.
|
ConnectionMonitorTestConfiguration |
withProtocol(ConnectionMonitorTestConfigurationProtocol protocol)
Set the protocol to use in test evaluation.
|
ConnectionMonitorTestConfiguration |
withSuccessThreshold(ConnectionMonitorSuccessThreshold successThreshold)
Set the threshold for declaring a test successful.
|
ConnectionMonitorTestConfiguration |
withTcpConfiguration(ConnectionMonitorTcpConfiguration tcpConfiguration)
Set the parameters used to perform test evaluation over TCP.
|
ConnectionMonitorTestConfiguration |
withTestFrequencySec(Integer testFrequencySec)
Set the frequency of test evaluation, in seconds.
|
public String name()
public ConnectionMonitorTestConfiguration withName(String name)
name - the name value to setpublic Integer testFrequencySec()
public ConnectionMonitorTestConfiguration withTestFrequencySec(Integer testFrequencySec)
testFrequencySec - the testFrequencySec value to setpublic ConnectionMonitorTestConfigurationProtocol protocol()
public ConnectionMonitorTestConfiguration withProtocol(ConnectionMonitorTestConfigurationProtocol protocol)
protocol - the protocol value to setpublic PreferredIPVersion preferredIPVersion()
public ConnectionMonitorTestConfiguration withPreferredIPVersion(PreferredIPVersion preferredIPVersion)
preferredIPVersion - the preferredIPVersion value to setpublic ConnectionMonitorHttpConfiguration httpConfiguration()
public ConnectionMonitorTestConfiguration withHttpConfiguration(ConnectionMonitorHttpConfiguration httpConfiguration)
httpConfiguration - the httpConfiguration value to setpublic ConnectionMonitorTcpConfiguration tcpConfiguration()
public ConnectionMonitorTestConfiguration withTcpConfiguration(ConnectionMonitorTcpConfiguration tcpConfiguration)
tcpConfiguration - the tcpConfiguration value to setpublic ConnectionMonitorIcmpConfiguration icmpConfiguration()
public ConnectionMonitorTestConfiguration withIcmpConfiguration(ConnectionMonitorIcmpConfiguration icmpConfiguration)
icmpConfiguration - the icmpConfiguration value to setpublic ConnectionMonitorSuccessThreshold successThreshold()
public ConnectionMonitorTestConfiguration withSuccessThreshold(ConnectionMonitorSuccessThreshold successThreshold)
successThreshold - the successThreshold value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/