30#include <IceUtil/Thread.h>
31#include <IceUtil/Time.h>
34#include <ArmarXCore/interface/core/ThreadingIceBase.h>
53 double getCpuUsage(
const Ice::Current&
c = Ice::emptyCurrent)
override;
55 RunningTaskList
getRunningTasks(
const Ice::Current&
c = Ice::emptyCurrent)
override;
56 PeriodicTaskList
getPeriodicTasks(
const Ice::Current&
c = Ice::emptyCurrent)
override;
111 std::unique_ptr<Impl> impl;
118 const armarx::RunningTaskIceBase& task);
#define ARMARXCORE_IMPORT_EXPORT
ManagedIceObject(ManagedIceObject const &other)
The ProcessWatcher class is instantiated once in each armarx::Application an monitors thread,...
friend class ArmarXManager
void addRunningTask(RunningTaskIceBase *threadPtr)
add RunningTask instance to this thread list
void onInitComponent() override
Pure virtual hook for the subclass.
RunningTaskList getRunningTasks(const Ice::Current &c=Ice::emptyCurrent) override
PeriodicTaskList getPeriodicTasks(const Ice::Current &c=Ice::emptyCurrent) override
bool removePeriodicTask(PeriodicTaskIceBase *threadPtr)
remove PeriodicTask instance from this thread list
Ice::StringSeq getPeriodicTaskNames(const Ice::Current &c=Ice::emptyCurrent) override
void onDisconnectComponent() override
Hook for subclass.
static ThreadListPtr getApplicationThreadList()
getApplicationThreadList retrieves the ThreadList, that contains all TimerTasks and PeriodicTasks in ...
void setApplicationThreadListName(const std::string &threadListName)
bool removeRunningTask(RunningTaskIceBase *threadPtr)
remove RunningTask instance from this thread list
static int GetThreadJiffies(int threadId)
void addPeriodicTask(PeriodicTaskIceBase *threadPtr)
add PeriodicTask instance to this thread list
void onConnectComponent() override
Pure virtual hook for the subclass.
Ice::StringSeq getRunningTaskNames(const Ice::Current &c=Ice::emptyCurrent) override
std::string getDefaultName() const override
Retrieve default name of component.
double getCpuUsage(const Ice::Current &c=Ice::emptyCurrent) override
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< ThreadList > ThreadListPtr
ARMARXCORE_IMPORT_EXPORT ostream & operator<<(ostream &stream, const armarx::RunningTaskIceBase &task)