C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
CPPCli::Configuration::Cluster Class Reference

The Cluster class represents cluster configuration attributes. This representation shall be identical within a cluster, regardless of the node it was retrieved from. More...

#include <Configuration.h>

Public Member Functions

 Cluster (VxSdk::IVxConfiguration::Cluster *vxConfigCluster)
 Constructor. More...
 
virtual ~Cluster ()
 Destructor. More...
 
 !Cluster ()
 Finaliser. More...
 
Results::Value Refresh ()
 Refreshes this instances properties. More...
 

Package Functions

System::Collections::Generic::List< Node^ >^ _GetNodeConfigurations ()
 
Time_GetTimeConfig ()
 

Package Attributes

VxSdk::IVxConfiguration::Cluster_configCluster
 

Properties

System::Collections::Generic::List< Node^ >^ NodeConfigurations [get]
 Gets the configuration for the nodes that the cluster is composed of. More...
 
Time^  TimeConfig [get]
 Gets the time configuration for the cluster. More...
 
System::String^  CoreVirtualIp [get]
 Gets virtual IP or hostname used for VideoXpert Core devices. More...
 
System::String^  MediaGatewayTranscast [get]
 Gets the default communication method between data sources to Media Gateways and between Media Gateways to clients. More...
 
System::String^  MediaGatewayVirtualIp [get]
 Gets the virtual IP or hostname used for Media Gateway devices. More...
 
System::String^  StatusDescription [get]
 Gets the current configuration status description. More...
 
int StatusCode [get]
 Gets the current configuration status code. More...
 
ConfigStatus Status [get]
 Gets the current configuration status of the entire cluster. More...
 

Detailed Description

The Cluster class represents cluster configuration attributes. This representation shall be identical within a cluster, regardless of the node it was retrieved from.

Definition at line 153 of file Configuration.h.

Constructor & Destructor Documentation

CPPCli::Configuration::Cluster::Cluster ( VxSdk::IVxConfiguration::Cluster vxConfigCluster)

Constructor.

Parameters
vxConfigClusterThe vx cluster configuration.

Definition at line 34 of file Configuration.cpp.

34  {
35  _configCluster = vxConfigCluster;
36 }
VxSdk::IVxConfiguration::Cluster * _configCluster
virtual CPPCli::Configuration::Cluster::~Cluster ( )
inlinevirtual

Destructor.

Definition at line 165 of file Configuration.h.

165  {
166  this->!Cluster();
167  }
Cluster(VxSdk::IVxConfiguration::Cluster *vxConfigCluster)
Constructor.
CPPCli::Configuration::Cluster::!Cluster ( )

Finaliser.

Definition at line 38 of file Configuration.cpp.

38  {
40  _configCluster = nullptr;
41 }
virtual VxResult::Value Delete() const =0
VxSdk::IVxConfiguration::Cluster * _configCluster

Member Function Documentation

System::Collections::Generic::List< CPPCli::Configuration::Node^ > CPPCli::Configuration::Cluster::_GetNodeConfigurations ( )
package

Definition at line 47 of file Configuration.cpp.

47  {
48  // Create a list of managed node objects
49  List<Node^>^ mlist = gcnew List<Node^>();
50  // Create a collection of unmanaged node objects
52 
53  // Make the GetNodeConfigurations call, which will return with the total count of nodes, this allows the client to allocate memory.
55  // Unless there are no nodes on the system, this should return VxSdk::VxResult::kInsufficientSize
56  if (result == VxSdk::VxResult::kInsufficientSize) {
57  // An array of pointers is allocated using the size returned by the previous GetNodeConfigurations call
58  nodes.collection = new VxSdk::IVxConfiguration::Node*[nodes.collectionSize];
59  result = _configCluster->GetNodeConfigurations(nodes);
60  // The result should now be kOK since we have allocated enough space
61  if (result == VxSdk::VxResult::kOK) {
62  for (int i = 0; i < nodes.collectionSize; i++)
63  mlist->Add(gcnew CPPCli::Configuration::Node(nodes.collection[i]));
64  }
65  // Remove the memory we previously allocated to the collection
66  delete[] nodes.collection;
67  }
68  return mlist;
69 }
virtual VxResult::Value GetNodeConfigurations(VxCollection< IVxConfiguration::Node ** > &nodeCollection) const =0
The Node class represents an individual host machine (a "node") within a cluster. ...
VxSdk::IVxConfiguration::Cluster * _configCluster
CPPCli::Configuration::Time CPPCli::Configuration::Cluster::_GetTimeConfig ( )
package

Definition at line 71 of file Configuration.cpp.

71  {
72  // Get the time config for the cluster
73  VxSdk::IVxConfiguration::Time* time = nullptr;
75 
76  // Return the time config if GetTimeConfig was successful
77  if (result == VxSdk::VxResult::kOK)
78  return gcnew CPPCli::Configuration::Time(time);
79 
80  return nullptr;
81 }
virtual VxResult::Value GetTimeConfig(IVxConfiguration::Time *&timeConfig) const =0
The Time class represents a time configuration.
Definition: Configuration.h:35
VxSdk::IVxConfiguration::Cluster * _configCluster
CPPCli::Results::Value CPPCli::Configuration::Cluster::Refresh ( )

Refreshes this instances properties.

Returns
The Result of updating the properties.

Definition at line 43 of file Configuration.cpp.

43  {
45 }
Value
Values that represent the result of calls to the VideoXpert system.
Definition: Utils.h:21
virtual VxResult::Value Refresh()=0
VxSdk::IVxConfiguration::Cluster * _configCluster

Member Data Documentation

VxSdk::IVxConfiguration::Cluster* CPPCli::Configuration::Cluster::_configCluster
package

Definition at line 254 of file Configuration.h.

Property Documentation

System:: String^ CPPCli::Configuration::Cluster::CoreVirtualIp
get

Gets virtual IP or hostname used for VideoXpert Core devices.

The VxCore virtual IP.

Definition at line 202 of file Configuration.h.

System:: String^ CPPCli::Configuration::Cluster::MediaGatewayTranscast
get

Gets the default communication method between data sources to Media Gateways and between Media Gateways to clients.

The communication method.

Definition at line 212 of file Configuration.h.

System:: String^ CPPCli::Configuration::Cluster::MediaGatewayVirtualIp
get

Gets the virtual IP or hostname used for Media Gateway devices.

The Media Gateway virtual IP.

Definition at line 221 of file Configuration.h.

System:: Collections:: Generic:: List< Node^>^ CPPCli::Configuration::Cluster::NodeConfigurations
get

Gets the configuration for the nodes that the cluster is composed of.

A List of node configurations.

Definition at line 184 of file Configuration.h.

ConfigStatus CPPCli::Configuration::Cluster::Status
get

Gets the current configuration status of the entire cluster.

The configuration status.

Definition at line 248 of file Configuration.h.

int CPPCli::Configuration::Cluster::StatusCode
get

Gets the current configuration status code.

The status code.

Definition at line 239 of file Configuration.h.

System:: String^ CPPCli::Configuration::Cluster::StatusDescription
get

Gets the current configuration status description.

The status description.

Definition at line 230 of file Configuration.h.

Time^ CPPCli::Configuration::Cluster::TimeConfig
get

Gets the time configuration for the cluster.

The time configuration.

Definition at line 193 of file Configuration.h.


The documentation for this class was generated from the following files: