DefaultDataCollectionCallback.cs 820 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Aitex.Common.Util;
  6. namespace Aitex.Core.RT.DataCollection
  7. {
  8. public class DefaultDataCollectionCallback : IDataCollectionCallback
  9. {
  10. private string _db = "postgres";
  11. public DefaultDataCollectionCallback( )
  12. {
  13. }
  14. public DefaultDataCollectionCallback(string db)
  15. {
  16. _db = db;
  17. }
  18. public void PostDBFailedEvent()
  19. {
  20. }
  21. public string GetSqlUpdateFile()
  22. {
  23. return PathManager.GetCfgDir() + "SqlUpdate.sql";
  24. }
  25. public string GetDataTablePrefix()
  26. {
  27. return "Data";
  28. }
  29. public string GetDBName()
  30. {
  31. return _db;
  32. }
  33. }
  34. }