mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
This is an implementation of two WL items:
- WL#3158: IM: Instance configuration extensions; - WL#3159: IM: --bootstrap and --start-default-instance modes The following new statements have been added: - CREATE INSTANCE; - DROP INSTANCE; The behaviour of the following statements have been changed: - SET; - UNSET; - FLUSH INSTANCES; - SHOW INSTANCES; - SHOW INSTANCE OPTIONS;
This commit is contained in:
@ -22,10 +22,12 @@
|
||||
#pragma interface
|
||||
#endif
|
||||
|
||||
/* Class responsible for allocation of im commands. */
|
||||
/* Class responsible for allocation of IM commands. */
|
||||
|
||||
class Instance_map;
|
||||
|
||||
struct st_net;
|
||||
|
||||
/*
|
||||
Command - entry point for any command.
|
||||
GangOf4: 'Command' design pattern
|
||||
@ -37,8 +39,18 @@ public:
|
||||
Command(Instance_map *instance_map_arg= 0);
|
||||
virtual ~Command();
|
||||
|
||||
/* method of executing: */
|
||||
virtual int execute(struct st_net *net, ulong connection_id) = 0;
|
||||
/*
|
||||
This operation incapsulates behaviour of the command.
|
||||
|
||||
SYNOPSYS
|
||||
net The network connection to the client.
|
||||
connection_id Client connection ID
|
||||
|
||||
RETURN
|
||||
0 On success
|
||||
non 0 On error. Client error code is returned.
|
||||
*/
|
||||
virtual int execute(st_net *net, ulong connection_id) = 0;
|
||||
|
||||
protected:
|
||||
Instance_map *instance_map;
|
||||
|
Reference in New Issue
Block a user