public class GridOsLicenseProcessor extends GridProcessorAdapter implements GridLicenseProcessor
GridLicenseProcessor.ctx, log| Constructor and Description |
|---|
GridOsLicenseProcessor(GridKernalContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
void |
ackLicense()
Acks the license to the log.
|
void |
checkLicense()
This method is called periodically by the GridGain to check the license
conformance.
|
boolean |
enabled(GridProductEdition ed)
Checks if edition is enabled.
|
long |
gracePeriodLeft() |
GridProductLicense |
license()
Gets license descriptor.
|
void |
updateLicense(String licTxt)
Upload the new license into the current node.
|
addAttributes, assertParameter, collectDiscoveryData, onDiscoveryDataReceived, onKernalStart, onKernalStop, printMemoryStats, start, stop, toString, validateNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttributescollectDiscoveryData, onDiscoveryDataReceived, onKernalStart, onKernalStop, printMemoryStats, start, stop, validateNodepublic GridOsLicenseProcessor(GridKernalContext ctx)
ctx - Kernal context.public void updateLicense(String licTxt) throws GridProductLicenseException
updateLicense in interface GridLicenseProcessorlicTxt - String - The string representation of the license file.GridProductLicenseException - - Throw the exception in the case of failed validation.public void ackLicense()
ackLicense in interface GridLicenseProcessorpublic void checkLicense()
throws GridProductLicenseException
checkLicense in interface GridLicenseProcessorGridProductLicenseException - Thrown in case of any license violation.public boolean enabled(GridProductEdition ed)
enabled in interface GridLicenseProcessored - Edition to check.True if enabled.@Nullable public GridProductLicense license()
license in interface GridLicenseProcessornull for open-source edition.public long gracePeriodLeft()
gracePeriodLeft in interface GridLicenseProcessor-1 otherwise.Copyright © 2014. All rights reserved.