@joergmittaglawo/dmvconfig
Version:
DMV Configuration scripts for Lawo V__matrix Distributed Multiviewers.
177 lines (176 loc) • 8.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Enums = exports.ClusterNodeGlobalRuntimeAsTableRow = exports.ClusterNodeGlobalRuntime = exports.ClusterNodeGlobalRuntimeConfiguration = exports.ClusterNodeGlobalRuntimeStreamingPortConfigurationAsArrayRow = exports.ClusterNodeGlobalRuntimeStreamingPortConfiguration = exports.ClusterNodePortLLDPInfo = exports.ClusterNodePortEgress = exports.ClusterNodePortIngress = exports.ClusterNodeGlobalConfigurationAsNamedTableRow = exports.ClusterNodeGlobalConfiguration = exports.lower = exports.lift = void 0;
const VScript = require("vscript");
const _ClusterProcessors = require("./ClusterProcessors");
const _ClusterSources = require("./ClusterSources");
exports.lift = {
ClusterNodeGlobalRuntime: (kwl, socket) => kwl ? (new ClusterNodeGlobalRuntime(new VScript.Subtree(socket, kwl))) : null,
ClusterNodeGlobalRuntimeConfiguration: (kwl, socket) => kwl ? (new ClusterNodeGlobalRuntimeConfiguration(new VScript.Subtree(socket, kwl))) : null,
ClusterNodeGlobalRuntimeStreamingPortConfiguration: (kwl, socket) => kwl ? (new ClusterNodeGlobalRuntimeStreamingPortConfiguration(new VScript.Subtree(socket, kwl))) : null,
ClusterNodePortLLDPInfo: (kwl, socket) => kwl ? (new ClusterNodePortLLDPInfo(new VScript.Subtree(socket, kwl))) : null,
ClusterNodePortEgress: (kwl, socket) => kwl ? (new ClusterNodePortEgress(new VScript.Subtree(socket, kwl))) : null,
ClusterNodePortIngress: (kwl, socket) => kwl ? (new ClusterNodePortIngress(new VScript.Subtree(socket, kwl))) : null,
ClusterNodeGlobalConfiguration: (kwl, socket) => kwl ? (new ClusterNodeGlobalConfiguration(new VScript.Subtree(socket, kwl))) : null
};
exports.lower = {
ClusterNodeGlobalRuntime: (ref) => ref ? ref.raw.kwl : null,
ClusterNodeGlobalRuntimeConfiguration: (ref) => ref ? ref.raw.kwl : null,
ClusterNodeGlobalRuntimeStreamingPortConfiguration: (ref) => ref ? ref.raw.kwl : null,
ClusterNodePortLLDPInfo: (ref) => ref ? ref.raw.kwl : null,
ClusterNodePortEgress: (ref) => ref ? ref.raw.kwl : null,
ClusterNodePortIngress: (ref) => ref ? ref.raw.kwl : null,
ClusterNodeGlobalConfiguration: (ref) => ref ? ref.raw.kwl : null
};
class ClusterNodeGlobalConfiguration {
constructor(raw) {
this.raw = raw;
}
get mode() {
return new VScript.rwKeyword(this, "mode");
}
/**
IP address of the cluster node control
*/
get ctrl_ip_address() {
return new VScript.rwKeyword(this, "ctrl_ip_address");
}
}
exports.ClusterNodeGlobalConfiguration = ClusterNodeGlobalConfiguration;
class ClusterNodeGlobalConfigurationAsNamedTableRow extends ClusterNodeGlobalConfiguration {
constructor(raw_row, enclosing_table) {
super(new VScript.Subtree(raw_row.socket, raw_row.kwl));
this.raw_row = raw_row;
this.enclosing_table = enclosing_table;
this.index = raw_row.index;
}
async rename(name, opts) { await this.raw_row.rename(name, opts); }
async delete(opts) { await this.raw_row.delete(opts); }
}
exports.ClusterNodeGlobalConfigurationAsNamedTableRow = ClusterNodeGlobalConfigurationAsNamedTableRow;
class ClusterNodePortIngress {
constructor(raw) {
this.raw = raw;
}
get video() {
return new VScript.StronglyTypedTable(new VScript.Table(this.raw.socket, this.raw.full_kwl("video")), (row, enclosing_table) => new _ClusterSources.ClusterVideoSourceIDAsTableRow(row, enclosing_table));
}
get audio() {
return new VScript.StronglyTypedTable(new VScript.Table(this.raw.socket, this.raw.full_kwl("audio")), (row, enclosing_table) => new _ClusterSources.ClusterAudioSourceIDAsTableRow(row, enclosing_table));
}
get metadata() {
return new VScript.StronglyTypedTable(new VScript.Table(this.raw.socket, this.raw.full_kwl("metadata")), (row, enclosing_table) => new _ClusterSources.ClusterMetadataSourceIDAsTableRow(row, enclosing_table));
}
}
exports.ClusterNodePortIngress = ClusterNodePortIngress;
class ClusterNodePortEgress {
constructor(raw) {
this.raw = raw;
}
get video() {
return new VScript.StronglyTypedTable(new VScript.Table(this.raw.socket, this.raw.full_kwl("video")), (row, enclosing_table) => new _ClusterSources.ClusterVideoSourceIDAsTableRow(row, enclosing_table));
}
}
exports.ClusterNodePortEgress = ClusterNodePortEgress;
class ClusterNodePortLLDPInfo {
constructor(raw) {
this.raw = raw;
}
/**
MAC address, stored in big-endian order.
*/
get chassis_id() {
return new VScript.rKeyword(this, "chassis_id");
}
/**
MAC address, stored in big-endian order.
*/
get port_id() {
return new VScript.rKeyword(this, "port_id");
}
get interface_name() {
return new VScript.rKeyword(this, "interface_name");
}
}
exports.ClusterNodePortLLDPInfo = ClusterNodePortLLDPInfo;
class ClusterNodeGlobalRuntimeStreamingPortConfiguration {
constructor(raw) {
this.raw = raw;
}
get max_bandwidth() {
return new VScript.rKeyword(this, "max_bandwidth");
}
/**
Streaming Port IP address
*/
get ip_address() {
return new VScript.rKeyword(this, "ip_address");
}
get lldp_info() {
return new ClusterNodePortLLDPInfo(this.raw.find("lldp_info"));
}
get ingress() {
return new ClusterNodePortIngress(this.raw.find("ingress"));
}
get egress() { return new ClusterNodePortEgress(this.raw.find("egress")); }
}
exports.ClusterNodeGlobalRuntimeStreamingPortConfiguration = ClusterNodeGlobalRuntimeStreamingPortConfiguration;
class ClusterNodeGlobalRuntimeStreamingPortConfigurationAsArrayRow extends ClusterNodeGlobalRuntimeStreamingPortConfiguration {
constructor(st, index, parent) {
super(st);
this.index = index;
this.parent = parent;
}
}
exports.ClusterNodeGlobalRuntimeStreamingPortConfigurationAsArrayRow = ClusterNodeGlobalRuntimeStreamingPortConfigurationAsArrayRow;
class ClusterNodeGlobalRuntimeConfiguration {
constructor(raw) {
this.raw = raw;
}
get sdi_inputs_num() {
return new VScript.rKeyword(this, "sdi_inputs_num");
}
get sdi_outputs_num() {
return new VScript.rKeyword(this, "sdi_outputs_num");
}
get mipmaps_dual_input_stages_num() {
return new VScript.rKeyword(this, "mipmaps_dual_input_stages_num");
}
}
exports.ClusterNodeGlobalRuntimeConfiguration = ClusterNodeGlobalRuntimeConfiguration;
class ClusterNodeGlobalRuntime {
constructor(raw) {
this.raw = raw;
}
get connection_status() {
return new VScript.rKeyword(this, "connection_status");
}
get multicast_connection_status() {
return new VScript.rKeyword(this, "multicast_connection_status");
}
get configuration() {
return new ClusterNodeGlobalRuntimeConfiguration(this.raw.find("configuration"));
}
get routed_sources() {
return new _ClusterSources.ClusterSourcesLocalRuntime(this.raw.find("routed_sources"));
}
get routed_processors() {
return new _ClusterProcessors.ClusterProcessorsLocalConfiguration(this.raw.find("routed_processors"));
}
get streaming_ports() {
return new VScript.StronglyTypedArray(this, "streaming_ports", (st, index, parent) => new ClusterNodeGlobalRuntimeStreamingPortConfigurationAsArrayRow(st, index, parent));
}
}
exports.ClusterNodeGlobalRuntime = ClusterNodeGlobalRuntime;
class ClusterNodeGlobalRuntimeAsTableRow extends ClusterNodeGlobalRuntime {
constructor(raw_row, enclosing_table) {
super(new VScript.Subtree(raw_row.socket, raw_row.kwl));
this.enclosing_table = enclosing_table;
this.index = raw_row.index;
}
}
exports.ClusterNodeGlobalRuntimeAsTableRow = ClusterNodeGlobalRuntimeAsTableRow;
exports.Enums = {
NODECONNECTIONSTATUS: ["CONNECTED", "DISCONNECTED"],
NODEMODE: ["MASTER", "SLAVE"]
};