LogService
libdadi: utility tools for distributed applications
|
#include <LogCentralTool_impl.hh>
Public Member Functions | |
LogCentralTool_impl (ToolList *toolList, ComponentList *compList, FilterManagerInterface *filterMan, StateManager *stateMan, tag_list_t *allTags) | |
void | test () |
CORBA::Short | connectTool (char *&toolName, const char *msgReceiver) |
CORBA::Short | disconnectTool (const char *toolName) |
tag_list_t * | getDefinedTags () |
component_list_t * | getDefinedComponents () |
CORBA::Short | addFilter (const char *toolName, const filter_t &filter) |
CORBA::Short | removeFilter (const char *toolName, const char *filterName) |
CORBA::Short | flushAllFilters (const char *toolName) |
![]() | |
inline::LogCentralTool_ptr | _this () |
![]() | |
virtual ::CORBA::Short | addFilter (const char *toolName, const ::filter_t &filter)=0 |
virtual _CORBA_Boolean | _dispatch (omniCallHandle &) |
Errorlevel constants for connectComponent (defined in the idl) const short LS_OK const short LS_TOOL_CONNECT_ALREADYEXISTS const short LS_TOOL_DISCONNECT_NOTEXISTS const short LS_TOOL_ADDFILTER_ALREADYEXISTS const short LS_TOOL_REMOVEFILTER_NOTEXISTS Implements the tool servant for the logCentral. Attaches and detaches tools and forwards their filter-configurations to the FilterManager
CORBA::Short LogCentralTool_impl::addFilter | ( | const char * | toolName, |
const filter_t & | filter | ||
) |
Add a (posivive) filter for this tool. Messages matching this filter will be forwarded to the tool.
toolName | the name of the tool, which adds the filter |
filter | the filterconfiguration containing the filtername, a list of tags and a list of components |
|
virtual |
Connects a new Tool to the monitor. Registers the tool internally with its unique toolName and creates all necessary outbuffers, ... Provides a unique name for the tool if the given toolName is the empty string. (Attention: the omniidl is buggy for string INOUT. The String_INOUT_arg of the LogTool.hh must be replaced by char*&)
toolName | the unique name of the tool |
msgReceiver | messageConsumer of the tool, which processes incoming messages for the tool |
Implements _impl_LogCentralTool.
|
virtual |
Disconnect a tool from the monitor. Remove the tools filters and deregister tool.
toolName | the unique name of the tool |
Implements _impl_LogCentralTool.
|
virtual |
Remove all existing filters of the tool.
toolName | the name of the tool whose filterlist will be cleared |
Implements _impl_LogCentralTool.
|
virtual |
Returns a list of currently attached components. This is just a convenience function, as all the whole systemstate including all components are sent to the tool upon connection in form of messages.
Implements _impl_LogCentralTool.
|
virtual |
Returns a list of configured tags. This is just a convenience function. It relies on the configuration of the monitor and must not reflect the real system.
Implements _impl_LogCentralTool.
|
virtual |
Remove a existing filter from the list.
toolName | the name of the tool who added the filter |
filterName | the name of the filter |
Implements _impl_LogCentralTool.