Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

Hc_core_property_set

Команда предназначена для установки/изменения параметров кластера CORE.

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/core_property_set

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 201 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла запроса/ответа:

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="integerType">
        <xs:attribute  name="value" type="xs:integer" use="required"/>
    </xs:complexType>

          
    <xs:complexType name="booleanType">
        <xs:attribute  name="value" type="xs:boolean" use="required"/>
    </xs:complexType>

          
    <xs:complexType name="stringType">
        <xs:attribute  name="value" type="xs:string" use="required"/>
    </xs:complexType>

          
    <xs:simpleType name="ableValueType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="enable"/>
            <xs:enumeration value="disable"/>
            <xs:enumeration value="enable_cp"/>
            <xs:enumeration value="enable_spawn"/>
        </xs:restriction>
    </xs:simpleType>

          
    <xs:complexType name="ableType">
        <xs:attribute  name="value" type="ableValueType" use="required"/>
    </xs:complexType>

          
    <xs:simpleType name="normalValueType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="disabled"/>
                <xs:enumeration value="error"/>
                <xs:enumeration value="survive"/>
                <xs:enumeration value="normal"/>
            <xs:enumeration value="debug"/>
        </xs:restriction>
    </xs:simpleType>

          
    <xs:complexType name="normalType">
        <xs:attribute  name="value" type="normalValueType" use="required"/>
    </xs:complexType>

          
    <xs:simpleType name="noanswerCauseValueType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="normal"/>
            <xs:enumeration value="debug"/>
        </xs:restriction>
    </xs:simpleType>

          
    <xs:complexType name="noanswerCauseType">
        <xs:attribute  name="value" type="noanswerCauseValueType" use="required"/>
    </xs:complexType>

          
    <xs:complexType name="coreType">
        <xs:all>
            <xs:element name="amqp_core_realm" type="stringType" minOccurs="0" />
            <xs:element name="amqp_cp_ex" type="stringType" minOccurs="0" />
            <xs:element name="amqp_cp_execution_timeout" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cp_heartbeat_max_cnt" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cp_heartbeat_short_to" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cp_heartbeat_to" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cp_queue_lifetime" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cp_queue_overflow_warning" type="booleanType" minOccurs="0" />
            <xs:element name="amqp_cp_queue_size" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cpm_connection_timeout" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cpm_ex" type="stringType" minOccurs="0" />
            <xs:element name="amqp_cpm_qe" type="stringType" minOccurs="0" />
            <xs:element name="amqp_cpm_queue_lifetime" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cpm_queue_overflow_warning" type="booleanType"  minOccurs="0" />
            <xs:element name="amqp_cpm_queue_size" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cpm_rk" type="stringType" minOccurs="0" />
            <xs:element name="amqp_cprm_connection_timeout" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cprm_ex" type="stringType" minOccurs="0" />
            <xs:element name="amqp_cprm_qe" type="stringType" minOccurs="0" />
            <xs:element name="amqp_cprm_queue_lifetime" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cprm_queue_overflow_warning" type="booleanType" minOccurs="0" />
            <xs:element name="amqp_cprm_queue_size" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cprm_rk" type="stringType" minOccurs="0" />
            <xs:element name="amqp_cprm_ttl" type="integerType" minOccurs="0" />
            <xs:element name="amqp_cpm_ttl" type="integerType" minOccurs="0" />
            <xs:element name="core_sorm_enabled" type="booleanType" minOccurs="0" />
            <xs:element name="core_sorm_exchange" type="stringType" minOccurs="0" />
            <xs:element name="core_sorm_queue_lifetime" type="integerType"  minOccurs="0" />
            <xs:element name="core_sorm_queue_overflow_warning" type="booleanType" minOccurs="0" />
            <xs:element name="core_sorm_queue_size" type="integerType" minOccurs="0" />
            <xs:element name="core_sorm_routingkey" type="stringType" minOccurs="0" />
            <xs:element name="core_tts_enabled" type="booleanType" minOccurs="0" />
            <xs:element name="core_tts_exchange" type="stringType" minOccurs="0" />
            <xs:element name="core_tts_partial_cdr_timeout" type="integerType" minOccurs="0" />
            <xs:element name="core_tts_routingkey" type="stringType" minOccurs="0" />
            <xs:element name="count_down_rise" type="integerType" minOccurs="0" />
            <xs:element name="cp_mode_garbage_collector" type="ableType" minOccurs="0" />
            <xs:element name="cp_mode_send_release_ack" type="booleanType" minOccurs="0" />
            <xs:element name="cpm_count" type="integerType" minOccurs="0" />
            <xs:element name="cpm_count_poll_timer" type="integerType" minOccurs="0" />
            <xs:element name="cprm_count" type="integerType" minOccurs="0" />
            <xs:element name="cprm_count_poll_timer" type="integerType" minOccurs="0" />
            <xs:element name="durable_mode" type="normalType" minOccurs="0" />
            <xs:element name="feature_code_activation_digit" type="integerType" minOccurs="0" />
            <xs:element name="mq_establish_connection_to" type="integerType" minOccurs="0" />
            <xs:element name="noAnswerT" type="integerType" minOccurs="0" />
            <xs:element name="noMessageT" type="integerType" minOccurs="0" />
            <xs:element name="no_answer_cause" type="noanswerCauseType" minOccurs="0" />
            <xs:element name="reincarnation_interval" type="integerType" minOccurs="0" />
            <xs:element name="retentionO" type="integerType" minOccurs="0" />
            <xs:element name="suspendT" type="integerType" minOccurs="0" />
            <xs:element name="timer_ttl" type="integerType" minOccurs="0" />
            <xs:element name="tnoAnswerT" type="integerType" minOccurs="0" />
            <xs:element name="tsuspendT" type="integerType" minOccurs="0" />
            <xs:element name="ttl" type="integerType" minOccurs="0" />
        </xs:all>
        <xs:attribute  name="name" type="xs:string" use="required"/>
    </xs:complexType>

          
    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="core" type="coreType" minOccurs="1" maxOccurs="1"/>
            </xs:all>
        </xs:complexType>
    </xs:element>
