-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHandler.h
40 lines (35 loc) · 969 Bytes
/
Handler.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
/*************************************************************************
> File Name: Handler.h
> Author: Weidong, ZHANG
> Mail: [email protected]
> Created Time: Sun 30 Nov 2014 10:32:14 AM PST
************************************************************************/
#ifndef HANDLER_H
#define HANDLER_H
#include <iostream>
#include <map>
#include "ThreadPool.h"
#include "Cluster.h"
#include "LocalFileSystem.h"
namespace pdfs{
class Handler : public WorkerThread
{
public:
int id;
int sock_fd;
unsigned virtual executeThis()
{
return 0;
}
Handler(int id, int sfd)
: WorkerThread(id), id(id), sock_fd(sfd)
{
//cout << "Creating Handler" << id << "\t address=" << this << endl;
}
~Handler()
{
//cout << "Deleting Handler" << id << "\t address=" << this << endl;
}
}; // end class Handler
} // end namespace
#endif