public class DataFilePool
extends java.lang.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(java.io.File file) |
|
getAccessor(java.io.File file,
java.util.Date start,
java.util.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(java.io.File file,
DataFileAccessor accessor) |
public DataFilePool(int instanceCountTarget)
public DataFilePool(long timeout)
timeout - in millisecondspublic DataFileAccessor getAccessor(java.io.File file) throws java.lang.Exception
java.lang.ExceptionpublicgetAccessor(java.io.File file, java.util.Date start, java.util.Date end, boolean create) throws java.lang.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 existsjava.lang.Exception - if anything goes wrongprotected org.eclipse.scada.hds.DataFilePool.AccessorWrapper wrap(java.io.File file,
DataFileAccessor accessor)
public void giveBack(org.eclipse.scada.hds.DataFilePool.AccessorWrapper accessor)
public void dispose()
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0