Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="DBTag"></param>
        /// <returns></returns>
        public static string GetDatabase(String DBTag)
        {
            SystemManager.SelectObjectTag = DBTag;
            BsonDocument cr = new BsonDocument();

            cr = SystemManager.GetCurrentDataBase().GetStats().Response.ToBsonDocument();
            return(MongoDBHelper.ConvertBsonTozTreeJson("DataBase Status", cr, true));
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="DBTag"></param>
        /// <returns></returns>
        public static string GetConnection(String DBTag)
        {
            SystemManager.SelectObjectTag = DBTag;
            BsonDocument cr = new BsonDocument();

            cr = MongoDBHelper.ExecuteMongoSvrCommand(MongoDBHelper.serverStatus_Command, SystemManager.GetCurrentServer()).Response;
            return(MongoDBHelper.ConvertBsonTozTreeJson("Connection Status", cr, true));
        }