activemq-artemis/docs/user-manual/zh/configuration-index.xml

1285 lines
72 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!-- ============================================================================= -->
<!-- Copyright © 2009 Red Hat, Inc. and others. -->
<!-- -->
<!-- The text of and illustrations in this document are licensed by Red Hat under -->
<!-- a Creative Commons AttributionShare Alike 3.0 Unported license ("CC-BY-SA"). -->
<!-- -->
<!-- An explanation of CC-BY-SA is available at -->
<!-- -->
<!-- http://creativecommons.org/licenses/by-sa/3.0/. -->
<!-- -->
<!-- In accordance with CC-BY-SA, if you distribute this document or an adaptation -->
<!-- of it, you must provide the URL for the original version. -->
<!-- -->
<!-- Red Hat, as the licensor of this document, waives the right to enforce, -->
<!-- and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent -->
<!-- permitted by applicable law. a -->
<!-- ============================================================================= -->
<chapter id="configuration-index">
<title>配置参数索引</title>
<para>本章给出了HornetQ配置参数的索引以便查阅。点击任意一个配置参数可以转到其所属的章节。</para>
<section id="server.configuration">
<title>服务器配置</title>
<section>
<title>hornetq-configuration.xml</title>
<para>HornetQ主要核心服务器配置文件</para>
<table frame="topbot" border="2">
<title>服务器配置</title>
<tgroup cols="4">
<colspec colname="c1" colnum="1"/>
<colspec colname="c2" colnum="2"/>
<colspec colname="c3" colnum="3"/>
<colspec colname="c4" colnum="4"/>
<thead>
<row>
<entry>名称</entry>
<entry>类型</entry>
<entry>说明</entry>
<entry>默认值</entry>
</row>
</thead>
<tbody>
<row>
<entry><link linkend="configuring.live.backup">backup</link></entry>
<entry>Boolean</entry>
<entry>true表示本服务器是集群中另一个服务器的备份服务器</entry>
<entry>false</entry>
</row>
<row>
<entry><link linkend="configuring.live.backup"
>backup-connector-ref</link></entry>
<entry>String</entry>
<entry>用于连接备份服务器的连接器</entry>
<entry/>
</row>
<row>
<entry><link linkend="configuring.bindings.journal"
>bindings-directory</link></entry>
<entry>String</entry>
<entry>保存持久绑定的目录the directory to store the persisted bindings to</entry>
<entry>data/bindings</entry>
</row>
<row>
<entry><link linkend="clusters">clustered</link></entry>
<entry>Boolean</entry>
<entry>true表示服务器是集群中的节点</entry>
<entry>false</entry>
</row>
<row>
<entry><link linkend="connection-ttl"
>connection-ttl-override</link></entry>
<entry>Long</entry>
<entry>表示在接收到一个ping之前连接保持有效的时间单位毫秒</entry>
<entry>-1</entry>
</row>
<row>
<entry><link linkend="configuring.bindings.journal"
>create-bindings-dir</link></entry>
<entry>Boolean</entry>
<entry>true表示服务器在启动时创建绑定的目录</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="configuring.message.journal.create-journal-dir"
>create-journal-dir</link></entry>
<entry>Boolean</entry>
<entry>true表示创建日志目录</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="using-server.configuration"
>file-deployment-enabled</link></entry>
<entry>Boolean</entry>
<entry>true表示服务器从配置文件中读取配置</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="duplicate.id.cache">id-cache-size</link></entry>
<entry>Integer</entry>
<entry>预先生成的消息id的缓存大小</entry>
<entry>2000</entry>
</row>
<row>
<entry><link
linkend="configuring.message.journal.journal-buffer-size"
>journal-buffer-size</link></entry>
<entry>Long</entry>
<entry>日志内部缓存的大小</entry>
<entry>128 KiB</entry>
</row>
<row>
<entry><link
linkend="configuring.message.journal.journal-buffer-timeout"
>journal-buffer-timeout</link></entry>
<entry>Long</entry>
<entry>T将日志缓冲数据刷新的等待时间纳秒</entry>
<entry>20000</entry>
</row>
<row>
<entry><link
linkend="configuring.message.journal.journal-compact-min-files"
>journal-compact-min-files</link></entry>
<entry>Integer</entry>
<entry>开始整理数据的最小数据文件数。</entry>
<entry>10</entry>
</row>
<row>
<entry><link
linkend="configuring.message.journal.journal-compact-percentage"
>journal-compact-percentage</link></entry>
<entry>Integer</entry>
<entry>开始压缩日志时的有效数据百分比。</entry>
<entry>30</entry>
</row>
<row>
<entry><link linkend="configuring.message.journal.journal-directory"
>journal-directory</link></entry>
<entry>String</entry>
<entry>日志文件所在的位置</entry>
<entry>data/journal</entry>
</row>
<row>
<entry><link linkend="configuring.message.journal.journal-file-size"
>journal-file-size</link></entry>
<entry>Long</entry>
<entry>每个日志文件的大小(字节)</entry>
<entry>128 * 1024</entry>
</row>
<row>
<entry><link linkend="configuring.message.journal.journal-max-io"
>journal-max-io</link></entry>
<entry>Integer</entry>
<entry>某一时刻保存在AIO队列中的最大写请求数</entry>
<entry>500</entry>
</row>
<row>
<entry><link linkend="configuring.message.journal.journal-min-files"
>journal-min-files</link></entry>
<entry>Integer</entry>
<entry>预先创建的日志文件数</entry>
<entry>2</entry>
</row>
<row>
<entry><link
linkend="configuring.message.journal.journal-sync-transactional"
>journal-sync-transactional</link></entry>
<entry>Boolean</entry>
<entry>如果是true等事务数据同步到日志后再向客户端返回</entry>
<entry>true</entry>
</row>
<row>
<entry><link
linkend="configuring.message.journal.journal-sync-non-transactional"
>journal-sync-non-transactional</link></entry>
<entry>Boolean</entry>
<entry>如果是true等非事务数据到日志后再向客户端返回</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="configuring.message.journal.journal-type"
>journal-type</link></entry>
<entry>ASYNCIO|NIO</entry>
<entry>日志存取的方式</entry>
<entry>ASYNCIO</entry>
</row>
<row>
<entry><link linkend="management.jmx.configuration"
>jmx-management-enabled</link></entry>
<entry>Boolean</entry>
<entry>true表示通过JMX可以使用管理接口</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="management.jmx.configuration"
>jmx-domain</link></entry>
<entry>String</entry>
<entry>用于HornetQ MBean注册到MBeanServer的JMX域名</entry>
<entry>org.apache.activemq</entry>
</row>
<row>
<entry><link linkend="large.message.configuring"
>large-messages-directory</link></entry>
<entry>String</entry>
<entry>存放大消息的目录</entry>
<entry>data/largemessages</entry>
</row>
<row>
<entry><link linkend="management.core.configuration"
>management-address</link></entry>
<entry>String</entry>
<entry>管理消息发送的地址</entry>
<entry>jms.queue.hornetq.management</entry>
</row>
<row>
<entry><link linkend="clusters.clusteruser"
>cluster-user</link></entry>
<entry>String</entry>
<entry>集群连接的用户名</entry>
<entry>HORNETQ.CLUSTER.ADMIN.USER</entry>
</row>
<row>
<entry><link linkend="clusters.clusteruser"
>cluster-password</link></entry>
<entry>String</entry>
<entry>集群连接的用户密码</entry>
<entry>CHANGE ME!!</entry>
</row>
<row>
<entry><link linkend="management.notifications.core.configuration"
>management-notification-address</link></entry>
<entry>String</entry>
<entry>用于接收管理通知的地址</entry>
<entry>hornetq.notifications</entry>
</row>
<row>
<entry><link linkend="configuring.message.counters"
>message-counter-enabled</link></entry>
<entry>Boolean</entry>
<entry>true表示使用消息计数器</entry>
<entry>false</entry>
</row>
<row>
<entry><link linkend="configuring.message.counters"
>message-counter-max-day-history</link></entry>
<entry>Integer</entry>
<entry>消息计数器历史保存的天数</entry>
<entry>10</entry>
</row>
<row>
<entry><link linkend="configuring.message.counters"
>message-counter-sample-period</link></entry>
<entry>Long</entry>
<entry>消息计数器取样的间隔(毫秒)</entry>
<entry>10000</entry>
</row>
<row>
<entry><link linkend="configuring.expiry.reaper"
>message-expiry-scan-period</link></entry>
<entry>Long</entry>
<entry>过期消息扫描周期(毫秒)</entry>
<entry>30000</entry>
</row>
<row>
<entry><link linkend="configuring.expiry.reaper"
>message-expiry-thread-priority</link></entry>
<entry>Integer</entry>
<entry>过期消息线程的优先级</entry>
<entry>3</entry>
</row>
<row>
<entry><link linkend="paging.main.config"
>paging-directory</link></entry>
<entry>String</entry>
<entry>分页转存消息的保存目录</entry>
<entry>data/paging</entry>
</row>
<row>
<entry><link linkend="configuring.delivery.count.persistence">
persist-delivery-count-before-delivery</link></entry>
<entry>Boolean</entry>
<entry>true表示传递计数在传递之前保存。false表示只有当消息被取消时才保存。</entry>
<entry>false</entry>
</row>
<row>
<entry><link linkend="persistence.enabled"
>persistence-enabled</link></entry>
<entry>Boolean</entry>
<entry>true表示服务器使用基于文件的日志做持久化</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="duplicate.id.cache"
>persist-id-cache</link></entry>
<entry>Boolean</entry>
<entry>true表示id被保存到日志中</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="server.scheduled.thread.pool"
>scheduled-thread-pool-max-size</link></entry>
<entry>Integer</entry>
<entry>可计划线程池的线程数。</entry>
<entry>5</entry>
</row>
<row>
<entry><link linkend="security">security-enabled</link></entry>
<entry>Boolean</entry>
<entry>true表示使用安全功能</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="security"
>security-invalidation-interval</link></entry>
<entry>Long</entry>
<entry>安全缓存的有效时间(毫秒)</entry>
<entry>10000</entry>
</row>
<row>
<entry><link linkend="server.scheduled.thread.pool"
>thread-pool-max-size</link></entry>
<entry>Integer</entry>
<entry>主线程池的线程数。-1表示数量不限</entry>
<entry>-1</entry>
</row>
<row>
<entry><link linkend="connection-ttl.async-connection-execution"
>async-connection-execution-enabled</link></entry>
<entry>Boolean</entry>
<entry>接收的数据包是否由线程池的线程来处理</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="transaction-config"
>transaction-timeout</link></entry>
<entry>Long</entry>
<entry>事务在建立后经过多长时间后可以从资源管理器resource manager删除毫秒</entry>
<entry>60000</entry>
</row>
<row>
<entry><link linkend="transaction-config"
>transaction-timeout-scan-period</link></entry>
<entry>Long</entry>
<entry>扫描超时事务的间隔(毫秒)</entry>
<entry>1000</entry>
</row>
<row>
<entry><link linkend="wildcard-routing"
>wild-card-routing-enabled</link></entry>
<entry>Boolean</entry>
<entry>true表示服务器支持通配符路由</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="perf-tuning.memory"
>memory-measure-interval</link></entry>
<entry>Long</entry>
<entry>采样JVM内存的周期毫秒-1表示不采样</entry>
<entry>-1</entry>
</row>
<row>
<entry><link linkend="perf-tuning.memory"
>memory-warning-threshold</link></entry>
<entry>Integer</entry>
<entry>可用内存达到这个百分比时,给出警告信息</entry>
<entry>25</entry>
</row>
<row>
<entry><link linkend="configuring-transports.connectors"
>connectors</link></entry>
<entry>Connector</entry>
<entry>连接器的配置</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.acceptors">connector.name (attribute)</link></entry>
<entry>String</entry>
<entry>连接器的名字-必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.connectors">connector.factory-class</link></entry>
<entry>String</entry>
<entry>连接工厂的实现类名-必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.connectors">connector.param</link></entry>
<entry>连接器的配置参数</entry>
<entry>一个键-值对,表示一个连接器的参数配置。一个连接器可以有多个这样的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.connectors">connector.param.key (属性)</link></entry>
<entry>String</entry>
<entry>参数的键 - 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.connectors">connector.param.value (attribute)</link></entry>
<entry>String</entry>
<entry>参数的值 - 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.acceptors">acceptors</link></entry>
<entry>Acceptor</entry>
<entry>一组接收器</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.acceptors">acceptor.name (属性)</link></entry>
<entry>String</entry>
<entry>接收器的名字 可选</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.acceptors">acceptor.factory-class</link></entry>
<entry>String</entry>
<entry>接收器工厂实现类名 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.acceptors">acceptor.param</link></entry>
<entry>一个接收器的配置参数</entry>
<entry>用来配置接收器的键-值对。一个接收器可以有多个参数。</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.acceptors">acceptor.param.key (属性)</link></entry>
<entry>String</entry>
<entry>参数的键 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="configuring-transports.acceptors">acceptor.param.value (attribute)</link></entry>
<entry>String</entry>
<entry>参数的值 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry><link linkend="clusters.broadcast-groups"
>broadcast-groups</link></entry>
<entry>BroadcastGroup</entry>
<entry>一组广播组</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="clusters.broadcast-groups">broadcast-group.name (attribute)</link>
</entry>
<entry>String</entry>
<entry>广播组的名字(必需是唯一的)- 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="clusters.broadcast-groups">broadcast-group.local-bind-address</link>
</entry>
<entry>String</entry>
<entry>数据报文套接字的本地绑定地址</entry>
<entry>内系统内核选择的IP地址</entry>
</row>
<row>
<entry>
<link linkend="clusters.broadcast-groups">broadcast-group.local-bind-port</link>
</entry>
<entry>Integer</entry>
<entry>数据报文套接字的本地绑定端口</entry>
<entry>-1 (匿名端口)</entry>
</row>
<row>
<entry>
<link linkend="clusters.broadcast-groups">broadcast-group.group-address</link>
</entry>
<entry>String</entry>
<entry>广播地址 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="clusters.broadcast-groups">broadcast-group.group-port</link>
</entry>
<entry>Integer</entry>
<entry>广播使用的UDP端口 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="clusters.broadcast-groups">broadcast-group.broadcast-period</link>
</entry>
<entry>Long</entry>
<entry>广播的时间间隔(毫秒)</entry>
<entry>2000</entry>
</row>
<row>
<entry>
<link linkend="clusters.broadcast-groups">broadcast-group.connector-ref</link>
</entry>
<entry>一个连接器对</entry>
<entry>广播的一个连接器和一个可选的备份连接器。一个广播组可以有多个这样的连接器对</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="clusters.broadcast-groups">broadcast-group.connector-ref.connector-name (attribute)</link>
</entry>
<entry>String</entry>
<entry>主连接器名 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="clusters.broadcast-groups">broadcast-group.connector-ref.backup-connector-name (attribute)</link>
</entry>
<entry>String</entry>
<entry>备份连接器名 可选的参数</entry>
<entry/>
</row>
<row>
<entry><link linkend="clusters.discovery-groups"
>discovery-groups</link></entry>
<entry>DiscoveryGroup</entry>
<entry>一组发现组</entry>
<entry/>
</row>
<row>
<entry><link linkend="clusters.discovery-groups"
>discovery-group.name (属性)</link></entry>
<entry>String</entry>
<entry>发现组的名字(具有唯一性) 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry>
<link linkend="clusters.discovery-groups">discovery-group.local-bind-address</link>
</entry>
<entry>String</entry>
<entry>发现组所绑定的本地地址</entry>
<entry/>
</row>
<row>
<entry id="configuration.discovery-group.group-address">
<link linkend="clusters.discovery-groups">discovery-group.group-address</link>
</entry>
<entry>String</entry>
<entry>发现组监听的广播IP地址 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry id="configuration.discovery-group.group-port">
<link linkend="clusters.discovery-groups">discovery-group.group-port</link>
</entry>
<entry>Integer</entry>
<entry>广播组监听的UDP端口 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry id="configuration.discovery-group.refresh-timeout">
<link linkend="clusters.discovery-groups">discovery-group.refresh-timeout</link>
</entry>
<entry>Integer</entry>
<entry>发现组等待更新的时间。如果某个服务器上次广播到达后经过这个时间后还没有收到下次广播,那么
该服务器的连接器对将从列表中删除</entry>
<entry>5000 (毫秒)</entry>
</row>
<row>
<entry><link linkend="diverts">diverts</link></entry>
<entry>Divert</entry>
<entry>一组转发器</entry>
<entry/>
</row>
<row>
<entry><link linkend="diverts">divert.name (attribute)</link></entry>
<entry>String</entry>
<entry>转发器的名字(必需是唯一的) 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry><link linkend="diverts">divert.routing-name</link></entry>
<entry>String</entry>
<entry>转发器的路由名称 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry><link linkend="diverts">divert.address</link></entry>
<entry>String</entry>
<entry>转发器的源地址 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry><link linkend="diverts">divert.forwarding-address</link></entry>
<entry>String</entry>
<entry>转发器的转发地址 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry><link linkend="diverts">divert.exclusive</link></entry>
<entry>Boolean</entry>
<entry>转发器是否是唯一的</entry>
<entry>false</entry>
</row>
<row>
<entry><link linkend="diverts">divert.filter</link></entry>
<entry>String</entry>
<entry>可选的核心过滤器表达式</entry>
<entry>null</entry>
</row>
<row>
<entry><link linkend="diverts"
>divert.transformer-class-name</link></entry>
<entry>String</entry>
<entry>可选的转换器的名字</entry>
<entry/>
</row>
<row>
<entry><link linkend="predefined.queues">queues</link></entry>
<entry>Queue</entry>
<entry>一组预先配置的队列</entry>
<entry/>
</row>
<row>
<entry><link linkend="predefined.queues">queues.name
(属性)</link></entry>
<entry>String</entry>
<entry>队列独特的名字</entry>
<entry/>
</row>
<row>
<entry><link linkend="predefined.queues">queues.address</link></entry>
<entry>String</entry>
<entry>队列的地址 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry><link linkend="predefined.queues">queues.filter</link></entry>
<entry>String</entry>
<entry>队列可选的核心过滤器表达式</entry>
<entry>null</entry>
</row>
<row>
<entry><link linkend="predefined.queues">queues.durable</link></entry>
<entry>Boolean</entry>
<entry>是否持久队列</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="core-bridges">bridges</link></entry>
<entry>Bridge</entry>
<entry>一组桥</entry>
<entry/>
</row>
<row>
<entry><link linkend="core-bridges">bridges.name
(属性)</link></entry>
<entry>String</entry>
<entry>桥的独特名字</entry>
<entry/>
</row>
<row>
<entry><link linkend="core-bridges">bridges.queue-name</link></entry>
<entry>String</entry>
<entry>桥接收消息的源队列名 必需指定的参数</entry>
<entry/>
</row>
<row>
<entry><link linkend="core-bridges"
>bridges.forwarding-address</link></entry>
<entry>String</entry>
<entry>桥要转发的地址。如果没有指定则使用原始的地址</entry>
<entry>null</entry>
</row>
<row>
<entry><link linkend="core-bridges">bridges.filter</link></entry>
<entry>String</entry>
<entry>可选的核心过滤器表达式</entry>
<entry>null</entry>
</row>
<row>
<entry><link linkend="core-bridges"
>bridges.transformer-class-name</link></entry>
<entry>String</entry>
<entry>可选的转换器类名</entry>
<entry>null</entry>
</row>
<row>
<entry><link linkend="core-bridges"
>bridges.retry-interval</link></entry>
<entry>Long</entry>
<entry>重试的时间间隔(毫秒)</entry>
<entry>2000 ms</entry>
</row>
<row>
<entry><link linkend="core-bridges"
>bridges.retry-interval-multiplier</link></entry>
<entry>Double</entry>
<entry>重试间隔的递增系数</entry>
<entry>1.0</entry>
</row>
<row>
<entry><link linkend="core-bridges"
>bridges.reconnect-attempts</link></entry>
<entry>Integer</entry>
<entry>最大重试次数,-1代表无限次</entry>
<entry>-1</entry>
</row>
<row>
<entry><link linkend="core-bridges"
>bridges.failover-on-server-shutdown</link></entry>
<entry>Boolean</entry>
<entry>如果目标服务器正常关机是否仍进行失效备援</entry>
<entry>false</entry>
</row>
<row>
<entry><link linkend="core-bridges"
>bridges.use-duplicate-detection</link></entry>
<entry>Boolean</entry>
<entry>是否在转发的消息中添加重复检测的头</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="core-bridges"
>bridges.discovery-group-ref</link></entry>
<entry>String</entry>
<entry>桥使用的发现组名</entry>
<entry>null</entry>
</row>
<row>
<entry><link linkend="core-bridges">bridges.connector-ref.connector-name
(属性)</link></entry>
<entry>String</entry>
<entry>主连接的连接器名</entry>
<entry/>
</row>
<row>
<entry><link linkend="core-bridges"
>bridges.connector-ref.backup-connector-name
(属性)</link></entry>
<entry>String</entry>
<entry>备份连接的连接器名(可选)</entry>
<entry>null</entry>
</row>
<row>
<entry><link linkend="clusters.cluster-connections"
>cluster-connections</link></entry>
<entry>ClusterConnection</entry>
<entry>一组集群连接</entry>
<entry/>
</row>
<row>
<entry><link linkend="clusters.cluster-connections"
>cluster-connections.name (attribute)</link></entry>
<entry>String</entry>
<entry>集群连接的独特名字</entry>
<entry/>
</row>
<row>
<entry><link linkend="clusters.cluster-connections"
>cluster-connections.address</link></entry>
<entry>String</entry>
<entry>集群连接的地址名</entry>
<entry/>
</row>
<row>
<entry><link linkend="clusters.cluster-connections"
>cluster-connections.forward-when-no-consumers</link></entry>
<entry>Boolean</entry>
<entry>如果目标没有合适的接收者,是否仍然向它分配消息?</entry>
<entry>false</entry>
</row>
<row>
<entry><link linkend="clusters.cluster-connections"
>cluster-connections.max-hops</link></entry>
<entry>Integer</entry>
<entry>集群拓扑中的最大跳数hops</entry>
<entry>1</entry>
</row>
<row>
<entry><link linkend="clusters.cluster-connections"
>cluster-connections.retry-interval</link></entry>
<entry>Long</entry>
<entry>集群连接重试的间隔(毫秒)</entry>
<entry>2000</entry>
</row>
<row>
<entry><link linkend="clusters.cluster-connections"
>cluster-connections.use-duplicate-detection</link></entry>
<entry>Boolean</entry>
<entry>是否在转发的消息中添加重复检测的消息头</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="clusters.cluster-connections"
>cluster-connections.discovery-group-ref</link></entry>
<entry>String</entry>
<entry>桥所使用的发现组的名字</entry>
<entry>null</entry>
</row>
<row>
<entry><link linkend="clusters.cluster-connections"
>cluster-connections.connector-ref.connector-name
(属性)</link></entry>
<entry>String</entry>
<entry>主连接的连接器名字</entry>
<entry/>
</row>
<row>
<entry><link linkend="clusters.cluster-connections"
>cluster-connections.connector-ref.backup-connector-name
(属性)</link></entry>
<entry>String</entry>
<entry>可选的备份连接所使用的连接器名字</entry>
<entry>null</entry>
</row>
<row>
<entry><link linkend="security.settings.roles"
>security-settings</link></entry>
<entry>SecuritySetting</entry>
<entry>一组安全设置</entry>
<entry/>
</row>
<row>
<entry><link linkend="security.settings.roles">security-settings.match
(属性)</link></entry>
<entry>String</entry>
<entry>安全所应用的地址匹配字符串</entry>
<entry/>
</row>
<row>
<entry><link linkend="security.settings.roles"
>security-settings.permission</link></entry>
<entry>安全许可</entry>
<entry>地址的一个许可</entry>
<entry/>
</row>
<row>
<entry><link linkend="security.settings.roles"
>security-settings.permission.type (attribute)</link></entry>
<entry>许可类型</entry>
<entry>许可的类型</entry>
<entry/>
</row>
<row>
<entry><link linkend="security.settings.roles"
>security-settings.permission.roles (attribute)</link></entry>
<entry>Roles</entry>
<entry>以逗号分隔的一组角色,这些角色将拥有相应的许可</entry>
<entry/>
</row>
<row>
<entry><link linkend="queue-attributes.address-settings"
>address-settings</link></entry>
<entry>AddressSetting</entry>
<entry>一组地址设置</entry>
<entry/>
</row>
<row>
<entry><link linkend="undelivered-messages.configuring"
>address-settings.dead-letter-address</link></entry>
<entry>String</entry>
<entry>死消息所发往的地址</entry>
<entry/>
</row>
<row>
<entry><link linkend="undelivered-messages.configuring"
>address-settings.max-delivery-attempts</link></entry>
<entry>Integer</entry>
<entry>发往死信地址之前所尝试的传递次数</entry>
<entry>10</entry>
</row>
<row>
<entry><link linkend="message-expiry.configuring"
>address-settings.expiry-address</link></entry>
<entry>String</entry>
<entry>过期消息所发往的地址</entry>
<entry/>
</row>
<row>
<entry><link linkend="undelivered-messages.delay"
>address-settings.redelivery-delay</link></entry>
<entry>Long</entry>
<entry>重新传递一个取消的消息前所等待的时间(毫秒)</entry>
<entry>0</entry>
</row>
<row>
<entry><link linkend="last-value-queues"
>address-settings.last-value-queue</link></entry>
<entry>boolean</entry>
<entry>队列是否是一个最新值队列</entry>
<entry>false</entry>
</row>
<row>
<entry><link linkend="paging"
>address-settings.page-size-bytes</link></entry>
<entry>Long</entry>
<entry>一个地址的分页的大小(字节)</entry>
<entry>10 * 1024 * 1024</entry>
</row>
<row>
<entry><link linkend="paging"
>address-settings.max-size-bytes</link></entry>
<entry>Long</entry>
<entry>地址的分页转存的最大值(字节)</entry>
<entry>-1</entry>
</row>
<row>
<entry><link linkend="clusters.message-redistribution"
>address-settings.redistribution-delay</link></entry>
<entry>Long</entry>
<entry>队列最后一个接收者关闭后需要等待多长时间再将消息重新分配(毫秒)</entry>
<entry>-1</entry>
</row>
</tbody>
</tgroup>
</table>
</section>
<section>
<title>hornetq-jms.xml</title>
<para>该文件是服务器端JMS服务所使用的用来装载JMS队列话题和连接工厂。</para>
<table frame="topbot" border="2">
<title>JMS服务器配置</title>
<tgroup cols="4">
<colspec colname="c1" colnum="1"/>
<colspec colname="c2" colnum="2"/>
<colspec colname="c3" colnum="3"/>
<colspec colname="c4" colnum="4"/>
<thead>
<row>
<entry>名称</entry>
<entry>类型</entry>
<entry>说明</entry>
<entry>默认值</entry>
</row>
</thead>
<tbody>
<row>
<entry>
<link linkend="using-jms.server.configuration">connection-factory</link>
</entry>
<entry>ConnectionFactory</entry>
<entry>一组注册到JNDI的连接工厂</entry>
<entry/>
</row>
<row>
<entry id="configuration.connection-factory.signature">
<link linkend="using-jms.configure.factory.types">connection-factory.signature (属性)</link>
</entry>
<entry>String</entry>
<entry>连接工厂的类型</entry>
<entry>generic</entry>
</row>
<row>
<entry id="configuration.connection-factory.signature">
<link linkend="using-jms.configure.factory.types">connection-factory.xa</link>
</entry>
<entry>Boolean</entry>
<entry>是否是XA类型的连接工厂</entry>
<entry>false</entry>
</row>
<row>
<entry id="configuration.connection-factory.auto-group">
<link linkend="message-grouping.jmsconfigure">connection-factory.auto-group</link>
</entry>
<entry>Boolean</entry>
<entry>是否自动使用消息组</entry>
<entry>false</entry>
</row>
<row>
<entry><link linkend="clusters.static.servers">connection-factory.connectors</link>
</entry>
<entry>String</entry>
<entry>一组供连接工厂使用的连接器</entry>
<entry />
</row>
<row>
<entry><link linkend="clusters.static.servers"
>connection-factory.connectors.connector-ref.connector-name (属性)</link>
</entry>
<entry>String</entry>
<entry>连接主服务器的连接器名</entry>
<entry />
</row>
<row>
<entry><link linkend="clusters.static.servers"
>connection-factory.connectors.connector-ref.backup-connector-name (attribute)</link>
</entry>
<entry>String</entry>
<entry>连接备份服务器的连接器名</entry>
<entry />
</row>
<row>
<entry><link linkend="clusters-discovery.groups.clientside"
>connection-factory.discovery-group-ref.discovery-group-name (属性)</link>
</entry>
<entry>String</entry>
<entry>连接工厂的发现组名</entry>
<entry />
</row>
<row>
<entry id="configuration.connection-factory.discovery-initial-wait-timeout">
<link linkend="clusters-discovery.groups.clientside"
>connection-factory.discovery-initial-wait-timeout</link>
</entry>
<entry>Long</entry>
<entry>发现组首次等待广播的时间</entry>
<entry>10000</entry>
</row>
<row>
<entry id="configuration.connection-factory.block-on-acknowledge">
<link linkend="send-guarantees.nontrans.acks">connection-factory.block-on-acknowledge</link>
</entry>
<entry>Boolean</entry>
<entry>消息是否以同步方式通知</entry>
<entry>false</entry>
</row>
<row>
<entry id="configuration.connection-factory.block-on-non-durable-send">
<link linkend="non-transactional-sends">connection-factory.block-on-non-durable-send</link>
</entry>
<entry>Boolean</entry>
<entry>是否以同步方式发送非持久消息</entry>
<entry>false</entry>
</row>
<row>
<entry id="configuration.connection-factory.block-on-durable-send">
<link linkend="non-transactional-sends">connection-factory.block-on-durable-send</link>
</entry>
<entry>Boolean</entry>
<entry>是否以同步方式发送持久消息</entry>
<entry>true</entry>
</row>
<row>
<entry id="configuration.connection-factory.call-timeout">connection-factory.call-timeout</entry>
<entry>Long</entry>
<entry>远程调用超时时间(毫秒)</entry>
<entry>30000</entry>
</row>
<row>
<entry id="configuration.connection-factory.client-failure-check-period">
<link linkend="dead.connections">connection-factory.client-failure-check-period</link>
</entry>
<entry>Long</entry>
<entry>客户端如果在这个时间内没有收到服务器数据包,将认为连接出现故障。</entry>
<entry>5000</entry>
</row>
<row>
<entry id="configuration.connection-factory.client-id">
<link linkend="using-jms.clientid">connection-factory.client-id</link>
</entry>
<entry>String</entry>
<entry>连接工厂预先配置的客户ID</entry>
<entry>null</entry>
</row>
<row>
<entry id="configuration.connection-factory.connection-load-balancing-policy-class-name">
<link linkend="clusters.client.loadbalancing">
connection-factory.connection-load-balancing-policy-class-name</link>
</entry>
<entry>String</entry>
<entry>负载均衡类名</entry>
<entry>org.apache.activemq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy</entry>
</row>
<row>
<entry id="configuration.connection-factory.connection-ttl">
<link linkend="dead.connections">connection-factory.connection-ttl</link>
</entry>
<entry>Long</entry>
<entry>连接的存活时间(毫秒)</entry>
<entry>1 * 60000</entry>
</row>
<row>
<entry id="configuration.connection-factory.consumer-max-rate">
<link linkend="flow-control.rate.core.api">connection-factory.consumer-max-rate</link></entry>
<entry>Integer</entry>
<entry>接收者每秒钟接收消息的最快速度</entry>
<entry>-1</entry>
</row>
<row>
<entry id="configuration.connection-factory.consumer-window-size">
<link linkend="flow-control.core.api">connection-factory.consumer-window-size</link></entry>
<entry>Integer</entry>
<entry>接收者流控制容器大小(字节)</entry>
<entry>1024 * 1024</entry>
</row>
<row>
<entry id="configuration.connection-factory.dups-ok-batch-size">
<link linkend="using-jms.dupsokbatchsize">connection-factory.dups-ok-batch-size</link></entry>
<entry>Integer</entry>
<entry>在DUPS_OK_ACKNOWLEDGE模式下批量通知的大小字节</entry>
<entry>1024 * 1024</entry>
</row>
<row>
<entry><link linkend="ha.automatic.failover"
>connection-factory.failover-on-initial-connection</link></entry>
<entry>Boolean</entry>
<entry>如果首次连接主服务器失败是否失效备援连接到备份服务器</entry>
<entry>false</entry>
</row>
<row>
<entry id="configuration.connection-factory.failover-on-server-shutdown">
<link linkend="ha.automatic.failover">connection-factory.failover-on-server-shutdown</link></entry>
<entry>Boolean</entry>
<entry>在服务器停机时是否进行失效备援</entry>
<entry>false</entry>
</row>
<row>
<entry id="configuration.connection-factory.min-large-message-size">
<link linkend="large-messages.core.config">connection-factory.min-large-message-size</link></entry>
<entry>Integer</entry>
<entry>大消息的最小值,大小超过该值的按大消息处理</entry>
<entry>100 * 1024</entry>
</row>
<row>
<entry><link linkend="large-messages.cache.client"
>connection-factory.cache-large-message-client</link></entry>
<entry>Boolean</entry>
<entry>true表示这个连接工厂会将大消息保存在临时文件中</entry>
<entry>false</entry>
</row>
<row>
<entry id="configuration.connection-factory.pre-acknowledge">
<link linkend="pre-acknowledge.configure">connection-factory.pre-acknowledge</link></entry>
<entry>Boolean</entry>
<entry>是否在消息发送之前提前通知</entry>
<entry>false</entry>
</row>
<row>
<entry id="configuration.connection-factory.producer-max-rate">
<link linkend="flow-control.producer.rate.core.api">connection-factory.producer-max-rate</link></entry>
<entry>Integer</entry>
<entry>发送消息的最大速度</entry>
<entry>-1</entry>
</row>
<row>
<entry><link linkend="client-reconnection"
>connection-factory.producer-window-size</link></entry>
<entry>Integer</entry>
<entry>发送者发送消息的窗口大小</entry>
<entry>1024 * 1024</entry>
</row>
<row>
<entry id="configuration.connection-factory.confirmation-window-size">
<link linkend="client-reconnection">connection-factory.confirmation-window-size</link>
</entry>
<entry>Integer</entry>
<entry>会话恢复的确认窗口大小(字节)</entry>
<entry>1024 * 1024</entry>
</row>
<row>
<entry id="configuration.connection-factory.reconnect-attempts">
<link linkend="client-reconnection">connection-factory.reconnect-attempts</link>
</entry>
<entry>Integer</entry>
<entry>重试的最大次数, -1 表示无限次</entry>
<entry>0</entry>
</row>
<row>
<entry id="configuration.connection-factory.retry-interval">
<link linkend="client-reconnection">connection-factory.retry-interval</link>
</entry>
<entry>Long</entry>
<entry>每次重试的时间间隔(毫秒)</entry>
<entry>2000</entry>
</row>
<row>
<entry id="configuration.connection-factory.retry-interval-multiplier">
<link linkend="client-reconnection">connection-factory.retry-interval-multiplier</link>
</entry>
<entry>Double</entry>
<entry>重试间隔时间的递增系数</entry>
<entry>1.0</entry>
</row>
<row>
<entry><link linkend="client-reconnection"
>connection-factory.max-retry-interval</link></entry>
<entry>Integer</entry>
<entry>最大重试间隔。</entry>
<entry>2000</entry>
</row>
<row>
<entry id="configuration.connection-factory.scheduled-thread-pool-max-size">
<link linkend="thread-pooling.client.side">connection-factory.scheduled-thread-pool-max-size</link>
</entry>
<entry>Integer</entry>
<entry><emphasis>可计划线程</emphasis>池的大小</entry>
<entry>5</entry>
</row>
<row>
<entry id="configuration.connection-factory.thread-pool-max-size">
<link linkend="thread-pooling.client.side">connection-factory.thread-pool-max-size</link>
</entry>
<entry>Integer</entry>
<entry>线程池大小</entry>
<entry>-1</entry>
</row>
<row>
<entry id="configuration.connection-factory.transaction-batch-size">
<link linkend="using-jms.txbatchsize">
connection-factory.transaction-batch-size</link>
</entry>
<entry>Integer</entry>
<entry>使用事务性会话时发送通知的批量大小(字节)</entry>
<entry>1024 * 1024</entry>
</row>
<row>
<entry id="configuration.connection-factory.use-global-pools">
<link linkend="thread-pooling.client.side">connection-factory.use-global-pools</link>
</entry>
<entry>Boolean</entry>
<entry>是否使用全局线程池</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="using-jms.server.configuration"
>queue</link></entry>
<entry>Queue</entry>
<entry>创建并注册到JNDI的队列</entry>
<entry/>
</row>
<row>
<entry><link linkend="using-jms.server.configuration">queue.name
(属性)</link></entry>
<entry>String</entry>
<entry>队列的唯一名字</entry>
<entry/>
</row>
<row>
<entry><link linkend="using-jms.server.configuration"
>queue.entry</link></entry>
<entry>String</entry>
<entry>队列的JNDI的上下文context。一个队列可以有多个JNDI的上下文</entry>
<entry/>
</row>
<row>
<entry><link linkend="using-jms.server.configuration"
>queue.durable</link></entry>
<entry>Boolean</entry>
<entry>是否持久队列</entry>
<entry>true</entry>
</row>
<row>
<entry><link linkend="using-jms.server.configuration"
>queue.filter</link></entry>
<entry>String</entry>
<entry>可选的队列过滤器表达式</entry>
<entry/>
</row>
<row>
<entry><link linkend="using-jms.server.configuration"
>topic</link></entry>
<entry>Topic</entry>
<entry>创建并注册到JNDI的话题</entry>
<entry/>
</row>
<row>
<entry><link linkend="using-jms.server.configuration">topic.name
(属性)</link></entry>
<entry>String</entry>
<entry>话题的唯一名</entry>
<entry/>
</row>
<row>
<entry><link linkend="using-jms.server.configuration"
>topic.entry</link></entry>
<entry>String</entry>
<entry>话题的JNDI上下文context。一个话题可以有多个上下文。</entry>
<entry/>
</row>
</tbody>
</tgroup>
</table>
</section>
</section>
</chapter>