Distributes fomModule files from initiating federate to RtiExec and then from RtiExec to all joining federates.
More...
Public Member Functions |
| | DtAsyncFileDistributorRunnable (DtFedExec *parent) |
| | Fedex Constructor.
|
| virtual | ~DtAsyncFileDistributorRunnable () |
| | Destructor.
|
virtual std::auto_ptr
< DtDistributorThreadEvent > | getNextEvent () |
| virtual void | postCommand (std::auto_ptr< DtFedExecDistribFunctor > cmd) |
| virtual void | setOnExitHandler (const DtDistributorThreadEvent &fn) |
| virtual void | registerUploadFedFileToExecEvent (const DtDistribFunctor &fn) |
| virtual void | registerFedFileRequestsEvent (const DtDistribFunctor &fn) |
| virtual void | registerRequestedModulesArrivedEvent (const DtDistribFunctor &fn) |
| virtual void | registerTakeFileEvent (const DtDistribFunctor &fn) |
| virtual void | registerPushFedFileToFederatesEvent (const DtDistribFunctor &fn) |
| virtual void | registerPushFedFileToSingleFederateEvent (const DtDistribFunctor &fn) |
| virtual void | run () |
| | Thread Functions.
|
| virtual void | requestFedFileUploadToExec (const unsigned long initiatingFedID, const std::vector< DtString > *modules) |
| virtual bool | sendFedFile (const std::vector< DtString > &modules, DtFederateHandle recipient) |
| virtual void | fedFileUploaded (const DtString fileUploaded) |
| | Called when Fom Module received successfully.
|
| void | processTakeFileCmd (std::map< DtString, DtFileInformation * >) |
| void | processPushFedFileToAllFederates (DtString name, int size, const char *buff, unsigned long destination) |
| void | processFileRequested (const DtFomModuleRequestMsg &cmd) |
| void | processFileReceived (const DtFomModuleDistributionMsg &cmd) |
| bool | requestsPending () const |
| | Are there outstanding requests to be handled?
|
| virtual bool | sendFedFile (const std::vector< MAKRti::DtString > &modules) |
| | Override sendFedFile upload fed files passed in.
|
| virtual bool | pushFedFile (DtConnectionMgr *connMgr, const MAKRti::DtString &fileName, const unsigned int fileSize, const char *fileBuffer, const DtFederateHandle destination=0) |
| | pushFedFile
|
| virtual void | fedFileUploaded (const MAKRti::DtString fileUploaded) |
| | Called when Fom Module received successfully.
|
| virtual bool | fileReceived (const DtFomModuleDistributionMsg &msg, bool &areAllHere) |
| virtual bool | fileRequested (const DtFomModuleRequestMsg &msg) |
| virtual void | removeFile (const MAKRti::DtString fileName) |
| | Remove all knowledge of this file from myFiles.
|
| virtual void | removeFiles (const std::vector< MAKRti::DtString > &modules) |
| | Remove all knowledge of these file from myFiles.
|
| virtual bool | fedFileReady (const MAKRti::DtString &fileName) const |
| | Does the distributor have a valid copy of this fom Module.
|
| virtual bool | fedFilesReady (const std::vector< MAKRti::DtString > *fileNames) const |
| | Does the distributor have a valid copy of all of these fom Modules.
|
| const FILE * | fedFilePtr (MAKRti::DtString fileName) const |
| | Get the fed file pointer.
|
| const char * | fedFileBuff (MAKRti::DtString fileName) const |
| | Get the fed file buffer.
|
| DtFileInformation * | takeFedFile (MAKRti::DtString fileName) |
| | Take ownership of the file.
|
| unsigned int | fileSize (MAKRti::DtString fileName) const |
| FILE * | getTmpFile () |
| void | setFedHandle (unsigned int newHandle) |
| | Set the Fed Handle of the distributor.
|
| void | setFedexHandle (unsigned int newHandle) |
Distributes fomModule files from initiating federate to RtiExec and then from RtiExec to all joining federates.