Class EdgeHistoryLicense
- java.lang.Object
-
- com.inductiveautomation.gateway.tags.history.edge.EdgeHistoryLicense
-
- All Implemented Interfaces:
LicenseStateUpdateListener
,java.util.EventListener
public class EdgeHistoryLicense extends java.lang.Object implements LicenseStateUpdateListener
This will be used to manage licensing for the edge historian.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EdgeHistoryLicense
create(GatewayContext context)
I prefer this static creation in order to avoid implying the adding of listeners in the constructor.boolean
isActive()
static boolean
isActive(GatewayContext context)
Returns whether tag history is available and not demo expired.boolean
isUnlimited()
static boolean
isUnlimited(GatewayContext context)
We allow unlimited local history with any kind of tag historian license installed.void
licenseStateUpdated(LicenseStateUpdateEvent e)
The LicenseState for the module specified in the LicenseStateChangeEvent has been updated.protected void
refreshState()
void
shutdown()
-
-
-
Method Detail
-
create
public static EdgeHistoryLicense create(GatewayContext context)
I prefer this static creation in order to avoid implying the adding of listeners in the constructor. That is, it balances shutdown()
-
shutdown
public void shutdown()
-
isActive
public boolean isActive()
-
isUnlimited
public boolean isUnlimited()
-
licenseStateUpdated
public void licenseStateUpdated(LicenseStateUpdateEvent e)
Description copied from interface:LicenseStateUpdateListener
The LicenseState for the module specified in the LicenseStateChangeEvent has been updated. It may or may not have changed.- Specified by:
licenseStateUpdated
in interfaceLicenseStateUpdateListener
- Parameters:
e
- The LicenseStateUpdateEvent
-
refreshState
protected void refreshState()
-
isActive
public static boolean isActive(GatewayContext context)
Returns whether tag history is available and not demo expired.
-
isUnlimited
public static boolean isUnlimited(GatewayContext context)
We allow unlimited local history with any kind of tag historian license installed.
-
-