TIBCO Adapter SDK C++ Reference
MSink
Class Hierarchy | C++ Classes and Methods | Members | Methods
The MSink abstract class defines locations that can receive messages from an MTrace. These locations can be files, TIBCO Rendezvous sessions, or other user-defined location.

The TIBCO Adapter SDK provides the three subclasses of MSink: MFileSink MRvSink, and MStdioSink. Applications can extend the list of available sinks by implementing, for example, a DbSink class or other subclasses.

To implement tracing, an application maps a trace to a sink by calling MTrace::addMapping(). Once the mapping has been created, messages sent to the MTrace object via its trace() method are automatically logged into the specified file (MFileSink) or sent out as a TIBCO Rendezvous message (MRvSink).

If you define an MSink with no roles, it is not created in memory until the role is added.

Related Method
MTrace::addMapping() Maps a trace and a sink.
Declaration
class MSink : public MComponent;
Class Hierarchy
MObject
    MComponent
        MSink
File
MSink.h
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.