Class SearchGuardLicense
- java.lang.Object
-
- com.floragunn.searchguard.configuration.SearchGuardLicense
-
- All Implemented Interfaces:
org.elasticsearch.common.io.stream.Writeable
public final class SearchGuardLicense extends Object implements org.elasticsearch.common.io.stream.Writeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchGuardLicense.Featurestatic classSearchGuardLicense.Type
-
Constructor Summary
Constructors Constructor Description SearchGuardLicense(String uid, SearchGuardLicense.Type type, SearchGuardLicense.Feature[] features, String issueDate, String expiryDate, String issuedTo, String issuer, String startDate, Integer majorVersion, String clusterName, int allowedNodeCount, org.elasticsearch.cluster.service.ClusterService clusterService)SearchGuardLicense(Map<String,Object> map, org.elasticsearch.cluster.service.ClusterService clusterService)SearchGuardLicense(org.elasticsearch.common.io.stream.StreamInput in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchGuardLicensecreateTrialLicense(String issueDate, org.elasticsearch.cluster.service.ClusterService clusterService, String msg)StringgetAction()intgetAllowedNodeCount()StringgetClusterName()longgetExpiresInDays()StringgetExpiryDate()SearchGuardLicense.Feature[]getFeatures()StringgetIssueDate()StringgetIssuedTo()StringgetIssuer()IntegergetMajorVersion()List<String>getMsgs()StringgetProdUsage()StringgetStartDate()SearchGuardLicense.TypegetType()StringgetUid()booleanhasFeature(SearchGuardLicense.Feature feature)booleanisExpired()booleanisValid()StringtoString()voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)
-
-
-
Constructor Detail
-
SearchGuardLicense
public SearchGuardLicense(org.elasticsearch.common.io.stream.StreamInput in) throws IOException- Throws:
IOException
-
SearchGuardLicense
public SearchGuardLicense(Map<String,Object> map, org.elasticsearch.cluster.service.ClusterService clusterService)
-
SearchGuardLicense
public SearchGuardLicense(String uid, SearchGuardLicense.Type type, SearchGuardLicense.Feature[] features, String issueDate, String expiryDate, String issuedTo, String issuer, String startDate, Integer majorVersion, String clusterName, int allowedNodeCount, org.elasticsearch.cluster.service.ClusterService clusterService)
-
-
Method Detail
-
createTrialLicense
public static SearchGuardLicense createTrialLicense(String issueDate, org.elasticsearch.cluster.service.ClusterService clusterService, String msg)
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Throws:
IOException
-
getUid
public String getUid()
-
getType
public SearchGuardLicense.Type getType()
-
getIssueDate
public String getIssueDate()
-
getExpiryDate
public String getExpiryDate()
-
getIssuedTo
public String getIssuedTo()
-
getIssuer
public String getIssuer()
-
getStartDate
public String getStartDate()
-
getMajorVersion
public Integer getMajorVersion()
-
getClusterName
public String getClusterName()
-
getExpiresInDays
public long getExpiresInDays()
-
isExpired
public boolean isExpired()
-
isValid
public boolean isValid()
-
getAction
public String getAction()
-
getProdUsage
public String getProdUsage()
-
getAllowedNodeCount
public int getAllowedNodeCount()
-
getFeatures
public SearchGuardLicense.Feature[] getFeatures()
-
hasFeature
public boolean hasFeature(SearchGuardLicense.Feature feature)
-
-