java.lang.Object
org.elasticsearch.license.internal.TrialLicenseVersion
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
Sometimes we release a version with a bunch of cool new features, and we want people to be able to start a new trial license in a cluster
that's already used a trial and let it expire. This class controls when we do that. The serialization of this class is designed to
maintain compatibility with old-school Elasticsearch versions (specifically the
Version class).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanstatic TrialLicenseVersionfromXContent(String from) inthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
CURRENT
-
-
Constructor Details
-
TrialLicenseVersion
public TrialLicenseVersion(int trialVersion) -
TrialLicenseVersion
- Throws:
IOException
-
-
Method Details
-
fromXContent
-
ableToStartNewTrial
public boolean ableToStartNewTrial() -
toString
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-