ClientInterface.hpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:2k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /* Copyright (C) 2003 MySQL AB
  2.    This program is free software; you can redistribute it and/or modify
  3.    it under the terms of the GNU General Public License as published by
  4.    the Free Software Foundation; either version 2 of the License, or
  5.    (at your option) any later version.
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9.    GNU General Public License for more details.
  10.    You should have received a copy of the GNU General Public License
  11.    along with this program; if not, write to the Free Software
  12.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  13. #ifndef CLIENT_IF_HPP
  14. #define CLIENT_IF_HPP
  15. #include <ndb_global.h>
  16. #include <Parser.hpp>
  17. #include <InputStream.hpp>
  18. #include <Parser.hpp>
  19. #include <NdbOut.hpp>
  20. #include <Properties.hpp>
  21. #include "SocketRegistry.hpp"
  22. #include "SocketService.hpp"
  23. class ClientInterface {
  24. private:
  25.   SocketService * ss;
  26.   SocketRegistry<SocketService> * sr;
  27.   
  28. public:
  29.   ClientInterface(Uint32 maxNoOfCPC);
  30.   ~ClientInterface();
  31.   void startProcess(const char * remotehost, char * id);
  32.   void stopProcess(const char * remotehost, char * id);
  33.   void defineProcess(const char * remotehost,  char * name, char * group, 
  34.      char * env, char * path, char * args, char * type,
  35.      char * cwd, char * owner);
  36.   void undefineProcess(const char * remotehost, char * id);
  37.   void listProcesses(const char * remotehost);
  38.   void showProcess(const char * remotehost, char * id);
  39.   void connectCPCDdaemon(const char * remotehost, Uint16 port);
  40.   void disconnectCPCDdaemon(const char * remotehost);
  41.   void removeCPCDdaemon(const char * remotehost);
  42.   
  43. };
  44. #endif