Class HistorianLicense

java.lang.Object
com.inductiveautomation.historian.gateway.license.HistorianLicense
All Implemented Interfaces:
LicenseStateUpdateListener, EventListener

public class HistorianLicense extends Object implements LicenseStateUpdateListener
  • Method Details

    • getOrCreate

      public static HistorianLicense getOrCreate(GatewayContext context)
      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

      public void addListener(LicenseStateUpdateListener listener)
    • removeListener

      public void removeListener(LicenseStateUpdateListener listener)
    • canStore

      public boolean canStore()
    • canQuery

      public boolean canQuery()
    • isDemoExpired

      public boolean isDemoExpired()
    • licenseStateUpdated

      public void licenseStateUpdated(LicenseStateUpdateEvent e)
      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 interface LicenseStateUpdateListener
      Parameters:
      e - The LicenseStateUpdateEvent
    • refreshState

      protected void refreshState()
    • getCurrentLevel

      public static HistorianLicense.LicenseLevel getCurrentLevel(GatewayContext context)
      Returns whether tag history is available and not demo expired.