50 #ifndef PrefecthManager_H_
51 #define PrefecthManager_H_
55 #include "IPrefetchManager.h"
57 #include "system/compat/SystemCompat.h"
58 using namespace ::br::pucrio::telemidia::ginga::core::system::compat;
61 #include "ic/IInteractiveChannelManager.h"
62 using namespace ::br::pucrio::telemidia::ginga::core::ic;
75 class PrefetchManager :
public IPrefetchManager,
76 public IInteractiveChannelListener {
82 map<string, string>* localToRemoteUris;
83 map<string, string>* urisToLocalRoots;
84 set<string>* scheduledRemoteUris;
85 set<string>* scheduledLocalUris;
87 IInteractiveChannelManager* icm;
106 void createDirectory(
string newDir);
110 void releaseContents();
111 string createDocumentPrefetcher(
string remoteDocUri);
112 string createSourcePrefetcher(
string localDocUri,
string srcUri);
114 bool hasRemoteLocation(
string localUri);
115 string getRemoteLocation(
string localUri);
116 string getLocalRoot(
string remoteUri);
119 void getContent(
string remoteUri,
string localUri);
122 void setSynchPrefetch(
bool synch);
125 void scheduleContent(
string remoteUri,
string localUri);
126 void receiveCode(
long respCode){};
127 void receiveDataStream(
char* buffer,
int size){};
128 void receiveDataPipe(FILE* fd,
int size);
129 void downloadCompleted(
const char* localUri){};
132 void getScheduledContent(
string clientUri);
133 void getScheduledContents();
Definition: IPrefetchManager.h:62
Definition: PrefetchManager.h:78