27 properties->defineOptionalProperty<std::string>(
30 "Name of the Memory Name System (MNS) component.");
32 if (not properties->hasDefinition(
makePropertyName(PROPERTY_MNS_ENABLED_NAME)))
34 properties->defineOptionalProperty<
bool>(
36 memoryNameSystemEnabled,
37 "Whether to use (and depend on) the Memory Name System (MNS)."
38 "\nSet to false to use this memory as a stand-alone.");
61 ARMARX_DEBUG <<
"Creating MemoryNameSystem client with owning component '"
70 return memoryNameSystemEnabled;
76 return memoryNameSystemName;
79 mns::MemoryNameSystemInterfacePrx
91 return memoryNameSystem;
97 return memoryNameSystem;
bool parentDerives() const
ManagedIceObject & parent()
friend class ManagedIceObject
std::string makePropertyName(const std::string &name)
bool usingProxy(const std::string &name, const std::string &endpoints="")
Registers a proxy for retrieval after initialization and adds it to the dependency list.
std::string getName() const
Retrieve name of object.
Ice::ObjectPrx getProxy(long timeoutMs=0, bool waitForScheduler=true) const
Returns the proxy of this object (optionally it waits for the proxy)
The memory name system (MNS) client.
std::string getMemoryNameSystemName()
Get the name of the MNS component.
void preOnInitComponent() override
void preOnConnectComponent() override
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
mns::MemoryNameSystemInterfacePrx getMemoryNameSystemProxy()
Get the MNS proxy.
bool isMemoryNameSystemEnabled()
Indicate whether the Memory Name System (MNS) is enabled.
virtual ~Plugin() override
MemoryNameSystem & getMemoryNameSystemClient()
Get the MNS client.
Plugin(ManagedIceObject &parent, std::string pre)
#define ARMARX_DEBUG
The logging level for output that is only interesting while debugging.
This file is part of ArmarX.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.