NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::neuraylib::ICluster_descriptor Class Referenceabstract

This interface describes a cluster and its properties. More...

Inheritance diagram for mi::neuraylib::ICluster_descriptor:
Inheritance graph
[legend]

Public Member Functions

virtual const IString get_multicast_address () const =0
  Returns the multicast address reserved for the cluster. More...
 
virtual Float64  get_timeout () const =0
  Returns the keep-alive timeout for the cluster. More...
 
virtual const IMap get_properties () const =0
  Returns the properties of the cluster. More...
 
virtual Size  get_number_of_worker_nodes () const =0
  Returns the number of worker nodes in the cluster. More...
 
virtual const
IWorker_node_descriptor
get_worker_node (Size index) const =0
  Returns a descriptor for a worker node in the cluster. More...
 
virtual Size  get_number_of_client_nodes () const =0
  Returns the number of client nodes connected to the cluster. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0xf83a075b, 0xf3d1, 0x46a9, 0xb6, 0x75, 0x91, 0x10, 0x1c, 0xa3, 0x5a, 0x9f >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IInterface
Self
  Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
  Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0xf83a075b, 0xf3d1, 0x46a9, 0xb6, 0x75, 0x91, 0x10, 0x1c, 0xa3, 0x5a, 0x9f >
static bool  compare_iid (const Uuid &iid)
  Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 

Detailed Description

This interface describes a cluster and its properties.

Member Function Documentation

virtual const IString* mi::neuraylib::ICluster_descriptor::get_multicast_address ( ) const
pure virtual

Returns the multicast address reserved for the cluster.

This multicast address may be used for communication among the child processes running in that cluster. It may also be used by client nodes to communicate with these child processes.

Returns
The multicast address and port.
virtual Size mi::neuraylib::ICluster_descriptor::get_number_of_client_nodes ( ) const
pure virtual

Returns the number of client nodes connected to the cluster.

virtual Size mi::neuraylib::ICluster_descriptor::get_number_of_worker_nodes ( ) const
pure virtual

Returns the number of worker nodes in the cluster.

virtual const IMap* mi::neuraylib::ICluster_descriptor::get_properties ( ) const
pure virtual

Returns the properties of the cluster.

The type of the map is "Map<String>".

Returns
A map containing the properties associated with the cluster.
virtual Float64 mi::neuraylib::ICluster_descriptor::get_timeout ( ) const
pure virtual

Returns the keep-alive timeout for the cluster.

The keep-alive timeout specifies the amount of time (in seconds) the cluster will remain operational after the last client left the cluster.

See Also
mi::neuraylib::INode_manager_cluster::set_timeout()
virtual const IWorker_node_descriptor* mi::neuraylib::ICluster_descriptor::get_worker_node ( Size  index) const
pure virtual

Returns a descriptor for a worker node in the cluster.

Note
The set of worker nodes in the cluster can change at any time. That is, this function can return NULL even if index is smaller than the result of the last call to get_number_of_worker_nodes().
Parameters
index The index of the worker node (from 0 to get_number_of_worker_nodes()-1).
Returns
The descriptor for the specified worker node, or NULL if index is out of bounds.