Class HistorianLicense
java.lang.Object
com.inductiveautomation.historian.gateway.license.HistorianLicense
- All Implemented Interfaces:
LicenseStateUpdateListener,EventListener
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(LicenseStateUpdateListener listener) booleancanQuery()booleancanStore()getCurrentLevel(GatewayContext context) Returns whether tag history is available and not demo expired.static HistorianLicensegetOrCreate(GatewayContext context) I prefer this static creation in order to avoid implying the adding of listeners in the constructor.booleanvoidThe LicenseState for the module specified in the LicenseStateChangeEvent has been updated.protected voidvoidremoveListener(LicenseStateUpdateListener listener) voidshutdown()protected voidstartup()
-
Method Details
-
getOrCreate
I prefer this static creation in order to avoid implying the adding of listeners in the constructor. That is, it balances shutdown() -
startup
protected void startup() -
shutdown
public void shutdown() -
addListener
-
removeListener
-
canStore
public boolean canStore() -
canQuery
public boolean canQuery() -
isDemoExpired
public boolean isDemoExpired() -
licenseStateUpdated
Description copied from interface:LicenseStateUpdateListenerThe LicenseState for the module specified in the LicenseStateChangeEvent has been updated. Module id of empty-string represents the license state for the Ignition platform itself.- Specified by:
licenseStateUpdatedin interfaceLicenseStateUpdateListener- Parameters:
e- The LicenseStateUpdateEvent
-
refreshState
protected void refreshState() -
getCurrentLevel
Returns whether tag history is available and not demo expired.
-