summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/instance.h
diff options
context:
space:
mode:
Diffstat (limited to 'server-tools/instance-manager/instance.h')
-rw-r--r--server-tools/instance-manager/instance.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/server-tools/instance-manager/instance.h b/server-tools/instance-manager/instance.h
index 6733985116a..78b7768c121 100644
--- a/server-tools/instance-manager/instance.h
+++ b/server-tools/instance-manager/instance.h
@@ -25,14 +25,14 @@
#pragma interface
#endif
+class Instance_map;
+
class Instance
{
public:
- Instance(): is_connected(FALSE)
- {}
~Instance();
-
int init(const char *name);
+ int complete_initialization(Instance_map *instance_map_arg);
/* check if the instance is running and set up mysql connection if yes */
bool is_running();
@@ -44,7 +44,7 @@ public:
Instance_options options;
/* connection to the instance */
- MYSQL mysql;
+ pid_t pid;
private:
/*
@@ -53,8 +53,7 @@ private:
and we issue the start command once more.
*/
pthread_mutex_t LOCK_instance;
- /* Here we store the state of the following connection */
- bool is_connected;
+ Instance_map *instance_map;
};
#endif /* INCLUDES_MYSQL_INSTANCE_MANAGER_INSTANCE_H */