|
@@ -129,13 +129,13 @@ Error_manager Dispatch_manager::execute_rabbitmq_message_new(Rabbitmq_message* p
|
|
|
{
|
|
|
m_count_flag = true;
|
|
|
m_count_command_signal_msg = *p_msg;
|
|
|
- std::cout << " huli test :::: " << " m_count_command_signal_msg = " << m_count_command_signal_msg.m_message_buf << std::endl;
|
|
|
+// std::cout << " huli test :::: " << " m_count_command_signal_msg = " << m_count_command_signal_msg.m_message_buf << std::endl;
|
|
|
}
|
|
|
else if ( p_msg->m_routing_key.find("post_command") != p_msg->m_routing_key.npos )
|
|
|
{
|
|
|
m_post_flag = true;
|
|
|
m_post_command_msg = *p_msg;
|
|
|
- std::cout << " huli test :::: " << " m_post_command_msg = " << m_post_command_msg.m_message_buf << std::endl;
|
|
|
+// std::cout << " huli test :::: " << " m_post_command_msg = " << m_post_command_msg.m_message_buf << std::endl;
|
|
|
}
|
|
|
else if ( p_msg->m_routing_key == "measure_1_statu_port" ||
|
|
|
p_msg->m_routing_key == "measure_3_statu_port" ||
|
|
@@ -170,7 +170,7 @@ Error_manager Dispatch_manager::execute_rabbitmq_message_new(Rabbitmq_message* p
|
|
|
|
|
|
// if ( p_msg->m_routing_key == "in_mcpu_1_statu_port" )
|
|
|
// {
|
|
|
-// std::cout << " huli test :::: " << " bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbffffffffffffffffff = " << p_msg->m_message_buf << std::endl;
|
|
|
+// std::cout << " huli test :::: " << " bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbffffffffffffffffff in_mcpu_1_statu_port= " << p_msg->m_message_buf << std::endl;
|
|
|
// }
|
|
|
|
|
|
m_in_mcpu_statu_msg_1 = *p_msg;
|
|
@@ -187,7 +187,7 @@ Error_manager Dispatch_manager::execute_rabbitmq_message_new(Rabbitmq_message* p
|
|
|
|
|
|
// if ( p_msg->m_routing_key == "in_mcpu_2_statu_port" )
|
|
|
// {
|
|
|
-// std::cout << " huli test :::: " << " bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbffffffffffffffffff = " << p_msg->m_message_buf << std::endl;
|
|
|
+// std::cout << " huli test :::: " << " bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbffffffffffffffffff in_mcpu_2_statu_port= " << p_msg->m_message_buf << std::endl;
|
|
|
// }
|
|
|
|
|
|
m_in_mcpu_statu_msg_2 = *p_msg;
|
|
@@ -200,10 +200,10 @@ Error_manager Dispatch_manager::execute_rabbitmq_message_new(Rabbitmq_message* p
|
|
|
p_msg->m_routing_key == "out_mcpu_3_statu_port" ||
|
|
|
p_msg->m_routing_key == "out_mcpu_5_statu_port" )
|
|
|
{
|
|
|
- if ( p_msg->m_routing_key == "out_mcpu_1_statu_port" )
|
|
|
- {
|
|
|
- std::cout << " huli test :::: " << " vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv out_mcpu_1_statu_port= " << p_msg->m_message_buf << std::endl;
|
|
|
- }
|
|
|
+// if ( p_msg->m_routing_key == "out_mcpu_1_statu_port" )
|
|
|
+// {
|
|
|
+// std::cout << " huli test :::: " << " vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv out_mcpu_1_statu_port= " << p_msg->m_message_buf << std::endl;
|
|
|
+// }
|
|
|
// std::cout << " huli test :::: " << " vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv = " << p_msg->m_message_buf << std::endl;
|
|
|
|
|
|
m_out_mcpu_statu_msg_1 = *p_msg;
|
|
@@ -216,10 +216,10 @@ Error_manager Dispatch_manager::execute_rabbitmq_message_new(Rabbitmq_message* p
|
|
|
p_msg->m_routing_key == "out_mcpu_4_statu_port" ||
|
|
|
p_msg->m_routing_key == "out_mcpu_6_statu_port" )
|
|
|
{
|
|
|
- if ( p_msg->m_routing_key == "out_mcpu_2_statu_port" )
|
|
|
- {
|
|
|
- std::cout << " huli test :::: " << " bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb out_mcpu_2_statu_port= " << p_msg->m_message_buf << std::endl;
|
|
|
- }
|
|
|
+// if ( p_msg->m_routing_key == "out_mcpu_2_statu_port" )
|
|
|
+// {
|
|
|
+// std::cout << " huli test :::: " << " bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb out_mcpu_2_statu_port= " << p_msg->m_message_buf << std::endl;
|
|
|
+// }
|
|
|
// std::cout << " huli test :::: " << " bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb = " << p_msg->m_message_buf << std::endl;
|
|
|
m_out_mcpu_statu_msg_2 = *p_msg;
|
|
|
if(google::protobuf::TextFormat::ParseFromString(m_out_mcpu_statu_msg_2.m_message_buf, &m_out_mcpu_statu_2))
|
|
@@ -592,14 +592,15 @@ Error_manager Dispatch_manager::encapsulate_send_dispatch_manager_status_new()
|
|
|
t_dispatch_node_statu_msg.set_statu(eIdle);
|
|
|
// t_dispatch_node_statu_msg.set_statu(eBusy);
|
|
|
}
|
|
|
- else if ( m_dispatch_manager_status >= E_DISPATCH_MANAGER_COUNT_NEW &&
|
|
|
- m_dispatch_manager_status >= E_DISPATCH_MANAGER_COMPLETED_NEW)
|
|
|
+ else if ( m_dispatch_manager_status == E_DISPATCH_MANAGER_UNKNOW ||
|
|
|
+ m_dispatch_manager_status == E_DISPATCH_MANAGER_DISCONNECT ||
|
|
|
+ m_dispatch_manager_status == E_DISPATCH_MANAGER_FAULT )
|
|
|
{
|
|
|
- t_dispatch_node_statu_msg.set_statu(eBusy);
|
|
|
+ t_dispatch_node_statu_msg.set_statu(eFault);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- t_dispatch_node_statu_msg.set_statu(eFault);
|
|
|
+ t_dispatch_node_statu_msg.set_statu(eBusy);
|
|
|
}
|
|
|
|
|
|
t_dispatch_node_statu_msg.set_idle_stop_floor(m_device_floor);
|