//Конструкторы
 public ReglamentMetaObject(MetaObjectRepository repository)
     : base(repository)
 {
     this.TypeName = ReglamentMetaObject.Type;
     elementList   = new MetaObjectApp.Attribute(this, _ant_attrList);
     attributes.Add(elementList);
 }
 //Конструктор
 public DataSourceEvents(MetaObjectRepository repository)
     : base(repository)
 {
     this.TypeName = DataSourceEvents.Type;
     elementList   = new MetaObjectApp.Attribute(this, _ant_attrList);
     attributes.Add(elementList);
 }
Exemple #3
0
        //Конструкторы
        public DataSourceEvent(MetaObjectRepository repository)
            : base(repository)
        {
            this.TypeName = DataSourceEvent.Type;
            eventType     = new MetaObjectApp.Attribute(this, _ant_attrEventType);
            dataSourceId  = new MetaObjectApp.Attribute(this, _ant_attrDataSourceId);

            attributes.Add(eventType);
            attributes.Add(dataSourceId);
        }
Exemple #4
0
        //Конструкторы
        public Dimension(MetaObjectRepository repository)
            : base(repository)
        {
            this.TypeName = Dimension.Type;

            name  = new MetaObjectApp.Attribute(this, _ant_attrName);
            table = new MetaObjectApp.Attribute(this, _ant_attrTable);

            attributes.Add(name);
            attributes.Add(table);
        }
Exemple #5
0
        //Конструктор
        public ETL(MetaObjectRepository repository)
            : base(repository)
        {
            this.TypeName = ETL.Type;

            assemblyPath = new MetaObjectApp.Attribute(this, _ant_attrAssemblyPath);
            assemblyArgs = new MetaObjectApp.Attribute(this, _ant_attrAssemblyArgs);

            attributes.Add(assemblyPath);
            attributes.Add(assemblyArgs);
        }
Exemple #6
0
        DatasourceMonitorManager _datasourceMonitorManager; //монитор источников

        //Конструкторы
        public EventManager(MetaObjectRepository repository)
        {
            _repository = repository;
            _eventQueue = new EventQueue();
            _datasourceMonitorManager = new DatasourceMonitorManager(_repository);
            _datasourceMonitorManager.LoadPlugins();
            _datasourceMonitorManager.DS_Changed +=
                (ev) =>
            {
                this._eventQueue.Add(ev);
            };
        }
Exemple #7
0
        static void Main(string[] args)
        {
            repository = new MetaObjectRepository(connectionString);

            initFactories(repository);
            test();
            init();

            ETLManager.ETLManager etlManager = new ETLManager.ETLManager(repository);
            etlManager.Start();

            Console.ReadKey();
        }
Exemple #8
0
        //Конструкторы
        public Cube(MetaObjectRepository repository)
            : base(repository)
        {
            this.TypeName = Cube.Type;

            cubeName                    = new MetaObjectApp.Attribute(this, _ant_attrCubeName);
            dimensionsList              = new MetaObjectApp.Attribute(this, _ant_attrDimensionsList);
            списокПоказателей           = new MetaObjectApp.Attribute(this, _ant_attrСписокПоказателей);
            способыАгрегацииНаИзмерения = new MetaObjectApp.Attribute(this, _ant_attrСпособыАгрегацииНаИзмерения);

            attributes.Add(cubeName);
            attributes.Add(dimensionsList);
            attributes.Add(списокПоказателей);
            attributes.Add(способыАгрегацииНаИзмерения);
        }
