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 TypeMethodDescriptionvoid
addListener
(LicenseStateUpdateListener listener) boolean
canQuery()
boolean
canStore()
getCurrentLevel
(GatewayContext context) Returns whether tag history is available and not demo expired.static HistorianLicense
getOrCreate
(GatewayContext context) I prefer this static creation in order to avoid implying the adding of listeners in the constructor.boolean
void
The LicenseState for the module specified in the LicenseStateChangeEvent has been updated.protected void
void
removeListener
(LicenseStateUpdateListener listener) void
shutdown()
protected void
startup()
-
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:LicenseStateUpdateListener
The 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:
licenseStateUpdated
in interfaceLicenseStateUpdateListener
- Parameters:
e
- The LicenseStateUpdateEvent
-
refreshState
protected void refreshState() -
getCurrentLevel
Returns whether tag history is available and not demo expired.
-