org.ow2.clif.storage.lib.filestorage
Class FileStorageCollect
java.lang.Object
org.ow2.clif.storage.lib.filestorage.FileStorageCollect
public class FileStorageCollect
- extends java.lang.Object
Each instance of this class represents and manages the collect of test data files located in
a given directory. Each file is transfered by socket, within a dedicated "collect step".
- Author:
- Bruno Dillenseger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLOCK_SIZE
public static final int BLOCK_SIZE
- See Also:
- Constant Field Values
active_collects
protected static java.util.Map<UniqueKey,FileStorageCollect> active_collects
old_collects
protected static java.util.Stack<FileStorageCollect> old_collects
key
protected UniqueKey key
fileIndex
protected int fileIndex
files
protected java.io.File[] files
fileServer
protected org.ow2.clif.storage.lib.filestorage.FileStorageCollect.FileServer fileServer
size
protected long size
buffer
protected byte[] buffer
newCollect
public static FileStorageCollect newCollect(java.io.File dir)
getCollect
public static FileStorageCollect getCollect(UniqueKey key)
collect
public static java.io.Serializable collect(UniqueKey key)
close
public static void close(UniqueKey key)
getSize
public static long getSize(UniqueKey key)
getKey
public UniqueKey getKey()