</xs:schema>

Пример:

Запрос: http://192.168.23.34:9999/commands/core_property_set

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_property_set.xsd">
    <core name="core1">
         <ttl value="123" />
         <reincarnation_interval value="10" />
    </core>
</in>

Hc_core_property_clean

Команда предназначена для восстановления параметров кластера CORE, установленных по умолчанию.

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/core_property_clean

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 204 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла запроса/ответа:

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">    
    <xs:complexType name="coreType">
        <xs:sequence>
            <xs:element name = "property" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:attribute name="name" type="xs:string" use="required"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
        <xs:attribute  name="name" type="xs:string" use="required"/>
    </xs:complexType>

          
    <xs:element name="in">
        <xs:complexType>
            <xs:all>
                <xs:element name="core" type="coreType" minOccurs="1"/>
            </xs:all>
        </xs:complexType>
    </xs:element>
</xs:schema>

Пример:

Запрос: http://192.168.23.34:9999/commands/core_property_clean

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_property_clean.xsd">
    <core name = "core1">
        <property name="ttl" />
        <property name="timer_ttl" />
    </core>
</in>

Запрос: http://192.168.23.34:9999/commands/core_property_clean

Возвращает значения параметров кластера CORE к исходному виду:

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_property_clean.xsd">
    <core name = "core1" />
</in>

Hc_core_property_info

Команда предназначена для просмотра настроек подсистемы CORE.

Метод HTTP-запроса:

POST

Шаблон HTTP-запроса:

http://host:port/commands/core_property_info

Код HTTP-ответа:

При выполнении команды HTTP-терминал может ответить следующими сообщениями:

  • 200 – в случае успеха;
  • 404 – в случае ошибки.

