![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Maintains lists of known RTI connections. More...
Inheritance diagram for DtAssistantConnectionInfoMgr:
Collaboration diagram for DtAssistantConnectionInfoMgr:Classes | |
| struct | cmpByBoostUuid |
Public Types | |
| typedef std::map < DtAssistantInfo, DtAssistantState, cmpByBoostUuid > | DtAssistantStateMap |
| typedef std::pair < DtAssistantInfo, DtAssistantState > | DtAssistantStatePair |
Public Slots | |
| void | processLocalRtiComponentConnected (const DtAssistantComponentInfo *compInfo) |
| Processes a local component successfully using a connection. More... | |
| void | processLocalRtiComponentNotConnected (const DtAssistantComponentInfo *compInfo) |
| Processes a local component no longer using a connection. More... | |
| void | processLocalForwarderHasRtiexec (const DtAssistantComponentInfo *compInfo) |
| Processes a local forwarder reporting a connection with an rtiexec. More... | |
| void | processLocalForwarderHasNoRtiexec (const DtAssistantComponentInfo *compInfo) |
| Processes a local forwarder reporting no connection with an rtiexec. More... | |
| void | processNewChosenConnection (const DtRtiConnectionInfo &conn) |
| Processes the setting of a new chosen connection. More... | |
| void | processNewChosenConfiguration (const DtRtiConnectionConfigurationInfo &config) |
| Processes the setting of a new chosen configuration. More... | |
| void | processLocalInterfaceConfiguration (const DtRtiConnectionInfoDataPair &config, const DtRtiConnectionConfigurationInfo &configInfo) |
| Processes the setting of local interface configurations. More... | |
| void | processClearChosenConnection () |
| Processes the clearing of the chosen connection and configuration. More... | |
| void | setLightweightMemory (unsigned int newVal) |
| Processes the lightweight memory value changing. More... | |
| void | setAssistantUpdateInterval (unsigned int newVal) |
| Processes the assistant update interval value changing. More... | |
| void | setAcceptRemoteCommands (bool newVal) |
| Processes the accept remote commands setting changing. More... | |
| void | setSendForeignQuery (bool newVal) |
| Set whether queries to foreign assistants should be sent at startup. More... | |
| void | provideAssistantInfo (const DtAssistantUuid &assistantUuid, DtAssistantInfo *infoIn) |
| Query responder to provide assistant info for the given uuid. More... | |
| void | recoverConnection (const DtRtiConnectionInfo &connInfo, DtRtiConnectionInfo &recoveredConn) |
| Query responder to recover the actual connection info from a connecting rtiexec that best matches the connection info it reported but may not match the connection used (i.e., incorrect host and udpInterface). More... | |
| virtual void | addAssistantConnection (const DtAssistantConnectionStruct &connection) |
| add/remove assistant connections More... | |
| virtual bool | remoteAddAssistantConnection (const DtAssistantConnectionStruct &connection) |
| virtual void | removeAssistantConnection (const DtAssistantConnectionStruct &connection) |
| virtual bool | isRemoteAddressAssistantConnection (const DtInetAddr &localDeviceAddr, const DtInetAddr &remoteAddr) |
| void | assistantToAssistantConnectionUpdated (const DtAssistantConnectionStruct &, DtAssistantConnectionState) |
Public Slots inherited from DtAssistantMgr | |
| void | displayWarningDialogs () |
| Displays all warning dialogs. More... | |
Signals | |
| void | heartbeat () |
| Emitted when other managers should heartbeat local data to remote assistants. More... | |
| void | prune () |
| Emitted when other managers should prune data from remote assistants. More... | |
| void | connectionsAddedOrUpdated (const DtRtiConnectionAndConfiguration &conns) |
| Emitted when a connection is added or updated. More... | |
| void | connectionsAboutToBeRemoved (const DtRtiConnectionAndConfiguration &conns) |
| Emitted when a connection is about to be completely removed. More... | |
| void | connectionsRemoved (const DtRtiConnectionAndConfiguration &conns) |
| Emitted when a connection is completely removed. More... | |
| void | assistantFound (const DtAssistantInfo &info) |
| Emitted when a new assistant is discovered. More... | |
| void | assistantLost (const DtAssistantInfo &info) |
| Emitted when a known assistant is lost. More... | |
| void | rtiexecStartupRequested (const DtRtiConnectionInfoDataPair &, const DtRtiConnectionConfigurationInfo &, bool) |
| Emitted when a remote request is received to start an rtiexec. More... | |
| void | rtiForwarderStartupRequested (const DtRtiConnectionInfoDataPair &, const DtRtiConnectionConfigurationInfo &, bool) |
| Emitted when a remote request is received to start an rtiForwarder. More... | |
| void | assistantConnectionInformationUpdated (const DtAssistantConnectionStruct &, const DtAssistantConnectionStruct &) |
Signals inherited from DtAssistantMgr | |
| void | warningDialogDisplayed () |
| Emitted when a warning dialog is displayed. More... | |
| void | warningDialogDismissed () |
| Emitted when a warning dialog is dismissed. More... | |
| void | popupRequested (const MAKRti::DtString &text, int sourceCompId, const MAKRti::DtString &advancedText) |
| Emitted when a popup dialog should be displayed. More... | |
| void | popupRequested (const MAKRti::DtString &text, const MAKRti::DtString &source, const MAKRti::DtString &advancedText) |
| Emitted when a popup dialog should be displayed. More... | |
| void | notificationRequested (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId, bool logOnly) |
| Emitted when a notification should be displayed. More... | |
| void | notificationRequested (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source, bool logOnly) |
| Emitted when a notification should be displayed. More... | |
Public Member Functions | |
| DtAssistantConnectionInfoMgr (std::shared_ptr< DtRtiAssistantServer > server, std::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter, const MAKRti::DtFilename &configDir, const MAKRti::DtString &logFileName) | |
| Constructor. More... | |
| virtual | ~DtAssistantConnectionInfoMgr () |
| Destructor. More... | |
| virtual void | initialize () |
| Initializes this manager just prior to beginning assistant processing. More... | |
| virtual void | tick () |
| Performs tasks that need to be completed periodically. More... | |
| virtual void | startShutdown () |
| Performs any necessary processing at the start of shutdown. More... | |
| virtual bool | isCacheFileVersionOld () const |
| Returns true if the opened cache file had an older version. More... | |
| virtual unsigned int | lightweightMemoryPeriod () const |
| Get memory period, in minutes, for remote lightweight connections. More... | |
| virtual unsigned int | lightweightHeartbeatInterval () const |
| Get the interval between lightweight conn heartbeat messages. More... | |
| virtual unsigned int | assistantMemoryPeriod () const |
| Get memory period, in seconds, for remote assistant information. More... | |
| virtual unsigned int | assistantHeartbeatInterval () const |
| Get the interval between assistant heartbeat messages. More... | |
| virtual unsigned int | requestedAssistantHeartbeatInterval () const |
| Get the interval at which this assistant requests remote assistant heartbeat messages. More... | |
| virtual bool | acceptRemoteCommands () const |
| Get whether or not this assistant accepts commands. More... | |
| virtual bool | sendForeignQuery () const |
| Get whether queries to foreign assistants should be sent at startup. More... | |
| virtual bool | remoteAssistantAcceptsCommands (const DtAssistantInfo &assistant) const |
| Get whether or not a remote assistant accepts commands. More... | |
| virtual bool | hostHasARemoteAssistantThatAcceptsCommands (const DtHostNameAddress &host, const DtInetAddr &publicAddr, const MAKRti::DtInetAddr &interfaceAddr) const |
| Determine whether there are any remote assistants on the given host machine that will accept commands. More... | |
| virtual int | getRemoteAssistants (const DtString &hostName, DtAssistantInfoSet &assistants) const |
| Get the remote assistants on the given host. More... | |
| virtual int | getRemoteAssistants (const DtInetAddr &hostIp, DtAssistantInfoSet &assistants) const |
| Get the remote assistants on the given host IP. More... | |
| virtual const DtAssistantInfo * | remoteAssistant (const DtString &hostName) const |
| Return the first matching remote assistant on the given host name; NULL if not found. More... | |
| virtual const DtAssistantInfo * | remoteAssistant (const DtInetAddr &hostIp) const |
| Return the first matching remote assistant on the given host ip; NULL if not found. More... | |
| virtual const DtAssistantInfo * | remoteAssistant (const DtAssistantUuid &uuid) const |
| Return the remote assistant with the given UUID; NULL if not found. More... | |
| virtual const DtInetAddr & | assistantPublicAddress (const DtInetAddr &inetAddr) const |
| If possible find the Assistant (maybe this one) with this IP address as one of its interfaces and return the Assistant's public address; otherwise, return anyAddr. More... | |
| virtual int | localRtiexecCompId (const DtRtiConnectionInfo &conn) const |
| Gets the component ID of the local rtiexec on the given connection, or returns -1 if it cannot be found. More... | |
| virtual int | localRtiForwarderCompId (const DtRtiConnectionInfo &conn) const |
| Gets the component ID of the local rtiFrowarder that matches the conn. More... | |
| virtual bool | getRemoteRtiexecLocation (const DtRtiConnectionInfo &conn, DtAssistantInfo &assistant, int &id) const |
| Finds the location (assistant and component ID) of the remote rtiexec for the given connection. More... | |
| virtual bool | getRtiExecConnection (const DtRtiConnectionInfo &conn, DtRtiConnectionInfo &rtiExecConn) const |
| Find a connection that is hosting an active rtiexec component and whose address and port matches the given connection Return true if the connection was found; otherwise, false. More... | |
| virtual bool | getRemoteRtiForwarderLocation (const DtRtiConnectionInfo &conn, DtAssistantInfo &assistant, int &id) const |
| Finds the location (assistant and component ID) of the remote RTI Forwarder for the given connection. More... | |
| virtual bool | getRemoteRtiexecConnInfo (const DtAssistantInfo &assistant, int id, DtRtiConnectionInfoDataPair &conn) const |
| Finds connection information for the remote rtiexec based on its location (assistant and component ID) More... | |
| virtual bool | getRemoteForwarderConnInfo (const DtAssistantInfo &assistant, int id, DtRtiConnectionInfoDataPair &conn) const |
| Finds connection information for the remote forwarder based on its location (assistant and component ID) More... | |
| virtual bool | getChosenConnection (DtRtiConnectionInfoDataPair &conn) |
| Finds the currently chosen connection. Returns false if there is no chosen connection. More... | |
| virtual bool | getChosenConfiguration (DtRtiConfigurationInfoDataPair &config) |
| Finds the currently chosen configuration. Returns false if there is no chosen configuration. More... | |
| virtual bool | getConnectionInfo (DtRtiConnectionInfoDataPair &conn) |
| Finds and retrieves the full connection info and associated data for the connection. More... | |
| virtual bool | getConfigurationForConn (const DtRtiConnectionInfo &conn, DtRtiConfigurationInfoDataPair &config) |
| Finds and retrieves the full connection info and associated data for the connection. More... | |
| virtual MAKRti::DtString | connectionName (const DtRtiConnectionInfo &conn) |
| Returns the name for the given connection. More... | |
| virtual bool | isStillDefaultChosen () const |
| Returns true if a connection file was not found and loaded when the cache was created and the user has not yet set (or unset) a chosen connection. More... | |
| virtual const DtRtiConnectionAndConfiguration & | connectionsAndConfigurations () |
| Returns the current list of all connections and configurations. More... | |
| virtual void | addUserDefinedConnections (const DtRtiConnectionAndConfiguration &conns) |
| Adds new user defined connections. More... | |
| virtual void | removeUserDeletedConnections (const DtRtiConnectionAndConfiguration &conns) |
| Removes user deleted connections. More... | |
| virtual void | removeAllLocalRtiexecsForwarders () |
| Remove all local rtiexecs and forwarders. More... | |
| virtual void | removeAllLocalLightweightConns () |
| Remove all local lightweight connections. More... | |
| virtual bool | isConnConflicting (const DtRtiConnectionInfo &conn, MAKRti::DtString &reason) const |
| If the given connection conflicts with any currently active connection, returns true, sets the name of the active conflicting connection, and sets a description of the reason for the conflict. More... | |
| void | saveConnections () |
| Saves the connections to file. More... | |
| DtNetU128 | rawUuid () const |
Public Member Functions inherited from DtAssistantMgr | |
| DtAssistantMgr (std::shared_ptr< DtRtiAssistantServer > server, std::shared_ptr< DtRtiAssistantPeer > peer, DtAssistantSignalRouter &signalRouter) | |
| Constructor. More... | |
| virtual | ~DtAssistantMgr () |
| Destructor. More... | |
| virtual bool | dialogsVisible () const |
| Determines if there are any visible dialogs for which this manager is responsible. More... | |
| virtual void | configWidget (DtAssistantConfigWidget **widget, QIcon &icon, QString &name, DtPreferencesPage &pageId) |
| Retrieves a widget which will be placed in the configuration dialog for configuring user preferences. More... | |
| virtual void | updateConfigWidget () |
| Forces the configuration widget to be updated. More... | |
| virtual void | processConfigWidgetAccept () |
| Process the changes that were accepted in the configuration widget. More... | |
Protected Member Functions | |
| virtual void | processInterfaceFound () |
| Called by the callback function to process discovery of a new network interface. More... | |
| virtual void | heartbeatAssistant () |
| Sends heartbeat messages for majority of assistant information. More... | |
| virtual void | heartbeatLightweightConnections () |
| Sends heartbeat messages for all lightweight connections. More... | |
| virtual void | pruneStaleLightweightConns () |
| Prune remote lightweight connections which have not been heartbeated since the last removal time. More... | |
| virtual void | checkForStaleAssistantsExecsFwrdrs () |
| Prune remote assistants, rtiexecs, and forwarders which have not been heartbeated since the last removal time. More... | |
| virtual void | pruneStaleAssistantExecsFwrdrs (DtRtiConnectionAndConfiguration &connsToRemove, DtRtiConnectionAndConfiguration &updatedConns) |
| virtual void | determineHeartbeatIntervals () |
| From the list of known assistant peers and their respective heartbeat periods, calculate the heartbeat interval (half the shortest interval) for lightweight connection info and other information. More... | |
| virtual DtAssistantStateMap::iterator | addRemoteAssistant (const DtAssistantInfo &assistant) |
| Adds the given state information for the given assistant. More... | |
| virtual void | unverifyRtiexecsForwardersForAssistant (const DtAssistantState &assistantState, DtRtiConnectionAndConfiguration &connsToRemove, DtRtiConnectionAndConfiguration &updatedConns) |
| Unverify all rtiexecs and forwarders owned by this assistant (assumes iterator is valid). More... | |
| virtual void | unverifyListedRtiexecsForwardersForAssistant (const DtRtiConnectionAndConfiguration &removeList, DtAssistantStateMap::iterator astntIter, DtRtiConnectionAndConfiguration &connsToRemove, DtRtiConnectionAndConfiguration &updatedConns) |
| Unverify all of the rtiexecs and forwarders in the given list from the stored list if they are owned by the given assistant (assumes iterator is valid). More... | |
| virtual void | addListedRtiexecsForwardersForAssistant (const DtRtiConnectionAndConfiguration &addList, DtAssistantStateMap::iterator astntIter, DtRtiConnectionAndConfiguration &connsToRemove, DtRtiConnectionAndConfiguration &updatedConns) |
| Add all of the rtiexecs and forwarders in the given list to the stored list and assign ownership to the given assistant (assumes iterator is valid). More... | |
| virtual void | checkForConflictingConns (DtRtiConnectionAndConfiguration &updatedConns) |
| Checks all connections with unknown or conflicting state to see if they are now conflicting. More... | |
| virtual void | removeConnections (const DtRtiConnectionAndConfiguration &connsToRemove) |
| Removes the given connections from the connection list and emits necessary signals. More... | |
| virtual void | setInterfaceForPredefinedConns (const MAKRti::DtInetAddr &interfaceAddr) |
| Sets the network interface address to be used for the predefined connections. More... | |
Protected Member Functions inherited from DtAssistantMgr | |
| void | startDialog (QDialog *dlg, bool inTaskbar, bool warningDialog) |
| Sets up the given widget as a dialog. More... | |
| void | finishDialog (QDialog *dlg) |
| Should be called prior to deleting any dialog started with startDialog. More... | |
| void | showDialog (QDialog *dlg) |
| Shows the dialog. More... | |
| void | startMainWindow (QMainWindow *dlg) |
| Sets up a main window dialog. More... | |
| void | finishMainWindow (QMainWindow *dlg) |
| Should be called prior to deleting any dialog started with startMainWindow. More... | |
| void | showMainWindow (QMainWindow *dlg) |
| Shows the dialog. More... | |
| void | showPopup (const MAKRti::DtString &text, int sourceCompId=-1, const MAKRti::DtString &advancedText=MAKRti::DtString::nullString()) |
| Displays a popup message with the given text, advanced text, and name of the given source component. More... | |
| void | showPopup (const MAKRti::DtString &text, const MAKRti::DtString &source, const MAKRti::DtString &advancedText=MAKRti::DtString::nullString()) |
| Displays a popup message with the given text, advanced text, and source name. More... | |
| void | displayNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1) |
| Displays and logs a notification from the given component. More... | |
| void | displayNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source) |
| Displays and logs notification with the given component name. More... | |
| void | logNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, int sourceCompId=-1) |
| Logs a notification from the given component, does not display. More... | |
| void | logNotification (const MAKRti::DtString &message, MAKRti::DtNotifyLevelType notifyLevel, const MAKRti::DtString &source) |
| Logs a notification with the given component name, does not display. More... | |
| virtual DtAssistantInfo | assistantInfoFromAssistantMsg (const DtAssistantMsg &assistantMsg, DtInetAddrSet *interfaces=0) |
Static Protected Member Functions | |
| static void | processInterfaceFound (void *usr) |
| Callback to process the discovery of a new network interface. More... | |
Protected Attributes | |
| std::shared_ptr < DtConnectionCache > | myConnectionCache |
| The cached rtiexec and lightweight connections. More... | |
| bool | myAcceptRemoteCmds |
| Whether or not remote commands are accepted. More... | |
| bool | mySendForeignQuery |
| Whether queries to foreign assistants should be sent at startup. More... | |
| DtClock | myClock |
| Clock for timeouts and periodic update messages. More... | |
| DtTime | myNextAssistantHeartbeatTime |
| Time at which we will next send information on our own assistant and local rtiexecs, forwarders, and licenses. More... | |
| DtTime | myNextLightweightHeartbeatTime |
| Time at which we will next send information on our own local lightweight connections. More... | |
| DtTime | myNextAssistantInfoRemovalTime |
| Time at which we will next remove any un-heartbeated remote assistants, rtiexecs, and forwarders. More... | |
| DtTime | myNextLightweightRemovalTime |
| Time at which we will next remove any un-heartbeated remote lightweight connections. More... | |
| unsigned int | myAssistantHeartbeatInterval |
| Interval, in secs, at which we will send assistant info heartbeat msgs. More... | |
| unsigned int | myLightweightHeartbeatInterval |
| Interval, in secs, at which we will send lightweight conn heartbeat msgs. More... | |
| unsigned int | myAssistantInfoRemovalPeriod |
| Interval at which we will check for remote assistants, rtiexecs, and forwarders have not been heartbeated. More... | |
| unsigned int | myLightweightRemovalPeriod |
| Interval at which we will check for remote lightweight connections that have not been heartbeated. More... | |
| MAKRti::DtString | myHostName |
| Name of this host. More... | |
| DtRtiConnectionAndConfiguration | myRemovedLocalExecsAndFwrdrs |
| Sets of removed local rtiexecs and forwarders. More... | |
| DtAssistantStateMap | myRemoteAssistantStates |
| All known remote assistants and their current rtiexecs and forwarders. More... | |
| DtRtiConnectionAndConfiguration | myConnsAndConfigs |
| All of the connections and configurations. More... | |
| bool | myStillDefaultChosen |
| Indicates that the default chosen connection state is still in use (no connection file existed and user has not chosen or unchosen a connection to be used without prompting). More... | |
| bool | myPredefinedConnsNeedInterface |
| If there was no network interface when the assistant started, the predefined connections will be invalid. More... | |
| MAKRti::DtInetAddr | myPotentialPredefinedConnsInterface |
| A network interface to potentially use for the predefined connections, if it stays active long enough. More... | |
| DtTime | mySetPredefinedConnsInterfaceTime |
| Time at which predefined connections should be set with the myPotentialPredefinedConnsInterface. More... | |
| MAKRti::DtString | myLogFileName |
| The name of the log file. More... | |
Protected Attributes inherited from DtAssistantMgr | |
| std::shared_ptr < DtRtiAssistantServer > | myServer |
| The Assistant server from which new messages will arrive from local RTI components. More... | |
| std::shared_ptr < DtRtiAssistantPeer > | myPeer |
| The Assistant peer which communicates with other Assistants. More... | |
| std::set< QDialog * > | myUnparentedDialogs |
| All unparented dialogs that are created by the GUI should be added to this set. More... | |
| std::set< QMainWindow * > | myMainWindows |
| All main windows that are created by the GUI should be added to this set. More... | |
| std::set< QDialog * > | myWarningDialogs |
| Set of the popup dialogs, either parented or unparented, which, when active, should cause a warning icon to be displayed. More... | |
Private Member Functions | |
| DtAssistantConnectionInfoMgr (DtAssistantConnectionInfoMgr const &) | |
| Copy Constructor not implemented – Copy Not Allowed! More... | |
| DtAssistantConnectionInfoMgr & | operator= (DtAssistantConnectionInfoMgr const &) |
| Assignment not implemented – Assignment Not Allowed! More... | |
Message Callbacks | |
| static void | processQueryMsg (const DtAssistantQueryMsg &queryMsg, void *usr) |
| Query message callback. More... | |
| static void | processInfoMsg (const DtAssistantInfoMsg &infoMsg, void *usr) |
| Assistant information message callback. More... | |
| static void | processLightweightInfoMsg (const DtAssistantLightweightInfoMsg &infoMsg, void *usr) |
| Assistant lightweight information message callback. More... | |
| static void | processRemovalMsg (const DtAssistantRemovalMsg &remMsg, void *usr) |
| Assistant removal message callback. More... | |
| static void | processStartRtiexecMsg (const DtAssistantStartRtiexecMsg &msg, void *usr) |
| Start rtiexec message callback. More... | |
| static void | processStartRtiForwarderMsg (const DtAssistantStartRtiForwarderMsg &msg, void *usr) |
| Start rtiForwarder message callback. More... | |
| virtual void | processQueryMsg (const DtAssistantQueryMsg &queryMsg) |
| Query message callback. More... | |
| virtual void | processInfoMsg (const DtAssistantInfoMsg &infoMsg) |
| Query message callback. More... | |
| virtual void | processLightweightInfoMsg (const DtAssistantLightweightInfoMsg &infoMsg) |
| Query message callback. More... | |
| virtual void | processRemovalMsg (const DtAssistantRemovalMsg &remMsg) |
| Query message callback. More... | |
| virtual void | processStartRtiexecMsg (const DtAssistantStartRtiexecMsg &msg) |
| Query message callback. More... | |
| virtual void | processStartRtiForwarderMsg (const DtAssistantStartRtiForwarderMsg &msg) |
| Query message callback. More... | |
Additional Inherited Members | |
Static Protected Attributes inherited from DtAssistantMgr | |
| static QIcon | theRtiIcon |
| The icons used by the RTI Assistant. More... | |
| static QIcon | theSmallRtiIcon |
| static QIcon | theWebIcon |
| static QIcon | theNotifyRtiIcon |
| static QIcon | theWarningRtiIcon |
| static QIcon | thePreferencesIcon |
| static QIcon | theAboutIcon |
| static QIcon | theHelpIcon |
| static bool | theIconsAreLoaded |
| Whether or not the icons have yet been loaded. More... | |
Maintains lists of known RTI connections.
This includes all lightweight and rtiexec, remote and local, active and inactive connections.
| typedef std::map< DtAssistantInfo, DtAssistantState, cmpByBoostUuid > DtAssistantConnectionInfoMgr::DtAssistantStateMap |
| typedef std::pair< DtAssistantInfo, DtAssistantState > DtAssistantConnectionInfoMgr::DtAssistantStatePair |
| DtAssistantConnectionInfoMgr::DtAssistantConnectionInfoMgr | ( | std::shared_ptr< DtRtiAssistantServer > | server, |
| std::shared_ptr< DtRtiAssistantPeer > | peer, | ||
| DtAssistantSignalRouter & | signalRouter, | ||
| const MAKRti::DtFilename & | configDir, | ||
| const MAKRti::DtString & | logFileName | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy Constructor not implemented – Copy Not Allowed!
|
virtual |
Get whether or not this assistant accepts commands.
|
virtualslot |
add/remove assistant connections
|
protectedvirtual |
Add all of the rtiexecs and forwarders in the given list to the stored list and assign ownership to the given assistant (assumes iterator is valid).
Adds updated connections as well as connection which need to be removed to the specified lists.
|
protectedvirtual |
Adds the given state information for the given assistant.
|
virtual |
Adds new user defined connections.
|
signal |
|
signal |
Emitted when a new assistant is discovered.
|
virtual |
Get the interval between assistant heartbeat messages.
This interval is based on the desired update rates of the remote assistants.
|
signal |
Emitted when a known assistant is lost.
|
virtual |
Get memory period, in seconds, for remote assistant information.
|
virtual |
If possible find the Assistant (maybe this one) with this IP address as one of its interfaces and return the Assistant's public address; otherwise, return anyAddr.
|
slot |
|
protectedvirtual |
Checks all connections with unknown or conflicting state to see if they are now conflicting.
|
protectedvirtual |
Prune remote assistants, rtiexecs, and forwarders which have not been heartbeated since the last removal time.
|
virtual |
Returns the name for the given connection.
|
signal |
Emitted when a connection is about to be completely removed.
|
signal |
Emitted when a connection is added or updated.
|
virtual |
Returns the current list of all connections and configurations.
|
signal |
Emitted when a connection is completely removed.
|
protectedvirtual |
From the list of known assistant peers and their respective heartbeat periods, calculate the heartbeat interval (half the shortest interval) for lightweight connection info and other information.
|
virtual |
Finds the currently chosen configuration. Returns false if there is no chosen configuration.
|
virtual |
Finds the currently chosen connection. Returns false if there is no chosen connection.
|
virtual |
Finds and retrieves the full connection info and associated data for the connection.
Returns false if the connection could not be found or if it had no associated configuration.
|
virtual |
Finds and retrieves the full connection info and associated data for the connection.
Returns false if the connection could not be found.
|
virtual |
Get the remote assistants on the given host.
|
virtual |
Get the remote assistants on the given host IP.
|
virtual |
Finds connection information for the remote forwarder based on its location (assistant and component ID)
|
virtual |
Finds connection information for the remote rtiexec based on its location (assistant and component ID)
|
virtual |
Finds the location (assistant and component ID) of the remote rtiexec for the given connection.
|
virtual |
Finds the location (assistant and component ID) of the remote RTI Forwarder for the given connection.
|
virtual |
Find a connection that is hosting an active rtiexec component and whose address and port matches the given connection Return true if the connection was found; otherwise, false.
|
signal |
Emitted when other managers should heartbeat local data to remote assistants.
|
protectedvirtual |
Sends heartbeat messages for majority of assistant information.
|
protectedvirtual |
Sends heartbeat messages for all lightweight connections.
|
virtual |
Determine whether there are any remote assistants on the given host machine that will accept commands.
|
virtual |
Initializes this manager just prior to beginning assistant processing.
Reimplemented from DtAssistantMgr.
|
virtual |
Returns true if the opened cache file had an older version.
|
virtual |
If the given connection conflicts with any currently active connection, returns true, sets the name of the active conflicting connection, and sets a description of the reason for the conflict.
|
virtualslot |
|
virtual |
Returns true if a connection file was not found and loaded when the cache was created and the user has not yet set (or unset) a chosen connection.
|
virtual |
Get the interval between lightweight conn heartbeat messages.
|
virtual |
Get memory period, in minutes, for remote lightweight connections.
|
virtual |
Gets the component ID of the local rtiexec on the given connection, or returns -1 if it cannot be found.
|
virtual |
Gets the component ID of the local rtiFrowarder that matches the conn.
|
private |
Assignment not implemented – Assignment Not Allowed!
|
slot |
Processes the clearing of the chosen connection and configuration.
|
staticprotected |
Assistant information message callback.
|
protectedvirtual |
Query message callback.
|
staticprotected |
Callback to process the discovery of a new network interface.
|
protectedvirtual |
Called by the callback function to process discovery of a new network interface.
|
staticprotected |
Assistant lightweight information message callback.
|
protectedvirtual |
Query message callback.
|
slot |
Processes a local forwarder reporting no connection with an rtiexec.
|
slot |
Processes a local forwarder reporting a connection with an rtiexec.
|
slot |
Processes the setting of local interface configurations.
|
slot |
Processes a local component successfully using a connection.
|
slot |
Processes a local component no longer using a connection.
|
slot |
Processes the setting of a new chosen configuration.
|
slot |
Processes the setting of a new chosen connection.
|
staticprotected |
Query message callback.
|
protectedvirtual |
Query message callback.
|
staticprotected |
Assistant removal message callback.
|
protectedvirtual |
Query message callback.
|
staticprotected |
Start rtiexec message callback.
|
protectedvirtual |
Query message callback.
|
staticprotected |
Start rtiForwarder message callback.
|
protectedvirtual |
Query message callback.
|
slot |
Query responder to provide assistant info for the given uuid.
|
signal |
Emitted when other managers should prune data from remote assistants.
|
protectedvirtual |
|
protectedvirtual |
Prune remote lightweight connections which have not been heartbeated since the last removal time.
| DtNetU128 DtAssistantConnectionInfoMgr::rawUuid | ( | ) | const |
|
slot |
Query responder to recover the actual connection info from a connecting rtiexec that best matches the connection info it reported but may not match the connection used (i.e., incorrect host and udpInterface).
The the reported connection's TCP address is used to identify the connection's Assistant and pull from it the host name and udp interfaces.
|
virtualslot |
|
virtual |
Return the first matching remote assistant on the given host name; NULL if not found.
|
virtual |
Return the first matching remote assistant on the given host ip; NULL if not found.
|
virtual |
Return the remote assistant with the given UUID; NULL if not found.
|
virtual |
Get whether or not a remote assistant accepts commands.
|
virtual |
Remove all local lightweight connections.
|
virtual |
Remove all local rtiexecs and forwarders.
|
virtualslot |
|
protectedvirtual |
Removes the given connections from the connection list and emits necessary signals.
|
virtual |
Removes user deleted connections.
|
virtual |
Get the interval at which this assistant requests remote assistant heartbeat messages.
|
signal |
Emitted when a remote request is received to start an rtiexec.
|
signal |
Emitted when a remote request is received to start an rtiForwarder.
| void DtAssistantConnectionInfoMgr::saveConnections | ( | ) |
Saves the connections to file.
|
virtual |
Get whether queries to foreign assistants should be sent at startup.
|
slot |
Processes the accept remote commands setting changing.
|
slot |
Processes the assistant update interval value changing.
|
protectedvirtual |
Sets the network interface address to be used for the predefined connections.
|
slot |
Processes the lightweight memory value changing.
|
slot |
Set whether queries to foreign assistants should be sent at startup.
|
virtual |
Performs any necessary processing at the start of shutdown.
Reimplemented from DtAssistantMgr.
|
virtual |
Performs tasks that need to be completed periodically.
Reimplemented from DtAssistantMgr.
|
protectedvirtual |
Unverify all of the rtiexecs and forwarders in the given list from the stored list if they are owned by the given assistant (assumes iterator is valid).
Adds updated connections as well as connection which need to be removed to the specified lists.
|
protectedvirtual |
Unverify all rtiexecs and forwarders owned by this assistant (assumes iterator is valid).
Returns lists of conns that have been updated or need to be removed.
|
protected |
Whether or not remote commands are accepted.
|
protected |
Interval, in secs, at which we will send assistant info heartbeat msgs.
|
protected |
Interval at which we will check for remote assistants, rtiexecs, and forwarders have not been heartbeated.
|
protected |
Clock for timeouts and periodic update messages.
|
protected |
The cached rtiexec and lightweight connections.
|
protected |
All of the connections and configurations.
|
protected |
Name of this host.
|
protected |
Interval, in secs, at which we will send lightweight conn heartbeat msgs.
|
protected |
Interval at which we will check for remote lightweight connections that have not been heartbeated.
|
protected |
The name of the log file.
|
protected |
Time at which we will next send information on our own assistant and local rtiexecs, forwarders, and licenses.
|
protected |
Time at which we will next remove any un-heartbeated remote assistants, rtiexecs, and forwarders.
|
protected |
Time at which we will next send information on our own local lightweight connections.
|
protected |
Time at which we will next remove any un-heartbeated remote lightweight connections.
|
protected |
A network interface to potentially use for the predefined connections, if it stays active long enough.
|
protected |
If there was no network interface when the assistant started, the predefined connections will be invalid.
|
protected |
All known remote assistants and their current rtiexecs and forwarders.
|
protected |
Sets of removed local rtiexecs and forwarders.
|
protected |
Whether queries to foreign assistants should be sent at startup.
|
protected |
Time at which predefined connections should be set with the myPotentialPredefinedConnsInterface.
|
protected |
Indicates that the default chosen connection state is still in use (no connection file existed and user has not chosen or unchosen a connection to be used without prompting).