public class DataStoreAccesor extends AbstractValueSource
Constructor and Description |
---|
DataStoreAccesor(File basePath,
DataFilePool pool) |
Modifier and Type | Method and Description |
---|---|
static DataStoreAccesor |
create(File basePath,
long time,
TimeUnit unit,
int count,
DataFilePool pool) |
void |
dispose() |
int |
getCount()
Get the number of slices configured
|
long |
getTimeSlice()
Get the time slice in milliseconds
|
protected void |
giveBack(org.eclipse.scada.hds.DataStoreAccesor.AccessorWrapper wrapper) |
void |
insertHeartbeat(Date date)
Insert a marker that the data input mechanism was alive at the provided
time
|
void |
insertValue(double value,
Date date,
boolean error,
boolean manual) |
protected void |
insertValue(double value,
Date date,
boolean error,
boolean manual,
boolean heartbeat) |
void |
purge()
Delete data files that are out of range
|
protected void |
take(org.eclipse.scada.hds.DataStoreAccesor.AccessorWrapper wrapper) |
boolean |
visit(ValueVisitor visitor,
Date start,
Date end)
Visit values
|
addListener, notifyChange, removeListener
public DataStoreAccesor(File basePath, DataFilePool pool) throws Exception
Exception
public int getCount()
public long getTimeSlice()
protected void take(org.eclipse.scada.hds.DataStoreAccesor.AccessorWrapper wrapper)
protected void giveBack(org.eclipse.scada.hds.DataStoreAccesor.AccessorWrapper wrapper)
protected void insertValue(double value, Date date, boolean error, boolean manual, boolean heartbeat) throws Exception
Exception
public void insertValue(double value, Date date, boolean error, boolean manual) throws Exception
Exception
public void insertHeartbeat(Date date) throws Exception
date
- the date of the markerException
- thrown if anything goes wrongpublic boolean visit(ValueVisitor visitor, Date start, Date end)
visitor
- the visitorstart
- the start rangeend
- the end rangetrue
if more should be read, false
otherwisepublic void purge()
public static DataStoreAccesor create(File basePath, long time, TimeUnit unit, int count, DataFilePool pool) throws Exception
Exception
public void dispose()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.