@@ -42,7 +42,7 @@ bool GlobalDataServer::write(Mercury::Channel* pChannel, COMPONENT_TYPE componen
4242 const std::string& key, const std::string& value)
4343{
4444 // ¹ã²¥Ëù×öµÄ¸Ä±ä
45- broadcastDataChange (pChannel, componentType, key, value);
45+ broadcastDataChanged (pChannel, componentType, key, value);
4646
4747 DATA_MAP_KEY iter = dict_.find (key);
4848 if (iter != dict_.end ()){
@@ -62,15 +62,15 @@ bool GlobalDataServer::del(Mercury::Channel* pChannel, COMPONENT_TYPE componentT
6262 return false ;
6363 }
6464
65- broadcastDataChange (pChannel, componentType, key, " " , true );
65+ broadcastDataChanged (pChannel, componentType, key, " " , true );
6666 return true ;
6767}
6868
6969// -------------------------------------------------------------------------------------
70- void GlobalDataServer::broadcastDataChange (Mercury::Channel* pChannel, COMPONENT_TYPE componentType,
70+ void GlobalDataServer::broadcastDataChanged (Mercury::Channel* pChannel, COMPONENT_TYPE componentType,
7171 const std::string& key, const std::string& value, bool isDelete)
7272{
73- INFO_MSG (boost::format (" GlobalDataServer::broadcastDataChange : writer(%1%, addr=%5%), key_size=%2%, val_size=%3%, isdelete=%4%\n " ) %
73+ INFO_MSG (boost::format (" GlobalDataServer::broadcastDataChanged : writer(%1%, addr=%5%), key_size=%2%, val_size=%3%, isdelete=%4%\n " ) %
7474 COMPONENT_NAME_EX (componentType) % key.size () % value.size () % (int )isDelete % pChannel->c_str ());
7575
7676 std::vector<COMPONENT_TYPE >::iterator iter = concernComponentTypes_.begin ();
@@ -88,7 +88,7 @@ void GlobalDataServer::broadcastDataChange(Mercury::Channel* pChannel, COMPONENT
8888 if (pChannel == lpChannel)
8989 continue ;
9090
91- if (dataType_ == GLOBAL_BASES && iter1->componentType != BASEAPP_TYPE )
91+ if (dataType_ == BASEAPP_DATA && iter1->componentType != BASEAPP_TYPE )
9292 continue ;
9393
9494 if (dataType_ == CELLAPP_DATA && iter1->componentType != CELLAPP_TYPE )
@@ -101,22 +101,22 @@ void GlobalDataServer::broadcastDataChange(Mercury::Channel* pChannel, COMPONENT
101101 case GLOBAL_DATA :
102102 if (iter1->componentType == CELLAPP_TYPE )
103103 {
104- (*pBundle).newMessage (CellappInterface::onBroadcastGlobalDataChange );
104+ (*pBundle).newMessage (CellappInterface::onBroadcastGlobalDataChanged );
105105 }
106106 else if (iter1->componentType == BASEAPP_TYPE )
107107 {
108- (*pBundle).newMessage (BaseappInterface::onBroadcastGlobalDataChange );
108+ (*pBundle).newMessage (BaseappInterface::onBroadcastGlobalDataChanged );
109109 }
110110 else
111111 {
112112 KBE_ASSERT (false && " componentType is error!\n " );
113113 }
114114 break ;
115- case GLOBAL_BASES :
116- (*pBundle).newMessage (BaseappInterface::onBroadcastGlobalBasesChange );
115+ case BASEAPP_DATA :
116+ (*pBundle).newMessage (BaseappInterface::onBroadcastBaseAppDataChanged );
117117 break ;
118118 case CELLAPP_DATA :
119- (*pBundle).newMessage (CellappInterface::onBroadcastCellAppDataChange );
119+ (*pBundle).newMessage (CellappInterface::onBroadcastCellAppDataChanged );
120120 break ;
121121 default :
122122 KBE_ASSERT (false && " dataType is error!\n " );
@@ -157,25 +157,25 @@ void GlobalDataServer::onGlobalDataClientLogon(Mercury::Channel* client, COMPONE
157157 case GLOBAL_DATA :
158158 if (componentType == CELLAPP_TYPE )
159159 {
160- (*pBundle).newMessage (CellappInterface::onBroadcastGlobalDataChange );
160+ (*pBundle).newMessage (CellappInterface::onBroadcastGlobalDataChanged );
161161 }
162162 else if (componentType == BASEAPP_TYPE )
163163 {
164- (*pBundle).newMessage (BaseappInterface::onBroadcastGlobalDataChange );
164+ (*pBundle).newMessage (BaseappInterface::onBroadcastGlobalDataChanged );
165165 }
166166 else
167167 {
168168 KBE_ASSERT (false && " componentType is error!\n " );
169169 }
170170 break ;
171- case GLOBAL_BASES :
171+ case BASEAPP_DATA :
172172 if (componentType != BASEAPP_TYPE )
173173 {
174174 Mercury::Bundle::ObjPool ().reclaimObject (pBundle);
175175 continue ;
176176 }
177177
178- (*pBundle).newMessage (BaseappInterface::onBroadcastGlobalBasesChange );
178+ (*pBundle).newMessage (BaseappInterface::onBroadcastBaseAppDataChanged );
179179 break ;
180180 case CELLAPP_DATA :
181181 if (componentType != CELLAPP_TYPE )
@@ -184,7 +184,7 @@ void GlobalDataServer::onGlobalDataClientLogon(Mercury::Channel* client, COMPONE
184184 continue ;
185185 }
186186
187- (*pBundle).newMessage (CellappInterface::onBroadcastCellAppDataChange );
187+ (*pBundle).newMessage (CellappInterface::onBroadcastCellAppDataChanged );
188188 break ;
189189 default :
190190 KBE_ASSERT (false && " dataType is error!\n " );
0 commit comments