-
Notifications
You must be signed in to change notification settings - Fork 0
/
DsaOp.h
48 lines (38 loc) · 970 Bytes
/
DsaOp.h
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
#ifndef __DSA_OP__HH
#define __DSA_OP__HH
#include "DsaController.h"
#include "OpContext.h"
#include <Thread.h>
namespace IrvCS
{
/**
* Perform DSA release/deploy operations in a thread. This is for manual
* commands only. Initial Deploy/Release operation algorithm is a separate
* in InitialDsaDeployOp
**/
class DsaOp:public Thread
{
public:
/**
* Create DsaOp with all necessary info.
* @param dsaId the ID of the DSA
* @param dsaCmd the DSA Cmd - Release or Deploy
* @param controller the DSA Controller
* @param context The response processor to send the response to.
**/
DsaOp(const DsaId dsaId, const DsaCmd dsaCmd,
DsaController &controller, OpContext *context);
virtual ~DsaOp();
/**
* Run the thread
**/
void *run();
private:
DsaId id_;
DsaCmd cmd_;
int timeout_;
DsaController &controller_;
OpContext *context_;
};
}
#endif