Package org.elasticsearch.client.license
Class StartTrialResponse
java.lang.Object
org.elasticsearch.client.license.StartTrialResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StartTrialResponsefromXContent(org.elasticsearch.common.xcontent.XContentParser parser)If the request corresponding to this response did not acknowledge licensing changes that would result from starting a trial license (seeisAcknowledged()), returns a message describing how the user must acknowledge licensing changes as a result of such a request.If the request corresponding to this response did not acknowledge licensing changes that would result from starting a trial license (seeisAcknowledged(), returns a map.If a trial license was not started as a result of the request corresponding to this response (seeisTrialWasStarted()then returns a brief message explaining why the trial could not be started.If a trial license was started as a result of the request corresponding to this response (seeisTrialWasStarted()) then returns the type of license that was started on the cluster.booleanReturns true if the request that corresponds to this response acknowledged license changes that would occur as a result of starting a trial licensebooleanReturns true if a trial license was started as a result of the request corresponding to this response.
-
Constructor Details
-
StartTrialResponse
-
-
Method Details
-
fromXContent
public static StartTrialResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
isAcknowledged
public boolean isAcknowledged()Returns true if the request that corresponds to this response acknowledged license changes that would occur as a result of starting a trial license -
isTrialWasStarted
public boolean isTrialWasStarted()Returns true if a trial license was started as a result of the request corresponding to this response. Returns false if the cluster did not start a trial, or a trial had already been started before the corresponding request was made -
getLicenseType
If a trial license was started as a result of the request corresponding to this response (seeisTrialWasStarted()) then returns the type of license that was started on the cluster. Returns null otherwise -
getErrorMessage
If a trial license was not started as a result of the request corresponding to this response (seeisTrialWasStarted()then returns a brief message explaining why the trial could not be started. Returns false otherwise -
getAcknowledgeHeader
If the request corresponding to this response did not acknowledge licensing changes that would result from starting a trial license (seeisAcknowledged()), returns a message describing how the user must acknowledge licensing changes as a result of such a request. Returns null otherwise -
getAcknowledgeMessages
If the request corresponding to this response did not acknowledge licensing changes that would result from starting a trial license (seeisAcknowledged(), returns a map. The map's keys are names of commercial Elasticsearch features, and their values are messages about how those features will be affected by licensing changes as a result of starting a trial license
-