Class MonthlyParitionManager
- java.lang.Object
-
- com.inductiveautomation.gateway.tags.history.partitions.BasicDatasourcePartitionManager
-
- com.inductiveautomation.gateway.tags.history.partitions.AbstractDirectorPartitionManager
-
- com.inductiveautomation.gateway.tags.history.partitions.MonthlyParitionManager
-
- All Implemented Interfaces:
PartitionManager
public class MonthlyParitionManager extends AbstractDirectorPartitionManager
-
-
Constructor Summary
Constructors Constructor Description MonthlyParitionManager(GatewayContext context, java.lang.String datasource, int driverId)
-
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 boolean
isValid(Partition partition)
The monthly manager expects the partition to be the appropriate name for the current block.-
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
-
MonthlyParitionManager
public MonthlyParitionManager(GatewayContext context, java.lang.String datasource, int driverId)
-
-
Method Detail
-
isValid
protected boolean isValid(Partition partition)
The monthly manager expects the partition to be the appropriate name for the current block.- 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
-
-