RTI Connext Java API Version 7.3.0

Add contextual information to log messages. More...

Classes

class  ActivityContext
 Activity Context APIs. More...
 
class  ActivityContextAttributeKind
 The resources of the Activity Context can have multiple associated attributes. Those attributes provide extra information about the entity such as GUID prefix, Topic, data type, entity kind, entity name and domain ID. They are used to indicate what attributes of the resources are included in the activity context. More...
 

Functions

static void set_attribute_mask (int attribute_mask)
 Set the com.rti.ndds.config.ActivityContextAttributeKindMask of the Activity Context. More...
 

Detailed Description

Add contextual information to log messages.

The Activity Context is a group of resources and activities associated with an action such as the creation of an entity.

Logging context is one of the formats RTI Connext logging infrastructure supports. It is used by default in com.rti.ndds.config.LogPrintFormat.NDDS_CONFIG_LOG_PRINT_FORMAT_DEFAULT. It provides information about resources and activities. The activity context is used in two places:

For example, in the creation of a DataWriter, the activity context will provide information about:

The string representation of the above activity context would be:

[0X101A76B,0X79E5D71,0X50EE914:0X1C1:0X80000088{Entity=Pu,Name=TestPublisher,Domain=1}|CREATE Writer WITH TOPIC TestTopic]

Another example could be when a DataWriter writes a sample. The activity context will provide information about:

The string representation of the activity context will be:

[0X101A76B,0X79E5D71,0X50EE914:0X1C1:0X80000003{Name=testDataWriterName,Entity=DW,Topic=test,Type=Foo,Domain=1}|Write]

Function Documentation

◆ set_attribute_mask()

static void set_attribute_mask ( int  attribute_mask)
static

Set the com.rti.ndds.config.ActivityContextAttributeKindMask of the Activity Context.