ApplicationNetworkStats Class Reference

The ApplicationNetworkStats class implements the Ice::Instrumentation::CommunicatorObserver interface to meassure network traffic. More...

#include <ArmarXCore/core/application/ApplicationNetworkStats.h>

+ Inheritance diagram for ApplicationNetworkStats:

Public Member Functions

 ApplicationNetworkStats ()
 
Ice::Instrumentation::ObserverPtr getConnectionEstablishmentObserver (const Ice::EndpointPtr &, const std::string &) override
 
Ice::Instrumentation::ConnectionObserverPtr getConnectionObserver (const Ice::ConnectionInfoPtr &c, const Ice::EndpointPtr &e, Ice::Instrumentation::ConnectionState s, const Ice::Instrumentation::ConnectionObserverPtr &previous) override
 
Ice::Instrumentation::DispatchObserverPtr getDispatchObserver (const Ice::Current &, Ice::Int) override
 
Ice::Instrumentation::ObserverPtr getEndpointLookupObserver (const Ice::EndpointPtr &) override
 
Ice::Instrumentation::InvocationObserverPtr getInvocationObserver (const Ice::ObjectPrx &, const std::string &, const Ice::Context &) override
 
Ice::Instrumentation::ThreadObserverPtr getThreadObserver (const std::string &, const std::string &, Ice::Instrumentation::ThreadState, const Ice::Instrumentation::ThreadObserverPtr &) override
 
void setApplicationName ()
 
void setObserverUpdater (const Ice::Instrumentation::ObserverUpdaterPtr &upd) override
 
void setProfilerTopic ()
 
void start (ProfilerListenerPrx profiler, const std::string &applicationName)
 
void stopTask ()
 
 ~ApplicationNetworkStats () override
 

Detailed Description

The ApplicationNetworkStats class implements the Ice::Instrumentation::CommunicatorObserver interface to meassure network traffic.

It accumulates the amount of bytes received and sent over network and periodically publishes them over the IceStorm topic set via ApplicationNetworkStats::setProfilerTopic().

The Stats object must be added to the Ice::InitializationData object used during Ice initialization. This is done in armarx::Application::doMain()

Definition at line 51 of file ApplicationNetworkStats.h.

Constructor & Destructor Documentation

◆ ApplicationNetworkStats()

Definition at line 67 of file ApplicationNetworkStats.cpp.

◆ ~ApplicationNetworkStats()

~ApplicationNetworkStats ( )
override

Definition at line 98 of file ApplicationNetworkStats.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ getConnectionEstablishmentObserver()

Ice::Instrumentation::ObserverPtr getConnectionEstablishmentObserver ( const Ice::EndpointPtr &  ,
const std::string &   
)
override

Definition at line 125 of file ApplicationNetworkStats.cpp.

◆ getConnectionObserver()

Ice::Instrumentation::ConnectionObserverPtr getConnectionObserver ( const Ice::ConnectionInfoPtr &  c,
const Ice::EndpointPtr &  e,
Ice::Instrumentation::ConnectionState  s,
const Ice::Instrumentation::ConnectionObserverPtr &  previous 
)
override

Definition at line 103 of file ApplicationNetworkStats.cpp.

+ Here is the call graph for this function:

◆ getDispatchObserver()

Ice::Instrumentation::DispatchObserverPtr getDispatchObserver ( const Ice::Current &  ,
Ice::Int   
)
override

Definition at line 145 of file ApplicationNetworkStats.cpp.

◆ getEndpointLookupObserver()

Ice::Instrumentation::ObserverPtr getEndpointLookupObserver ( const Ice::EndpointPtr &  )
override

Definition at line 130 of file ApplicationNetworkStats.cpp.

◆ getInvocationObserver()

Ice::Instrumentation::InvocationObserverPtr getInvocationObserver ( const Ice::ObjectPrx &  ,
const std::string &  ,
const Ice::Context &   
)
override

Definition at line 140 of file ApplicationNetworkStats.cpp.

◆ getThreadObserver()

Ice::Instrumentation::ThreadObserverPtr getThreadObserver ( const std::string &  ,
const std::string &  ,
Ice::Instrumentation::ThreadState  ,
const Ice::Instrumentation::ThreadObserverPtr &   
)
override

Definition at line 135 of file ApplicationNetworkStats.cpp.

◆ setApplicationName()

void setApplicationName ( )

◆ setObserverUpdater()

void setObserverUpdater ( const Ice::Instrumentation::ObserverUpdaterPtr &  upd)
override

Definition at line 150 of file ApplicationNetworkStats.cpp.

◆ setProfilerTopic()

void setProfilerTopic ( )

◆ start()

void start ( ProfilerListenerPrx  profiler,
const std::string &  applicationName 
)

Definition at line 75 of file ApplicationNetworkStats.cpp.

◆ stopTask()

void stopTask ( )

Definition at line 93 of file ApplicationNetworkStats.cpp.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: