Ejemplo n.º 1
0
        private static void ApplyIndex(EndecaApplication app)
        {
            var cluster = new DgraphCluster(app);

            Logger.Info("Applying index ...");
            cluster.ApplyIndex(PauseBetweenUpdates);

            RollLogServerLog(app);
        }
Ejemplo n.º 2
0
        private static void TestIndex(DgraphCluster cluster)
        {
            Logger.Info("Testing index ...");
            var indexOk = cluster.ApplyIndex(new[] { IndexTestHostId });

            if (!indexOk)
            {
                throw new ControlScriptException(
                          String.Format("Index test failed on {0}. At least one Dgraph instance failed to start.",
                                        IndexTestHostId));
            }
        }