16 #ifndef QC_CORE_OBJECTMANAGER_H 17 #define QC_CORE_OBJECTMANAGER_H 33 class ServiceDiscovery;
52 ObjectsManager(std::string taskName, std::string detectorName, std::string consulUrl,
int parallelTaskID = 0,
bool noDiscovery =
false);
55 static const std::string gDrawOptionsKey;
56 static const std::string gDisplayHintsKey;
105 void addMetadata(
const std::string& objectName,
const std::string& key,
const std::string& value);
132 void setDisplayHint(
const std::string& objectName,
const std::string& hints);
167 std::unique_ptr<MonitorObjectCollection> mMonitorObjects;
168 std::string mTaskName;
169 std::string mDetectorName;
170 std::unique_ptr<ServiceDiscovery> mServiceDiscovery;
171 bool mUpdateServiceDiscovery;
176 #endif // QC_CORE_OBJECTMANAGER_H
void setDisplayHint(const std::string &objectName, const std::string &hints)
Indicate how to display this object. A number of options can be set on a canvas to influence the way ...
Definition: ObjectsManager.cxx:155
Definition: MonitorObjectCollection.h:25
Keeps the list of encapsulated objects to publish and does the actual publication.
Definition: ObjectsManager.h:41
void removeAllFromServiceDiscovery()
Remove all objects from the ServiceDiscovery. Remove all objects from the ServiceDiscovery even thoug...
Definition: ObjectsManager.cxx:80
void startPublishing(TObject *obj)
Definition: ObjectsManager.cxx:52
void stopPublishing(TObject *obj)
Definition: ObjectsManager.cxx:89
size_t getNumberPublishedObjects()
Definition: ObjectsManager.cxx:138
void setDefaultDrawOptions(const std::string &objectName, const std::string &options)
Set default draw options for this object. If possible, the object will be drawn with these options (i...
Definition: ObjectsManager.cxx:143
void addMetadata(const std::string &objectName, const std::string &key, const std::string &value)
Add metadata to a MonitorObject. Add a metadata pair to a MonitorObject. This is propagated to the da...
Definition: ObjectsManager.cxx:131
These methods can be used to build a complex processing topology. It spawns 3 separate dummy processi...
Definition: Activity.h:19
MonitorObject * getMonitorObject(std::string objectName)
Definition: ObjectsManager.cxx:105
bool isBeingPublished(const std::string &name)
Definition: ObjectsManager.cxx:100
ObjectsManager(std::string taskName, std::string detectorName, std::string consulUrl, int parallelTaskID=0, bool noDiscovery=false)
Definition: ObjectsManager.cxx:34
This class keeps the meta data about one published object.
Definition: MonitorObject.h:41
void updateServiceDiscovery()
Update the list of objects stored in the Service Discovery. Update the list of objects stored in the ...
Definition: ObjectsManager.cxx:64