collector and poller node add

This commit is contained in:
Aleksey Chichenkov 2018-12-03 18:01:13 +03:00
parent 00fea5ca4a
commit 6f28ac0f2a
3 changed files with 155 additions and 0 deletions

View File

@ -0,0 +1,23 @@
/** @typedef {v2.time_diff} TimeDiff */
/**
*
* @class time_diff
* @memberof v2
* @extends v2.ll.int64
* @extends v2.base
*/
function time_diff() {
}
time_diff.prototype = {
/**
*
* @public
* @function copy
* @memberof v2.time_diff
* @return {v2.time_diff}
*/
copy: function () {},
};

View File

@ -0,0 +1,19 @@
/**
* @class CollectorNode
* @extends Trees.RemoteModulesTree.Node
* @memberof Trees.RemoteModulesTree
*/
function CollectorNode() {
/**
* #### Возвращает адрес коллектора
*
* @public
* @function collector_addr
* @returns {v2.address}
* @memberof Trees.RemoteModulesTree.CollectorNode
*/
this.collector_addr = function () {
};
}

View File

@ -0,0 +1,113 @@
/**
* @class PollerNode
* @extends Trees.RemoteModulesTree.CollectorNode
* @memberof Trees.RemoteModulesTree
*/
function PollerNode() {
// discovery_type: v2.integer.from_number(0),
// /** @type */
// period: null,
// /** @type v2.string */
// ip_string: null,
// /** @type */
// retry_timeout: null,
// /** @type v2.address */
// parent_addr: null,
// /** @type */
// delay_start: null,
// /** @type v2.boolean */
// infinite: null,
// /** @type */
// max_retry_count: null,
// /** @type v2.boolean */
// force_rediscovery: null,
// /** @type v2.list<v2.integer> */
// profiles: null,
// /** @type v2.boolean */
// create_pingable: null
/**
* #### Запускает процесс дискаверинга по ICMP протоколу.
*
* __ _parameters - имеет следующую структуру__
* - period {@link TimeDiff}
* - ip_string {@link v2.string String}
* - retry_timeout {@link TimeDiff}
* - parent_addr {@link v2.address Address}
* - delay_start {@link TimeDiff}
* - infinite {@link v2.boolean Boolean}
* - max_retry_count {@link TimeDiff}
* - force_rediscovery {@link v2.boolean Boolean}
* - profiles {@link v2.list<v2.integer>}
* - create_pingable {@link v2.boolean Boolean}
*
* @public
* @function discovery_by_icmp
* @param {v2.vc} _parameters
* @memberof Trees.RemoteModulesTree.PollerNode
*/
this.discovery_by_icmp = function (_parameters) {
};
/**
* #### Запускает процесс дискаверинга по SNMP протоколу.
*
* __ _parameters - имеет следующую структуру__
* - period {@link TimeDiff}
* - ip_string {@link v2.string String}
* - retry_timeout {@link TimeDiff}
* - parent_addr {@link v2.address Address}
* - delay_start {@link TimeDiff}
* - infinite {@link v2.boolean Boolean}
* - max_retry_count {@link TimeDiff}
* - force_rediscovery {@link v2.boolean Boolean}
* - profiles {@link v2.list<v2.integer>}
* - create_pingable {@link v2.boolean Boolean}
*
* @public
* @function discovery_by_snmp
* @param {v2.vc} _parameters
* @memberof Trees.RemoteModulesTree.PollerNode
*/
this.discovery_by_snmp = function (_parameters) {
};
/**
* #### Запрос паблишера.
*
* @public
* @function get_publisher
* @param {v2.address} _address
* @memberof Trees.RemoteModulesTree.PollerNode
*/
this.get_publisher = function (_address) {
};
/**
* #### Запрос паблишера "discovery"
*
* @public
* @function discovery_results
* @memberof Trees.RemoteModulesTree.PollerNode
*/
this.discovery_results = function () {
};
}