Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蚂蚁寻路
zoompipeline
提交
f77f5e14
zoompipeline
项目概览
蚂蚁寻路
/
zoompipeline
与 Fork 源项目一致
Fork自
colorEagleStdio / zoompipeline
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
zoompipeline
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f77f5e14
编写于
4月 27, 2014
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some problems happened.
上级
84c7fe4f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
5 deletion
+6
-5
ZoomPipeline_FuncSvr/cluster/zp_clusternode.cpp
ZoomPipeline_FuncSvr/cluster/zp_clusternode.cpp
+2
-1
ZoomPipeline_FuncSvr/cluster/zp_clusterterm.cpp
ZoomPipeline_FuncSvr/cluster/zp_clusterterm.cpp
+1
-1
ZoomPipeline_FuncSvr/cluster/zp_clusterterm.h
ZoomPipeline_FuncSvr/cluster/zp_clusterterm.h
+3
-3
未找到文件。
ZoomPipeline_FuncSvr/cluster/zp_clusternode.cpp
浏览文件 @
f77f5e14
...
...
@@ -176,7 +176,8 @@ namespace ZP_Cluster{
{
QDateTime
dtm
=
QDateTime
::
currentDateTime
();
qint64
usc
=
this
->
m_last_Report
.
secsTo
(
dtm
);
int
nThredHold
=
m_pTerm
->
heartBeatingThrd
();
int
nThredHold
=
12
;
nThredHold
=
m_pTerm
->
heartBeatingThrdHold
();
if
(
usc
>=
nThredHold
)
{
emit
evt_Message
(
this
,
tr
(
"Client "
)
+
QString
(
"%1"
).
arg
((
unsigned
int
)((
quint64
)
this
))
+
tr
(
" is dead, kick out."
));
...
...
ZoomPipeline_FuncSvr/cluster/zp_clusterterm.cpp
浏览文件 @
f77f5e14
...
...
@@ -16,7 +16,7 @@ namespace ZP_Cluster{
connect
(
m_pClusterNet
,
&
ZPNetwork
::
zp_net_ThreadPool
::
evt_NewClientConnected
,
this
,
&
zp_ClusterTerm
::
on_evt_NewClientConnected
);
//connect(m_pClusterNet,&ZPNetwork::zp_net_ThreadPool::evt_ClientEncrypted, this,&zp_ClusterTerm::on_evt_ClientEncrypted);
m_nPortPublish
=
0
;
m_nHeartBeating
DeadThrd
=
20
;
m_nHeartBeating
Time
=
20
;
}
void
zp_ClusterTerm
::
StartListen
(
const
QHostAddress
&
addr
,
int
nPort
)
...
...
ZoomPipeline_FuncSvr/cluster/zp_clusterterm.h
浏览文件 @
f77f5e14
...
...
@@ -31,15 +31,15 @@ namespace ZP_Cluster{
int
publishPort
(){
return
m_nPortPublish
;}
QHostAddress
setPublishAddr
(
QHostAddress
addr
){
return
m_addrPublish
=
addr
;}
int
setPublishPort
(
int
port
){
return
m_nPortPublish
=
port
;}
int
heartBeatingThrd
()
{
return
m_nHeartBeatingDeadThrd
;}
void
setHeartBeatingThrd
(
const
int
n
){
m_nHeartBeating
DeadThrd
=
n
;}
int
heartBeatingThrd
Hold
()
{
return
m_nHeartBeatingTime
;}
void
setHeartBeatingThrd
(
const
int
n
){
m_nHeartBeating
Time
=
n
;}
protected:
QString
m_strTermName
;
//the Terminal's name
QHostAddress
m_addrPublish
;
//The publish address for other terms to connect to
int
m_nPortPublish
;
//The publish port for other terms to connect to
ZPNetwork
::
zp_net_ThreadPool
*
m_pClusterNet
;
ZPTaskEngine
::
zp_pipeline
*
m_pClusterEng
;
int
m_nHeartBeating
DeadThrd
;
int
m_nHeartBeating
Time
;
//Server Group Mapping
protected:
//This list hold dead nodes that still in task queue,avoiding crash
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录