Esempio n. 1
0
        //control counters
        #endregion

        #region Methods

        public static void Connect(ETLHeader header)
        {
            System.Diagnostics.Debug.Assert(header != null);

            ETLController.controllerserver   = header.Controller.Server;
            ETLController.controllerdatabase = header.Controller.Database;
            ETLController.nodeserver         = (header.Node == null)?header.Controller.Server:header.Node.Server;
            ETLController.nodedatabase       = (header.Node == null)?header.Controller.Database:header.Node.Database;
            ETLController.timeout            = header.Controller.QueryTimeout;
            ControllerHeader h = new ControllerHeader
            {
                BatchID   = header.BatchID
                , StepID  = header.StepID
                , RunID   = header.RunID
                , Options = header.Options
            };

            ETLController.Header       = h;
            ETLController.conversation = header.Conversation;

            prepare_connection();
            prepare_print(ETLController.print);
            prepare_counterset(ETLController.counterset);
            LogMessage("Controller: starting conversation with handle:" + ETLController.conversation.ToString(), DERun.Debug);
        }
Esempio n. 2
0
        public static string build(ETLHeader input)
        {
            ControllerHeader header = new ControllerHeader();

            header.BatchID = input.BatchID;
            header.StepID  = input.StepID;
            header.RunID   = input.RunID;
            header.Options = input.Options;
            return(build(header));
        }
Esempio n. 3
0
        public static string build(ETLHeader input, string msg, int err)
        {
            ControllerHeader  header  = new ControllerHeader();
            ControllerMessage message = new ControllerMessage();

            header.BatchID  = input.BatchID;
            header.StepID   = input.StepID;
            header.RunID    = input.RunID;
            header.Options  = input.Options;
            message.Message = msg;
            message.Error   = err;
            return(build(header, message));
        }