2019-07-27 22:44:32 +08:00
|
|
|
|
#pragma once
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
|
|
class master_service : public acl::master_trigger
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
master_service();
|
|
|
|
|
~master_service();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
/**
|
2019-07-27 22:44:32 +08:00
|
|
|
|
* 当触发器时间到时调用此函数
|
2014-11-19 00:25:21 +08:00
|
|
|
|
*/
|
|
|
|
|
virtual void on_trigger();
|
|
|
|
|
|
|
|
|
|
/**
|
2019-07-27 22:44:32 +08:00
|
|
|
|
* 当进程切换用户身份后调用的回调函数,此函数被调用时,进程
|
|
|
|
|
* 的权限为普通受限级别
|
2014-11-19 00:25:21 +08:00
|
|
|
|
*/
|
|
|
|
|
virtual void proc_on_init();
|
|
|
|
|
|
|
|
|
|
/**
|
2019-07-27 22:44:32 +08:00
|
|
|
|
* 当进程退出前调用的回调函数
|
2014-11-19 00:25:21 +08:00
|
|
|
|
*/
|
|
|
|
|
virtual void proc_on_exit();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
std::vector<acl::string> url_list_;
|
|
|
|
|
};
|