BusBoy  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExternalEntry.h
Go to the documentation of this file.
1 
17 #ifndef __BUSBOY_EXTERNAL_ENTRY_H__
18 #define __BUSBOY_EXTERNAL_ENTRY_H__
19 
20 #include "ExternalAlgorithmData.h"
21 #include "ExternalContext.h"
22 #include "ExternalDataset.h"
23 
24 namespace BUSBOY {
25 
27 
28  public :
29  ExternalEntry();
30 
31  void dumpDataset(ExternalDataset* dataset);
32 
34 
36 
37  ExternalAlgorithm* getAlgorithm(const char* algoName);
38 
39  bool executeAlgorithm(const char* algoName, ExternalAlgorithmData* extData, ExternalContext* context);
40 
41  void pushEnvironmentProperties(const char* setName, const char* serializedProps);
42 
46  void testLogging(ExternalContext* extContext, const char* level, const char* msg);
47 
51  void testProgressReporting(ExternalContext* extContext, float percentDone, const char* msg);
52 
56  void testFailureReporting(ExternalContext* extContext, const char* msg);
57 
61  void testSendMessage(ExternalContext* extContext, const Message& msg);
62 
66  void testAddDataFile(ExternalDataset* extDataset, ExternalDataFile* extFile, bool stream);
67 
71  const char* testGetDataFileName(ExternalDataset* extDataset, const char* serializedKey);
72 
76  ExternalDataFile* testFindDataFile(ExternalDataset* extDataset, const char* serializedKey);
77 
81  bool testIsQueryOnly(ExternalDataset* extDataset);
82 
87  ExternalDataFile* testReadFileAsRandomAccess(ExternalDataset* extDataset, const char* serializedKey);
88 
93 
97  void deleteLocalTempFiles();
98 
102  const char** getLogFilePaths();
103 
104  ~ExternalEntry();
105 
106  private :
107 
108  // prevent calling these
109  ExternalEntry(const ExternalEntry& entry);
110  ExternalEntry& operator=(const ExternalEntry& entry);
111 
112 };
113 
114 }
115 #endif
116 

Copyright 2014 Google Inc. All rights reserved.