Package org.elasticsearch.test
Class TransportVersionUtils
java.lang.Object
org.elasticsearch.test.TransportVersionUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransportVersion
static TransportVersion
getPreviousVersion
(TransportVersion version) static TransportVersion
randomCompatibleVersion
(Random random, TransportVersion version) Returns a randomVersion
from all available versions, that is compatible with the given version.static TransportVersion
randomPreviousCompatibleVersion
(Random random, TransportVersion version) static TransportVersion
Returns a randomTransportVersion
from all available versions.static TransportVersion
randomVersion
(Random random) Returns a randomVersion
from all available versions.static TransportVersion
randomVersion
(Set<TransportVersion> ignore) Returns a randomTransportVersion
from all available versions without the ignore setstatic TransportVersion
randomVersionBetween
(Random random, TransportVersion minVersion, TransportVersion maxVersion)
-
Constructor Details
-
TransportVersionUtils
public TransportVersionUtils()
-
-
Method Details
-
randomVersion
Returns a randomTransportVersion
from all available versions. -
randomVersion
Returns a randomTransportVersion
from all available versions without the ignore set -
randomVersion
Returns a randomVersion
from all available versions. -
randomVersionBetween
public static TransportVersion randomVersionBetween(Random random, @Nullable TransportVersion minVersion, @Nullable TransportVersion maxVersion) -
getPreviousVersion
-
getPreviousVersion
-
randomCompatibleVersion
Returns a randomVersion
from all available versions, that is compatible with the given version. -
randomPreviousCompatibleVersion
public static TransportVersion randomPreviousCompatibleVersion(Random random, TransportVersion version)
-