neuray API Programmer's Manual

mi::neuraylib::IHead_node_callback Class Reference

[Node manager]

Description

Abstract interface for signaling a change of the cluster application head node. 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::get_head_node to retrieve the cluster head node.

Public Member Functions

virtual void head_node_callback( IWorker_node_descriptor* worker_descriptor) =0
This function is called when a cluster node becomes cluster head node. More...

Member Functions

virtual void mi::​neuraylib::​IHead_node_callback::head_node_callback( IWorker_node_descriptor* worker_descriptor) [pure virtual]

This function is called when a cluster node becomes cluster head node. This should not be confused with the head node in TCP networking as it is unrelated.

It should return as soon as possible because it may block further network operations.

Parameters

worker_descriptor
The descriptor of the cluster head node.