From dfa8ff99dc5d723c3cd199656bc6e1634838ef06 Mon Sep 17 00:00:00 2001 From: cytopia Date: Mon, 8 May 2017 09:43:43 +0200 Subject: [PATCH] REL-0.9 Check if container are running --- .devilbox/www/htdocs/db_memcd.php | 35 ++++++++------ .devilbox/www/htdocs/db_mysql.php | 56 +++++++++++----------- .devilbox/www/htdocs/db_pgsql.php | 72 +++++++++++++++-------------- .devilbox/www/htdocs/db_redis.php | 35 ++++++++------ .devilbox/www/htdocs/info_memcd.php | 39 +++++++++------- .devilbox/www/htdocs/info_mysql.php | 45 ++++++++++-------- .devilbox/www/htdocs/info_pgsql.php | 33 +++++++------ .devilbox/www/htdocs/info_redis.php | 33 +++++++------ .devilbox/www/include/lib/_Base.php | 3 ++ 9 files changed, 196 insertions(+), 155 deletions(-) diff --git a/.devilbox/www/htdocs/db_memcd.php b/.devilbox/www/htdocs/db_memcd.php index a911ab3b..4339cdbc 100644 --- a/.devilbox/www/htdocs/db_memcd.php +++ b/.devilbox/www/htdocs/db_memcd.php @@ -1,4 +1,5 @@ + @@ -17,22 +18,26 @@
- - - - - - - - - getKeys() as $data): ?> + +

Memcahed container is not running.

+ +
KeyValue
+ - - - - - -
+ Key + Value + + + + getKeys() as $data): ?> + + + + + + + +
diff --git a/.devilbox/www/htdocs/db_mysql.php b/.devilbox/www/htdocs/db_mysql.php index 9d38640b..1e4ce727 100644 --- a/.devilbox/www/htdocs/db_mysql.php +++ b/.devilbox/www/htdocs/db_mysql.php @@ -18,33 +18,37 @@
- - - - - - - - - - - - - getDatabases() as $name => $keys): ?> + +

MySQL container is not running.

+ +
NameCharsetCollationTablesSize
+ - - - - - - - - - -
+ Name + Charset + Collation + Tables + Size + + + + + getDatabases() as $name => $keys): ?> + + + + + + + + + + + +
diff --git a/.devilbox/www/htdocs/db_pgsql.php b/.devilbox/www/htdocs/db_pgsql.php index b8947477..e4b445e1 100644 --- a/.devilbox/www/htdocs/db_pgsql.php +++ b/.devilbox/www/htdocs/db_pgsql.php @@ -18,43 +18,47 @@
- - - - - - - - - - - - - getDatabases() as $name => $database): ?> - - - - - - - $data): ?> - - + +

PgSQL container is not running.

+ +
NameCharsetCollationTablesSize
- -
+ + + + + + + + + + + + getDatabases() as $name => $database): ?> + + + + - - - - + $data): ?> + + + + + + + + - - -
NameCharsetCollationTablesSize
+ +
+ + + +
diff --git a/.devilbox/www/htdocs/db_redis.php b/.devilbox/www/htdocs/db_redis.php index 98e5b7a2..0817b59a 100644 --- a/.devilbox/www/htdocs/db_redis.php +++ b/.devilbox/www/htdocs/db_redis.php @@ -1,4 +1,5 @@ + @@ -17,22 +18,26 @@
- - - - - - - - - getKeys() as $key => $value): ?> + +

Redis container is not running.

+ +
KeyValue
+ - - - - - -
+ Key + Value + + + + getKeys() as $key => $value): ?> + + + + + + + +
diff --git a/.devilbox/www/htdocs/info_memcd.php b/.devilbox/www/htdocs/info_memcd.php index 646fc0ac..8eaf7db3 100644 --- a/.devilbox/www/htdocs/info_memcd.php +++ b/.devilbox/www/htdocs/info_memcd.php @@ -1,4 +1,5 @@ + @@ -17,25 +18,29 @@
- getInfo() as $srv => $data): ?> -

- - - - - - - - - $val): ?> + +

Memcahed container is not running.

+ + getInfo() as $srv => $data): ?> +

+
VariableValue
+ - - + + - - -
VariableValue
- + + + $val): ?> + + + + + + + + +
diff --git a/.devilbox/www/htdocs/info_mysql.php b/.devilbox/www/htdocs/info_mysql.php index 71b48e12..c7fc4b91 100644 --- a/.devilbox/www/htdocs/info_mysql.php +++ b/.devilbox/www/htdocs/info_mysql.php @@ -1,4 +1,5 @@ + @@ -17,29 +18,33 @@
diff --git a/.devilbox/www/htdocs/info_pgsql.php b/.devilbox/www/htdocs/info_pgsql.php index 92481c99..e59d4acf 100644 --- a/.devilbox/www/htdocs/info_pgsql.php +++ b/.devilbox/www/htdocs/info_pgsql.php @@ -1,4 +1,5 @@ + @@ -17,22 +18,26 @@
- - - - - - - - - getConfig() as $key => $val): ?> + +

PgSQL container is not running.

+ +
VariableValue
+ - - + + - - -
VariableValue
+ + + getConfig() as $key => $val): ?> + + + + + + + +
diff --git a/.devilbox/www/htdocs/info_redis.php b/.devilbox/www/htdocs/info_redis.php index d46751d1..82f4e1bb 100644 --- a/.devilbox/www/htdocs/info_redis.php +++ b/.devilbox/www/htdocs/info_redis.php @@ -1,4 +1,5 @@ + @@ -17,22 +18,26 @@
- - - - - - - - - getInfo() as $key => $val): ?> + +

Redis container is not running.

+ +
VariableValue
+ - - + + - - -
VariableValue
+ + + getInfo() as $key => $val): ?> + + + + + + + +
diff --git a/.devilbox/www/include/lib/_Base.php b/.devilbox/www/include/lib/_Base.php index dd098a0e..b0d66227 100644 --- a/.devilbox/www/include/lib/_Base.php +++ b/.devilbox/www/include/lib/_Base.php @@ -12,6 +12,9 @@ class _Base * *********************************************************************************/ + + /** TODO: isAvailable (make instance) */ + private static $_available = array(); private static $_hostname = array();