public class DataFilePool extends Object
| Constructor and Description |
|---|
DataFilePool(int instanceCountTarget) |
DataFilePool(long timeout)
Create a new data file pool
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
DataFileAccessor |
getAccessor(File file) |
Pair<DataFileAccessor,Boolean> |
getAccessor(File file,
Date start,
Date end,
boolean create)
get access to a file
|
void |
giveBack(org.eclipse.scada.hds.DataFilePool.AccessorWrapper accessor) |
protected org.eclipse.scada.hds.DataFilePool.AccessorWrapper |
wrap(File file,
DataFileAccessor accessor) |
public DataFilePool(int instanceCountTarget)
public DataFilePool(long timeout)
timeout - in millisecondspublic DataFileAccessor getAccessor(File file) throws Exception
Exceptionpublic Pair<DataFileAccessor,Boolean> getAccessor(File file, Date start, Date end, boolean create) throws Exception
If the parameter create is true then start and
end must not be null
file - the file to get access tostart - the start date required for creating the file, can be
null if create is falseend - the end date required for creating the file, can be
null if create is falsecreate - true will create a new file it if the file does
not currently existsException - if anything goes wrongprotected org.eclipse.scada.hds.DataFilePool.AccessorWrapper wrap(File file, DataFileAccessor accessor)
public void giveBack(org.eclipse.scada.hds.DataFilePool.AccessorWrapper accessor)
public void dispose()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.