Class FixedSpanPartitionManager
- java.lang.Object
-
- com.inductiveautomation.gateway.tags.history.partitions.BasicDatasourcePartitionManager
-
- com.inductiveautomation.gateway.tags.history.partitions.AbstractDirectorPartitionManager
-
- com.inductiveautomation.gateway.tags.history.partitions.FixedSpanPartitionManager
-
- All Implemented Interfaces:
PartitionManager
- Direct Known Subclasses:
NoPartitionManager
public class FixedSpanPartitionManager extends AbstractDirectorPartitionManager
Partition Management
-
-
Constructor Summary
Constructors Constructor Description FixedSpanPartitionManager(GatewayContext context, java.lang.String datasource, int driverId)
FixedSpanPartitionManager(GatewayContext context, java.lang.String datasource, int driverId, long partitionWidth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Partition
createNewPartition(long startTime, long window)
Instantiate a new partition object.protected java.lang.String
getNameFor(Partition p)
protected boolean
isValid(Partition partition)
For the fixed span manager, the partition is valid if the name is what we think it should be, based on start time.-
Methods inherited from class com.inductiveautomation.gateway.tags.history.partitions.AbstractDirectorPartitionManager
createPartitionTable, getNextPartition, getPartition, queryOrCreatePartition
-
Methods inherited from class com.inductiveautomation.gateway.tags.history.partitions.BasicDatasourcePartitionManager
deleteOldPartitions, getDatasource, getDriverId, getLogger, getMostRecentPartitions, getOlderPartitions, getPartitions, getQueryCache, initialize, loadPartitionFromDS, loadPartitionsFromDS, partitionExists, runPartitionQuery, shutdown
-
-
-
-
Constructor Detail
-
FixedSpanPartitionManager
public FixedSpanPartitionManager(GatewayContext context, java.lang.String datasource, int driverId, long partitionWidth)
-
FixedSpanPartitionManager
public FixedSpanPartitionManager(GatewayContext context, java.lang.String datasource, int driverId)
-
-
Method Detail
-
getNameFor
protected java.lang.String getNameFor(Partition p)
-
isValid
protected boolean isValid(Partition partition)
For the fixed span manager, the partition is valid if the name is what we think it should be, based on start time.- Specified by:
isValid
in classAbstractDirectorPartitionManager
-
createNewPartition
protected Partition createNewPartition(long startTime, long window)
Description copied from class:AbstractDirectorPartitionManager
Instantiate a new partition object. Doesn't do any actual work, just defines the partition (name, span, resolution).- Specified by:
createNewPartition
in classAbstractDirectorPartitionManager
-
-