RequestResetOp.cpp
1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include "RequestResetOp.h"
namespace TREPS
{
namespace RequestManager
{
RequestResetOpClass::RequestResetOpClass(void):RequestAbstractClass()
{
this->outputType = OUTPUT_NONE;
}
string RequestResetOpClass::getRequestId(void)
{
return "reset_op";
}
bool RequestResetOpClass::load(RequestLoaderClass *loader)
{
//init the request and lock working dir
if (!this->initOpId(loader,true))
{
LOG4CXX_INFO(this->app->getLog()->getPtr(),"Cannot load op Id");
return false;
}
return true;
}
bool RequestResetOpClass::run(void)
{
LOG4CXX_INFO(this->app->getLog()->getPtr(),"Run request " << this->getRequestId());
//delete working directory
if (this->dirMgr->removeWorkingDirFromId(this->opId.c_str()))
this->opId = "";
return (this->opId.compare("") == 0);
}
void RequestResetOpClass::writeResult(ResultWriterClass *writer)
{
//No result file for this request
}
string RequestResetOpClass::getResultFileSuffix(void)
{
return "";
}
string RequestResetOpClass::getXMLFilePath(void)
{
return "";
}
string RequestResetOpClass::getStringResult(void)
{
return "";
}
}
}