LogCentralComponent_impl man page

LogCentralComponent_impl —

Synopsis

Inherits POA_LogCentralComponent, and RefCountServantBase.

Public Member Functions

LogCentralComponent_impl (ComponentList *componentList, FilterManagerInterface *filterManager, TimeBuffer *timeBuffer)

void test ()

CORBA::Short connectComponent (char *&componentName, const char *componentHostname, const char *message, const char *compConfigurator, const log_time_t &componentTime, tag_list_t &initialConfig)

CORBA::Short disconnectComponent (const char *componentName, const char *message)

void sendBuffer (const log_msg_buf_t &buffer)

bool isComponentExists (const char *name, ComponentList::ReadIterator *it)

void ping (const char *componentName)

void synchronize (const char *componentName, const log_time_t &componentTime)

Friends

class LogCentralComponent_impl::AliveCheckThread

Member Function Documentation

CORBA::Short LogCentralComponent_impl::connectComponent (char *& componentName, const char * componentHostname, const char * message, const char * compConfigurator, const log_time_t & componentTime, tag_list_t & initialConfig)

Connect a component to the LogCentral. The component attaches with its name, which must be unique (among all components) and its hostname (no need to be unique). If the name is an empty string, a name is generated. The return value indicates if the component could be connected. If ALREADYEXISTS is returned, another component with the given name is registered. In this case, the connection was not successful, and the tool must connect with a diferent name before invoking other functions of the LogCentralComponent interface.

Parameters:

componentName unique name of the component(cannot be *) or the empty string '' for automatic naming.
componentHostname hostname of the component
message message to pass to the tools at the connection
compConfigurator component servant which can process configuration changes for the component
componentTime localtime on the component side
initialConfig holds configuration for the components tag filter after the call.

Returns:

value indicating if the component could be connected

CORBA::Short LogCentralComponent_impl::disconnectComponent (const char * componentName, const char * message) [virtual]

Disconnect a connected component from the LogCentral. No further messages should be sent after disconnection. The componentConfigurator will no longer be used by the LogCentral after this call. Returns NOTCONNECTED if the calling component was not registered.

Parameters:

componentName name of the component
message message to pass to the tools at the disconnection

Returns:

value indicating if the component could be disconnected

Implements _impl_LogCentralComponent.

bool LogCentralComponent_impl::isComponentExists (const char * name, ComponentList::ReadIterator * it)

Tell if a component exists or not.

Parameters:

name name of the component to find

Returns:

true if the component exists

void LogCentralComponent_impl::ping (const char * componentName) [virtual]

To be called by a thread for saying that the component is still alive. If the last ping is too old, the component is considered dead and generate a disconnect message (OUT).

Parameters:

componentName the name of the component who send the ping

Implements _impl_LogCentralComponent.

void LogCentralComponent_impl::sendBuffer (const log_msg_buf_t & buffer)

Send a buffer of log_msg_t to the LogCentral.

Parameters:

buffer sequence of log_msg_t to be sent

void LogCentralComponent_impl::synchronize (const char * componentName, const log_time_t & componentTime)

To be called by a thread for clock synchronisation.

Parameters:

componentTime localtime on the component side
componentName the name of the component who send the synchro

Author

Generated automatically by Doxygen for LogService from the source code.

Info

Wed Feb 3 2016 LogService