neuray API Programmer's Manual

mi::neuraylib::IWorker_node_callback Class Reference

[Node manager]

Description

Abstract interface for signaling changed cluster members. Its aim is to be derived from by the application writer. The concrete implementation can then be registered with the neuray API and will after that be used by the .

Note:

Instances of this interface should not be created on the stack, since this might lead to premature destruction of such instances while still being in use by .

See also:

mi::neuraylib::INode_manager_cluster

Public Member Functions

virtual void membership_callback( IWorker_node_descriptor* worker_descriptor, bool flag) =0
This function is called when a worker node joined or left the cluster. More...

Member Functions

virtual void mi::​neuraylib::​IWorker_node_callback::membership_callback( IWorker_node_descriptor* worker_descriptor, bool flag) [pure virtual]

This function is called when a worker node joined or left the cluster. It should return as soon as possible because it may block further network operations.

Parameters

worker_descriptor
The descriptor of the worker node joining or leaving.
flag
true in case of a joining worker node , false in case of a leaving worker node.