XSD-схема XML-файла запроса/ответа:

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">    
    <xs:complexType name="coreType">
        <xs:attribute  name="name" type="xs:string" use="required"/>
        <xs:attribute  name="property" type="xs:string" use="optional"/>
    </xs:complexType>

          
    <xs:complexType name="integerType">
        <xs:attribute  name="value" type="xs:integer" use="required"/>
    </xs:complexType>

          
    <xs:complexType name="booleanType">
        <xs:attribute  name="value" type="xs:boolean" use="required"/>
    </xs:complexType>

          
    <xs:complexType name="stringType">
        <xs:attribute  name="value" type="xs:string" use="required"/>
    </xs:complexType>

          
    <xs:simpleType name="ableValueType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="enable"/>
            <xs:enumeration value="disable"/>
            <xs:enumeration value="enable_cp"/>
            <xs:enumeration value="enable_spawn"/>
        </xs:restriction>
    </xs:simpleType>

          
    <xs:complexType name="ableType">
        <xs:attribute  name="value" type="ableValueType" use="required"/>
    </xs:complexType>

          
    <xs:simpleType name="normalValueType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="disabled"/>
            <xs:enumeration value="error"/>
            <xs:enumeration value="survive"/>
            <xs:enumeration value="normal"/>
            <xs:enumeration value="debug"/>
        </xs:restriction>
    </xs:simpleType>

          
    <xs:complexType name="normalType">
        <xs:attribute  name="value" type="normalValueType" use="required"/>
    </xs:complexType>

          
    <xs:simpleType name="noanswerCauseValueType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="normal"/>
            <xs:enumeration value="debug"/>
        </xs:restriction>
    </xs:simpleType>

          
    <xs:complexType name="noanswerCauseType">
        <xs:attribute  name="value" type="noanswerCauseValueType" use="required"/>
    </xs:complexType>

          
    <xs:complexType name="propertyType">
        <xs:all>
            <xs:element name="amqp_core_realm" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cp_ex" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cp_execution_timeout" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cp_heartbeat_max_cnt" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cp_heartbeat_short_to" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cp_heartbeat_to" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cp_queue_lifetime" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cp_queue_overflow_warning" type="booleanType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cp_queue_size" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cpm_connection_timeout" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cpm_ex" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cpm_qe" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cpm_queue_lifetime" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cpm_queue_overflow_warning" type="booleanType"  minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cpm_queue_size" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cpm_rk" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cprm_connection_timeout" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cprm_ex" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cprm_qe" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cprm_queue_lifetime" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cprm_queue_overflow_warning" type="booleanType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cprm_queue_size" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cprm_rk" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cprm_ttl" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="amqp_cpm_ttl" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="core_sorm_enabled" type="booleanType" minOccurs="0" maxOccurs="1" />
            <xs:element name="core_sorm_exchange" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="core_sorm_queue_lifetime" type="integerType"  minOccurs="0" maxOccurs="1" />
            <xs:element name="core_sorm_queue_overflow_warning" type="booleanType" minOccurs="0" maxOccurs="1" />
            <xs:element name="core_sorm_queue_size" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="core_sorm_routingkey" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="core_tts_enabled" type="booleanType" minOccurs="0" maxOccurs="1" />
            <xs:element name="core_tts_exchange" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="core_tts_partial_cdr_timeout" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="core_tts_routingkey" type="stringType" minOccurs="0" maxOccurs="1" />
            <xs:element name="count_down_rise" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="cp_mode_garbage_collector" type="ableType" minOccurs="0" maxOccurs="1" />
            <xs:element name="cp_mode_send_release_ack" type="booleanType" minOccurs="0" maxOccurs="1" />
            <xs:element name="cpm_count" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="cpm_count_poll_timer" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="cprm_count" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="cprm_count_poll_timer" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="durable_mode" type="normalType" minOccurs="0" maxOccurs="1" />
            <xs:element name="feature_code_activation_digit" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="mq_establish_connection_to" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="noAnswerT" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="noMessageT" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="no_answer_cause" type="noanswerCauseType" minOccurs="0" maxOccurs="1" />
            <xs:element name="reincarnation_interval" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="retentionO" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="suspendT" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="timer_ttl" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="tnoAnswerT" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="tsuspendT" type="integerType" minOccurs="0" maxOccurs="1" />
            <xs:element name="ttl" type="integerType" minOccurs="0" maxOccurs="1" />
        </xs:all>
    </xs:complexType>

          
      <xs:element name="in">
          <xs:complexType>
            <xs:all>
                <xs:element name="core" type="coreType" minOccurs="1" maxOccurs="1"/>
            </xs:all>
            </xs:complexType>
      </xs:element>

          
    <xs:element name="out">
        <xs:complexType>
            <xs:all>
              <xs:element name="properties"  type="propertyType" minOccurs="0" maxOccurs="1"/> 
          </xs:all>
      </xs:complexType>
    </xs:element>
