org.ow2.clif.storage.lib.filestorage
Class FileStorageCollect

java.lang.Object
  extended by 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

Field Summary
protected static java.util.Map<UniqueKey,FileStorageCollect> active_collects
           
static int BLOCK_SIZE
           
protected  byte[] buffer
           
protected  int fileIndex
           
protected  java.io.File[] files
           
protected  org.ow2.clif.storage.lib.filestorage.FileStorageCollect.FileServer fileServer
           
protected  UniqueKey key
           
protected static java.util.Stack<FileStorageCollect> old_collects
           
protected  long size
           
 
Method Summary
static void close(UniqueKey key)
           
static java.io.Serializable collect(UniqueKey key)
           
static FileStorageCollect getCollect(UniqueKey key)
           
 UniqueKey getKey()
           
static long getSize(UniqueKey key)
           
static FileStorageCollect newCollect(java.io.File dir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()