public class DefaultResultDirHandler extends java.lang.Object implements ResultDirHandlerInterface
| Constructor and Description |
|---|
DefaultResultDirHandler()
Creates a new instance of resultDirHandler
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
createResultDirectory()
Create the result directory.
|
java.lang.String |
getResultDirAbsolute(java.lang.String groupName)
Build the absolute path to the result directory
It uses getResultDirRelative and appends the result to the path defined by
Import.resultDirectory.
|
java.lang.String |
getResultDirRelative(java.lang.String groupName)
Build the relative path to the result directory.
|
void |
init(OdsSession odsSession,
InstanceElement ieTest,
java.lang.String testbedName)
Initialize the ResultDirHandler.
|
boolean |
removeResultDirectory(java.io.File directory)
Delete the result directory and all the files and subtrees.
|
public DefaultResultDirHandler()
public java.lang.String getResultDirRelative(java.lang.String groupName)
getResultDirRelative in interface ResultDirHandlerInterfacegroupName - Name of measurement group. TUsed to group the result files.public java.lang.String getResultDirAbsolute(java.lang.String groupName)
getResultDirAbsolute in interface ResultDirHandlerInterfacegroupName - Name of measurement group. Used to group the result files.public boolean removeResultDirectory(java.io.File directory)
removeResultDirectory in interface ResultDirHandlerInterfacedirectory - Directory to deletepublic boolean createResultDirectory()
createResultDirectory in interface ResultDirHandlerInterfacepublic void init(OdsSession odsSession, InstanceElement ieTest, java.lang.String testbedName)
init in interface ResultDirHandlerInterfaceodsSession - ODS session handleieTest - instance element of testtestbedName - name of testbedpublic void close()
close in interface ResultDirHandlerInterface