Exemple #9
0
 /// <summary>
 /// Инициализация фабрик
 /// </summary>
 /// <param name="repository"></param>
 static void initFactories(MetaObjectRepository repository)
 {
     repository.AddFactory(new MetaObjectFactory(repository));
     repository.AddFactory(new DataSourceFactory(repository));
     repository.AddFactory(new ReglamentMetaObjectFactory(repository));
     repository.AddFactory(new ReglamentElementMetaObjectFactory(repository));
     repository.AddFactory(new TestMetaObjectFactory(repository));
     repository.AddFactory(new CubeFactory(repository));
     repository.AddFactory(new CubesFactory(repository));
     repository.AddFactory(new DataSourceEventFactory(repository));
     repository.AddFactory(new DataSourceEventsFactory(repository));
     repository.AddFactory(new DimensionFactory(repository));
     repository.AddFactory(new ETLFactory(repository));
     repository.AddFactory(new ETLsFactory(repository));
 }
        //Конструкторы
        public ReglamentElementMetaObject(MetaObjectRepository repository)
            : base(repository)
        {
            this.TypeName = ReglamentElementMetaObject.Type;

            enabled      = new MetaObjectApp.Attribute(this, _ant_attrEnabled);
            dataSourceId = new MetaObjectApp.Attribute(this, _ant_attrDataSourceLink);
            lastRunTime  = new MetaObjectApp.Attribute(this, _ant_attrLastRunTime);
            period       = new MetaObjectApp.Attribute(this, _ant_attrPeriod);
            nextRunTime  = new MetaObjectApp.Attribute(this, _ant_attrNextRunTime);
            type         = new MetaObjectApp.Attribute(this, _ant_type);

            attributes.Add(enabled);
            attributes.Add(dataSourceId);
            attributes.Add(lastRunTime);
            attributes.Add(period);
            attributes.Add(nextRunTime);
            attributes.Add(type);
        }
Exemple #11
0
        public TestMetaObject(MetaObjectRepository repository)
            : base(repository)
        {
            this.TypeName = TestMetaObject.Type;

            _attrString = new MetaObjectApp.Attribute(this, _ant_attrString);
            _attrBigint = new MetaObjectApp.Attribute(this, _ant_attrBigint);
            _attrDouble = new MetaObjectApp.Attribute(this, _ant_attrDouble);
            _attrList   = new MetaObjectApp.Attribute(this, _ant_attrList);
            _attrId     = new MetaObjectApp.Attribute(this, _ant_attrId);
            _attrBinary = new MetaObjectApp.Attribute(this, _ant_attrBinary);

            attributes.Add(attrString);
            attributes.Add(attrBigint);
            attributes.Add(attrDouble);
            attributes.Add(attrList);
            attributes.Add(attrId);
            attributes.Add(attrBinary);
        }
Exemple #12
0
        static void Main(string[] args)
        {
            string connectionString = "";

            Console.WriteLine("Говорит сборка етл");
            foreach (string s in args)
            {
                connectionString += s + " ";
            }
            repository = new MetaObjectRepository(connectionString);

            Console.WriteLine("Началась загрузка файла. {0}", DateTime.Now);
            Download();
            Console.WriteLine("Загрузка файла завершена. {0}", DateTime.Now);
            Console.WriteLine("Чтение файла.");
            ReadFile();
            DeleteFile();
            Console.WriteLine("Файл удален.");
            Console.ReadKey();
        }
 public ReglamentMetaObjectFactory(MetaObjectRepository repository)
     : base(repository)
 {
 }
 public DimensionFactory(MetaObjectRepository repository)
     :base(repository)
 {
 }
 public DataSourceEventFactory(MetaObjectRepository repository)
     : base(repository)
 {
 }
Exemple #16
0
 public CubeFactory(MetaObjectRepository repository)
     : base(repository)
 {
 }
Exemple #17
0
 //Конструкторы
 public ReglamentReader(MetaObjectRepository repository)
 {
     _repository = repository;
 }
Exemple #18
0
        public event DS_ChangedHandler DS_Changed;      //событие об изменении в источнике

        //Конструкторы
        public DatasourceMonitorManager(MetaObjectRepository repository)
        {
            this._repository = repository;
            PluginsDirPath   = "Plugins";
            monitorList      = new List <IDatasourceMonitor>();
        }
Exemple #19
0
 public TestMetaObjectFactory(MetaObjectRepository repository)
     : base(repository)
 {
 }
Exemple #20
0
 public ETLFactory(MetaObjectRepository repository)
     : base(repository)
 {
 }
Exemple #21
0
 public ETLManager(MetaObjectRepository repository)
 {
     _repository = repository;
     Init();
 }
Exemple #22
0
 //Конструкторы
 public EventGenerator(MetaObjectRepository repository)
 {
     _repository = repository;
 }
Exemple #23
0
        //Свойства

        //Конструкторы
        public ReglamentManager(MetaObjectRepository repository)
        {
            _repository = repository;
            Init();
        }