Class FileStorageCollect
- java.lang.Object
-
- org.ow2.clif.storage.lib.filestorage.FileStorageCollect
-
public class FileStorageCollect extends java.lang.ObjectEach 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
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Map<UniqueKey,FileStorageCollect>active_collectsstatic intBLOCK_SIZEprotected byte[]bufferprotected intfileIndexprotected java.io.File[]filesprotected org.ow2.clif.storage.lib.filestorage.FileStorageCollect.FileServerfileServerprotected UniqueKeykeyprotected static java.util.Stack<FileStorageCollect>old_collectsprotected longsize
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclose(UniqueKey key)static java.io.Serializablecollect(UniqueKey key)static FileStorageCollectgetCollect(UniqueKey key)UniqueKeygetKey()static longgetSize(UniqueKey key)static FileStorageCollectnewCollect(java.io.File dir)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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()
-
-