MIRA
|
A remote authority is located in another framework. More...
#include <fw/RemoteAuthority.h>
Public Types | |
typedef std::multimap< std::string, std::string > | ChannelNameMapping |
typedef std::map< std::string, Status > | ChannelStatusMap |
Public Member Functions | |
RemoteAuthority (const AuthorityDescription &desc) | |
virtual | ~RemoteAuthority () |
bool | needSynchronizeProperties () |
void | synchronizeProperties () |
Implementation of AbstractAuthority | |
virtual StatusManager::StatusMap | getStatusMap () |
Return a status map that contains the status of the authority as well as all registered submodules. More... | |
virtual boost::shared_ptr< PropertyNode > | getProperties () |
Returns the main property node of this Authority. More... | |
virtual std::set< std::string > | getPublishedChannels () |
Returns all published channels by this authority (and its sub-authorities) More... | |
virtual std::set< std::string > | getSubscribedChannels () |
Returns all subscribed channels by this authority (and its sub-authorities) More... | |
virtual std::set< std::string > | getServiceInterfaces () |
Returns all service interfaces provided by this authority. More... | |
virtual ChannelNameMapping | getPublishedChannelNames () |
Returns all published channels (pair of global and local names) by this authority (and its sub-authorities) More... | |
virtual ChannelNameMapping | getSubscribedChannelNames () |
Returns all subscribed channels (pair of global and local names) by this authority (and its sub-authorities) More... | |
virtual ChannelStatusMap | getSubscribedChannelStatus () |
Returns status for all subscribed channels (ok, no publisher, no data, ...) by this authority (and its sub-authorities) More... | |
virtual void | start () |
Starts/Resumes the authority. More... | |
virtual void | stop () |
Stops/Pauses the authority. To continue call start(). More... | |
virtual bool | hasUnrecoverableFailure () const |
Returns true, if there was a failure while processing the immediate handlers. More... | |
virtual bool | isStarted () const |
Returns true, if the authority was started (by calling start()). More... | |
virtual bool | isRunning () const |
Return if the authority is running. More... | |
Detailed Information Retrieval | |
These methods allow to obtain detailed information on the Authority. | |
std::string | getNamespace () const |
Return the resolved namespace of the authority. More... | |
std::string | getGlobalName () const |
Return the fully qualified global name (includes namespace) This method returns the name without the trailing UUID added if the authority is anonymous. More... | |
std::string | getGlobalID () const |
Return the fully qualified global id (includes namespace) More... | |
std::string | getID () const |
Return the id of the authority. More... | |
std::string | getName () const |
Return the name of the authority. More... | |
const AuthorityDescription & | getDescription () const |
Return the description of this authority. More... | |
Protected Attributes | |
AuthorityDescription | mDescription |
Friends | |
class | RemoteAuthorityPropertyUpdater |
A remote authority is located in another framework.
This class acts as an interface or proxy to remote authorities. All calls to this interface will be redirected to the remote instance using RPCs. For the RPC calls that are used internally a limited timeout is used. Hence, some of the methods below will throw an exception, if the operation was not successful. Getting remote properties will be handled in a separate worker thread. That means, that the first get on a remote property will cause an exception ("Waiting for property query"). Subsequent get calls will return the last received value of the property, or if an exception was thrown in the original property getter, it will be thrown here. Each get call on a property will trigger an update, which is executed by the worker thread.
|
inherited |
|
inherited |
RemoteAuthority | ( | const AuthorityDescription & | desc | ) |
|
virtual |
|
virtual |
Return a status map that contains the status of the authority as well as all registered submodules.
Implements AbstractAuthority.
|
virtual |
Returns the main property node of this Authority.
Implements AbstractAuthority.
|
virtual |
Returns all published channels by this authority (and its sub-authorities)
Implements AbstractAuthority.
|
virtual |
Returns all subscribed channels by this authority (and its sub-authorities)
Implements AbstractAuthority.
|
virtual |
Returns all service interfaces provided by this authority.
Implements AbstractAuthority.
|
virtual |
Returns all published channels (pair of global and local names) by this authority (and its sub-authorities)
Implements AbstractAuthority.
|
virtual |
Returns all subscribed channels (pair of global and local names) by this authority (and its sub-authorities)
Implements AbstractAuthority.
|
virtual |
Returns status for all subscribed channels (ok, no publisher, no data, ...) by this authority (and its sub-authorities)
Implements AbstractAuthority.
|
virtual |
Starts/Resumes the authority.
Implements AbstractAuthority.
|
virtual |
Stops/Pauses the authority. To continue call start().
Implements AbstractAuthority.
|
virtual |
Returns true, if there was a failure while processing the immediate handlers.
This is an unrecoverable failure that will disallow the further execution of the authority.
Implements AbstractAuthority.
|
virtual |
Returns true, if the authority was started (by calling start()).
It will return false, if the authority was not yet started or stopped.
Implements AbstractAuthority.
|
virtual |
Return if the authority is running.
Implements AbstractAuthority.
bool needSynchronizeProperties | ( | ) |
void synchronizeProperties | ( | ) |
|
inlineinherited |
Return the resolved namespace of the authority.
|
inlineinherited |
Return the fully qualified global name (includes namespace) This method returns the name without the trailing UUID added if the authority is anonymous.
Use getGlobalID() to obtain the unique id of the authority.
|
inlineinherited |
Return the fully qualified global id (includes namespace)
|
inlineinherited |
Return the id of the authority.
|
inlineinherited |
Return the name of the authority.
|
inlineinherited |
Return the description of this authority.
|
friend |
|
protectedinherited |