Esempio n. 1
0
        public void GenerateDefaultChildren(ServerVersion myDbServerVersion, ServerVersion nodeServerVersion)
        {
            // Generate database definitions
            GenerateMyDBDefinition(myDbServerVersion);
            GenerateCodeDBDefinition(nodeServerVersion);

            // Job definitions
            var eji = new ExportTablesJobInstaller(federation);
            eji.Install();

            var emji = new ExportMaintenanceJobInstaller(federation);
            emji.Install();

            var jdi = new SqlQueryJobInstaller(federation);
            jdi.Install();

            federation.Save();
        }
Esempio n. 2
0
        public void GenerateDefaultChildren(ServerVersion myDbServerVersion)
        {
            // MyDB database definition

            DatabaseDefinition mydbdd = new DatabaseDefinition(federation)
            {
                Name = Constants.MyDbName,
                System = federation.System,
                LayoutType = DatabaseLayoutType.Monolithic,
                DatabaseInstanceNamePattern = Constants.MyDbInstanceNamePattern,
                DatabaseNamePattern = Constants.MyDbNamePattern,
                SliceCount = 1,
                PartitionCount = 1,
            };
            mydbdd.Save();

            var mydbddi = new DatabaseDefinitionInstaller(mydbdd);
            mydbddi.GenerateDefaultChildren(myDbServerVersion, Constants.MyDbName);

            mydbdd.LoadDatabaseVersions(true);
            federation.MyDBDatabaseVersion = mydbdd.DatabaseVersions[Constants.MyDbName];

            // Job definitions
            var jd = new JobDefinition(federation)
            {
                Name = typeof(Jobs.ExportTable.ExportTableJob).Name,
                System = federation.System,
                WorkflowTypeName = typeof(Jobs.ExportTable.ExportTableJob).AssemblyQualifiedName,
            };
            jd.Save();

            jd = new JobDefinition(federation)
            {
                Name = typeof(Jobs.ExportTable.ExportMaintenanceJob).Name,
                System = federation.System,
                WorkflowTypeName = typeof(Jobs.ExportTable.ExportMaintenanceJob).AssemblyQualifiedName,
            };
            jd.Save();

            var jdi = new SqlQueryJobInstaller(federation);
            jdi.Install();

            federation.Save();
        }
Esempio n. 3
0
        public void GenerateDefaultChildren(ServerVersion myDbServerVersion, ServerVersion nodeServerVersion)
        {
            // Generate database definitions
            GenerateMyDBDefinition(myDbServerVersion);
            GenerateCodeDBDefinition(nodeServerVersion);

            // Job definitions
            var eji = new ExportTablesJobInstaller(federation);

            eji.Install();

            var emji = new ExportMaintenanceJobInstaller(federation);

            emji.Install();

            var jdi = new SqlQueryJobInstaller(federation);

            jdi.Install();

            federation.Save();
        }