Package org.elasticsearch.test
Class TransportVersionUtils
java.lang.Object
org.elasticsearch.test.TransportVersionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NavigableSet<TransportVersion> Returns all released versionsstatic TransportVersiongetNextVersion(TransportVersion version) static TransportVersiongetNextVersion(TransportVersion version, boolean createIfNecessary) static TransportVersiongetPreviousVersion(TransportVersion version) static TransportVersiongetPreviousVersion(TransportVersion version, boolean createIfNecessary) static TransportVersionReturns a randomTransportVersionthat is compatible withTransportVersion.current()static TransportVersionrandomCompatibleVersion(boolean includePatches) Returns a randomTransportVersionthat is compatible withTransportVersion.current()static TransportVersionReturns a randomTransportVersionfrom all available versions.static TransportVersionrandomVersion(Set<TransportVersion> ignore) Returns a randomTransportVersionfrom all available versions without the ignore setstatic TransportVersionReturns a randomTransportVersionwhich does not supports the given version.static TransportVersionrandomVersionSupporting(TransportVersion minVersion) Returns a randomTransportVersionwhich supports the given version.
-
Constructor Details
-
TransportVersionUtils
public TransportVersionUtils()
-
-
Method Details
-
allReleasedVersions
Returns all released versions -
randomVersion
Returns a randomTransportVersionfrom all available versions. -
randomVersion
Returns a randomTransportVersionfrom all available versions without the ignore set -
randomVersionSupporting
Returns a randomTransportVersionwhich supports the given version. Effectively, this returns a version equal to, or "later" than the given version. -
randomVersionNotSupporting
Returns a randomTransportVersionwhich does not supports the given version. Effectively, this returns a version "before" the given version. -
getPreviousVersion
-
getPreviousVersion
public static TransportVersion getPreviousVersion(TransportVersion version, boolean createIfNecessary) -
getNextVersion
-
getNextVersion
-
randomCompatibleVersion
Returns a randomTransportVersionthat is compatible withTransportVersion.current() -
randomCompatibleVersion
Returns a randomTransportVersionthat is compatible withTransportVersion.current()
-