Пример #1
0
 public MongoDBVolume(TrendingSystemService director) : base(director)
 {
     foreach (var tEntity in TrendingHost.AllEntities)
     {
         m_DBUpdates.Register(new DBUpdate(tEntity, TrendingHost.GetDimensionNamesForEntity(tEntity)));
     }
 }
Пример #2
0
        private void btnServerStart_Click(object sender, EventArgs e)
        {
            m_Server = new TrendingSystemService(null);

            var cfg = @"
service
{
  name=TrendingSvc
  type='Agni.Social.Trending.Server.TrendingSystemService, Agni.Social'

  trending-host
  {
    type='WinFormsTest.Social.TestTrendingHost, WinFormsTest'
  }

  volume
  {
    name=Fractional
    type='Agni.MongoDB.Social.Trending.MongoDBVolume, Agni.MongoDB.Social'
    mongo='mongo{server=""localhost:27017"" db=Trending_F}'

    detalization-level=Fractional
  }
  volume
  {
    name=Hourly
    type='Agni.MongoDB.Social.Trending.MongoDBVolume, Agni.MongoDB.Social'
    mongo='mongo{server=""localhost:27017"" db=Trending_H}'

    detalization-level=Hourly
  }
}".AsLaconicConfig(handling: ConvertErrorHandling.Throw);

            m_Server.Configure(cfg);
            m_Server.Start();

            m_Client = new TrendingSystemClient("async://localhost:{0}".Args(App.ConfigRoot.Navigate("/gv/services/$async-trending").Value));
        }
Пример #3
0
 protected TestTrendingHost(TrendingSystemService director, IConfigSectionNode config) : base(director, config)
 {
     ConfigAttribute.Apply(this, config);
 }