Ejemplo n.º 1
0
 public async Task QuitOperator()
 {
     sw.Flush();
     fs.Close();
     IKeywordSearchOperator nextOperator = base.GrainFactory.GetGrain <IKeywordSearchOperator>(this.GetPrimaryKeyLong());
     await nextOperator.QuitOperator();
 }
Ejemplo n.º 2
0
        public override Task OnActivateAsync()
        {
            string path = "Filter_" + this.GetPrimaryKeyLong().ToString();

            fs           = new FileStream(path, FileMode.Create);
            sw           = new StreamWriter(fs);
            nextOperator = base.GrainFactory.GetGrain <IKeywordSearchOperator>(this.GetPrimaryKeyLong());
            return(base.OnActivateAsync());
        }
Ejemplo n.º 3
0
        public async Task ResumeOperator()
        {
            pause = false;

            if (pausedRows.Count > 0)
            {
                foreach (Tuple row in pausedRows)
                {
                    await SubmitTuples(row);
                }

                pausedRows.Clear();
            }

            IKeywordSearchOperator nextOperator = base.GrainFactory.GetGrain <IKeywordSearchOperator>(this.GetPrimaryKeyLong());
            await nextOperator.ResumeOperator();
        }
Ejemplo n.º 4
0
 public async Task PauseOperator()
 {
     pause = true;
     IKeywordSearchOperator nextOperator = base.GrainFactory.GetGrain <IKeywordSearchOperator>(this.GetPrimaryKeyLong());
     await nextOperator.PauseOperator();
 }