</xs:schema>

Пример:

Запрос: http://192.168.23.34:9999/commands/core_property_info

<?xml version="1.0" encoding="UTF-8"?>
<in xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="core_property_info.xsd">
    <core name = "core1" />
</in>

Ответ:

<?xml version="1.0"?>
<out xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="/home/surik/work/httpTerminal/lib/cocon_http_terminal/priv/xsd/core_property_info.xsd">
    <properties>
        <amqp_core_realm value="core_realm"/>
        <amqp_cp_ex value="ecss.call.data.ex"/>
        <amqp_cp_execution_timeout value="10"/>
        <amqp_cp_heartbeat_max_cnt value="3"/>
        <amqp_cp_heartbeat_short_to value="3000"/>
        <amqp_cp_heartbeat_to value="60000"/>
        <amqp_cp_queue_lifetime value="60000"/>
        <amqp_cp_queue_overflow_warning value="true"/>
        <amqp_cp_queue_size value="30"/>
        <amqp_cpm_connection_timeout value="30000"/>
        <amqp_cpm_ex value="ecss.call.control.ex"/>
        <amqp_cpm_qe value="ecss.core.init.q"/>
        <amqp_cpm_queue_lifetime value="60000"/>
        <amqp_cpm_queue_overflow_warning value="true"/>
        <amqp_cpm_queue_size value="10000"/>
        <amqp_cpm_rk value="ecss.core.init.rk"/>
        <amqp_cpm_ttl value="10000"/>
        <amqp_cprm_connection_timeout value="30000"/>
        <amqp_cprm_ex value="ecss.call.control.ex"/>
        <amqp_cprm_qe value="ecss.core.resurrect.q"/>
        <amqp_cprm_queue_lifetime value="60000"/>
        <amqp_cprm_queue_overflow_warning value="true"/>
        <amqp_cprm_queue_size value="10000"/>
        <amqp_cprm_rk value="ecss.core.resurrect.rk"/>
        <amqp_cprm_ttl value="10000"/>
        <core_sorm_enabled value="false"/>
        <core_sorm_exchange value="ecss.sorm.ex"/>
        <core_sorm_queue_lifetime value="60000"/>
        <core_sorm_queue_overflow_warning value="true"/>
        <core_sorm_queue_size value="30"/>
        <core_sorm_routingkey value="ecss.sorm.init.rk"/>
        <core_tts_enabled value="true"/>
        <core_tts_exchange value="ecss.tts.ex"/>
        <core_tts_partial_cdr_timeout value="600000"/>
        <core_tts_routingkey value="ecss.tts.init.rk"/>
        <count_down_rise value="5"/>
        <cp_mode_garbage_collector value="enable"/>
        <cp_mode_send_release_ack value="true"/>
        <cpm_count value="8"/>
        <cpm_count_poll_timer value="60000"/>
        <cprm_count value="4"/>
        <cprm_count_poll_timer value="60000"/>
        <durable_mode value="normal"/>
        <feature_code_activation_digit value="49"/>
        <mq_establish_connection_to value="5000"/>
        <noAnswerT value="3600000"/>
        <noMessageT value="50000"/>
        <no_answer_cause value="normal"/>
        <reincarnation_interval value="60"/>
        <retentionO value="300"/>
        <suspendT value="100"/>
        <timer_ttl value="3600000"/>
        <tnoAnswerT value="45000"/>
        <tsuspendT value="3600000"/>
        <ttl value="3600000"/>
    </properties>
</out>
  • Нет меток