|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.clif.storage.lib.filestorage.FileStorageProxyImpl
public class FileStorageProxyImpl
Proxy part of a file-based storage system.
Field Summary | |
---|---|
protected java.lang.String |
bladeId
|
protected long |
dateOrigin
|
Fields inherited from interface org.ow2.clif.storage.api.StorageWrite |
---|
STORAGE_WRITE |
Fields inherited from interface org.ow2.clif.storage.api.StorageProxyAdmin |
---|
STORAGEPROXY_ADMIN |
Constructor Summary | |
---|---|
FileStorageProxyImpl()
|
Method Summary | |
---|---|
void |
closeCollect(UniqueKey key)
|
void |
closeTest()
Terminates the file storage system by closing every file stream. |
java.io.Serializable |
collect(UniqueKey key)
Performs one collect step forward. |
java.lang.String |
getBladeId()
Get the hostName of this interface |
long |
getCollectSize(UniqueKey key)
|
void |
init(java.lang.String bladeId)
Initializes the storage system |
UniqueKey |
initCollect(java.io.Serializable testId)
Initializes a new collect for a given test |
void |
newTest(java.io.Serializable testId)
Initializes the storage directories for the new test |
void |
write(BladeEvent event)
Writes a blade event in the storage system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String bladeId
protected long dateOrigin
Constructor Detail |
---|
public FileStorageProxyImpl()
Method Detail |
---|
public void write(BladeEvent event) throws ClifException
write
in interface StorageWrite
event
- The event to write
ClifException
- the event couldn't be written to the corresponding file or
the corresponding file could not be opened. This exception is thrown only once for
current test. Then, subsequent calls to write() method are ignored for current test.public void newTest(java.io.Serializable testId) throws ClifException
newTest
in interface StorageProxyAdmin
testId
- test unique identifier
ClifException
public void closeTest()
closeTest
in interface StorageProxyAdmin
public java.lang.String getBladeId()
StorageProxyAdmin
getBladeId
in interface StorageProxyAdmin
public void init(java.lang.String bladeId)
init
in interface StorageProxyAdmin
public UniqueKey initCollect(java.io.Serializable testId)
initCollect
in interface StorageProxyAdmin
testId
- the test identifier whose data must be collected
UniqueKey
public long getCollectSize(UniqueKey key)
getCollectSize
in interface StorageProxyAdmin
public java.io.Serializable collect(UniqueKey key)
StorageProxyAdmin
collect
in interface StorageProxyAdmin
key
- the collect identifier
public void closeCollect(UniqueKey key)
closeCollect
in interface StorageProxyAdmin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |