2 /////////////////////////////////////////////////////////////////
3 // WARNING : this is a generated file, don't change it !
4 /////////////////////////////////////////////////////////////////
6 require_once('nel_message.php');
8 class CAdminServiceWeb
extends CCallbackClient
11 function globalCmd($command)
14 $msg->setName("GCMD");
17 $msg->serialString($command);
19 return parent
::sendMessage($msg);
24 function controlCmd($serviceAlias, $command)
27 $msg->setName("CCMD");
30 $msg->serialString($serviceAlias);
31 $msg->serialString($command);
33 return parent
::sendMessage($msg);
38 function serviceCmd($serviceAlias, $command)
41 $msg->setName("SCMD");
44 $msg->serialString($serviceAlias);
45 $msg->serialString($command);
47 return parent
::sendMessage($msg);
52 function getShardOrders()
60 $ret = parent
::sendMessage($msg);
64 $this->invokeError("getShardOrders", "Error in 'sendMessage'");
68 $retMsg = parent
::waitMessage();
72 $this->invokeError("getShardOrders", "Error in 'waitMessage'");
75 if (!($retMsg->MsgName
=== "R_GSO"))
78 $this->invokeError("getShardOrders", "Invalid response, awaited 'R_GSO', received '".$retMsg->MsgName
."'");
82 // serial the return value
84 $retMsg->serialUInt32($nbElem);
86 for ($i=0; $i<$nbElem;$i++
)
88 $retMsg->serialString($item);
93 // return the return value
107 $ret = parent
::sendMessage($msg);
111 $this->invokeError("getStates", "Error in 'sendMessage'");
115 $retMsg = parent
::waitMessage();
119 $this->invokeError("getStates", "Error in 'waitMessage'");
122 if (!($retMsg->MsgName
=== "R_GS"))
125 $this->invokeError("getStates", "Invalid response, awaited 'R_GS', received '".$retMsg->MsgName
."'");
129 // serial the return value
131 $retMsg->serialUInt32($nbElem);
133 for ($i=0; $i<$nbElem;$i++
)
135 $retMsg->serialString($item);
140 // return the return value
146 function getHighRezGraph($varAddr, $startDate, $endDate, $milliStep)
149 $msg->setName("GHRG");
152 $msg->serialString($varAddr);
153 $msg->serialUint32($startDate);
154 $msg->serialUint32($endDate);
155 $msg->serialUint32($milliStep);
158 $ret = parent
::sendMessage($msg);
162 $this->invokeError("getHighRezGraph", "Error in 'sendMessage'");
166 $retMsg = parent
::waitMessage();
170 $this->invokeError("getHighRezGraph", "Error in 'waitMessage'");
173 if (!($retMsg->MsgName
=== "R_GHRG"))
176 $this->invokeError("getHighRezGraph", "Invalid response, awaited 'R_GHRG', received '".$retMsg->MsgName
."'");
180 // serial the return value
182 $retMsg->serialUInt32($nbElem);
184 for ($i=0; $i<$nbElem;$i++
)
186 $retMsg->serialString($item);
191 // return the return value
198 function waitCallback()
200 $message = parent
::waitMessage();
202 if ($message == false)
205 switch($message->MsgName
)
208 $this->commandResult_skel($message);
218 function commandResult_skel(&$message)
220 $message->serialString($serviceAlias);
221 $message->serialString($result);
223 $this->commandResult($serviceAlias, $result);
227 /////////////////////////////////////////////////////////////////
228 // Copy paste this part of code in your derived class
229 // and implement code to ract to incoming message
230 /////////////////////////////////////////////////////////////////
232 function commandResult($serviceAlias, $result)