public void tearDown(DualLoadUtil util) { Console.WriteLine("Tearing down " + DualLoadConfig.DATAFACTORY_Name); DataFactoryManagementClient client = ADFLoginController.createDataFactoryManagementClient(); client.DataFactories.Delete(DualLoadConfig.RESOURCEGROUP_Name, DualLoadConfig.DATAFACTORY_Name); //util.teardown(client, dualloadconfig.pipeline_init); //util.teardown(client, dualloadconfig.pipeline_loadprocess); //util.teardown(client, dualloadconfig.pipeline_archive); }
static void Main(string[] args) { LoadProcessWorkflow loadProcessWorkflow = new LoadProcessWorkflow(); DualLoadUtil util = new DualLoadUtil(); DataFactoryManagementClient client = ADFLoginController.createDataFactoryManagementClient(); util.setADFMonitor(new ADFOutputMonitor(client)); //util.tearDown(client, DualLoadConfig.PIPELINE_LOADPROCESS); DualLoadDatasets datasets = loadProcessWorkflow.createDatasets(client); util.setDatasets(datasets); loadProcessWorkflow.createPipelines(util, DualLoadConfig.PIPELINE_LOADPROCESS); Console.WriteLine("\nPress any key to exit."); Console.ReadKey(); }
static void Main(string[] args) { ArchiveWorkflow archiveWorkflow = new ArchiveWorkflow(); DualLoadUtil util = new DualLoadUtil(); DataFactoryManagementClient client = ADFLoginController.createDataFactoryManagementClient(); //util.tearDown(client, DualLoadConfig.PIPELINE_ARCHIVE); util.setADFMonitor(new ADFOutputMonitor(client)); DualLoadDatasets datasets = archiveWorkflow.createDatasets(client); util.setDatasets(datasets); archiveWorkflow.initStorageController(); archiveWorkflow.createPipelines(util, DualLoadConfig.PIPELINE_ARCHIVE); Console.WriteLine("\nPress any key to exit."); Console.ReadKey(); }
public void createDataFactory() { // create a data factory Console.WriteLine("Creating a new data factory: " + DualLoadConfig.DATAFACTORY_Name); client = ADFLoginController.createDataFactoryManagementClient(); client.DataFactories.CreateOrUpdate(DualLoadConfig.RESOURCEGROUP_Name, new DataFactoryCreateOrUpdateParameters() { DataFactory = new DataFactory() { Name = DualLoadConfig.DATAFACTORY_Name, Location = "WestUS", Properties = new DataFactoryProperties() { } } } ); }
static void Main(string[] args) { InitWorkflow initWorkflow = new InitWorkflow(); DualLoadUtil util = new DualLoadUtil(); DataFactoryManagementClient client = ADFLoginController.createDataFactoryManagementClient(); //util.tearDown(client, DualLoadConfig.PIPELINE_INIT); util.setADFMonitor(new ADFOutputMonitor(client)); initWorkflow.executeDBQuery_Step1(); initWorkflow.executeStorageQuery_Step2(); DualLoadDatasets datasets = initWorkflow.createDatasets(client); util.setDatasets(datasets); initWorkflow.createPipelines(util, DualLoadConfig.PIPELINE_INIT); Console.WriteLine("\nPress any key to exit."); Console.ReadKey(); }
private void test() { ADFLoginController.createDataFactoryManagementClient(); Console.ReadKey(); }