[jboss-cvs] JBossAS SVN: r78838 - projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Sep 25 00:38:12 EDT 2008
Author: xhuang at jboss.com
Date: 2008-09-25 00:38:11 -0400 (Thu, 25 Sep 2008)
New Revision: 78838
Modified:
projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Cache_loaders.po
projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Introduction.po
projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Treecache_marshaller.po
Log:
update
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Cache_loaders.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Cache_loaders.po 2008-09-25 04:12:08 UTC (rev 78837)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Cache_loaders.po 2008-09-25 04:38:11 UTC (rev 78838)
@@ -1,15 +1,16 @@
# translation of Cache_loaders.po to
# Language /tmp/mike/JBEAP420/Cache translations for JBEAP package.
# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+#
# Automatically generated, 2007.
-#
+# Xi HUANG <xhuang at redhat.com>, 2008.
msgid ""
msgstr ""
"Project-Id-Version: Cache_loaders\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-09-21 04:43+0000\n"
-"PO-Revision-Date: 2008-09-22 11:56+1000\n"
-"Last-Translator: \n"
+"PO-Revision-Date: 2008-09-25 14:35+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1146,6 +1147,8 @@
"emphasis>. <emphasis>Analogous to the <literal>CacheLoaderPreload</literal> "
"attribute in pre-1.3.0 configurations.</emphasis>"
msgstr ""
+"<literal>preload</literal> 允许我们定义一个节点列表、甚至是整个子树,缓存在启动时访问它来预加载和这些节点相关联的数据。缺省的(\"/\")将把后台存储里的所有时间加载到缓存里,如果后台数据很多,这可能不是个好主意。例如,<literal>/a, /product/catalogue</literal> 只把子树 <literal>/a</literal> 和 <literal>/product/catalogue</literal> 加载到缓存里。在访问再 lazily 加载其他东西。当需要频繁使用某个子树下的数据时,预加载就很有用。<emphasis>请注意,预加载将把给定节点直至根节点的所有相关数据递归地进行加载。</"
+"emphasis>. <emphasis>它和 1.3.0 之前版本的 <literal>CacheLoaderPreload</literal> 属性类似。</emphasis>"
#. Tag: para
#: Cache_loaders.xml:133
@@ -1158,7 +1161,7 @@
"service. <emphasis>Analogous to the "
"<literal>CacheLoaderFetchPersistentState</literal> attribute in pre-1.3.0 "
"configurations.</emphasis>"
-msgstr ""
+msgstr "<literal>fetchPersistentState</literal> 决定在加入群集时是否获取缓存的持久性状态。只有配置了缓存加载器的缓存才能把这个属性设置为 true;如果多个缓存加载器设置了它,在启动缓存服务时将抛出配置异常。<emphasis>它和 1.3.0 之前版本的 <literal>CacheLoaderFetchPersistentState</literal> 属性类似。</emphasis>"
#. Tag: para
#: Cache_loaders.xml:136
@@ -1176,6 +1179,9 @@
"<emphasis>Analogous to the <literal>CacheLoaderAsynchronous</literal> "
"attribute in pre-1.3.0 configurations.</emphasis>"
msgstr ""
+"<literal>async</literal> 决定对缓存加载器的写操作是否在完成前一直阻塞,或者在单独的线程运行,这样写操作就可以马上返回。如果设置为 true, <literal>org.jboss.cache."
+"loader.AsyncCacheLoader</literal> 实例和将使用的实际的缓存加载器实例一起被构建。然后 <literal>AsyncCacheLoader</literal> 把所有请求都委托给底层的缓存加载器,并在必要时使用单独的线程。更多细节请参考 <literal>org.jboss.cache.loader."
+"AsyncCacheLoader</literal> 的 Javadoc。如果未进行指定,<literal>async</literal> 元素缺省为 <emphasis>false</emphasis>。<emphasis>它和版本 1.3.0 之前的 <literal>CacheLoaderAsynchronous</literal> 属性类似。</emphasis>"
#. Tag: para
#: Cache_loaders.xml:139
@@ -1187,6 +1193,8 @@
"(and even if) a write succeeds. This needs to be kept in mind when setting "
"the <literal>async</literal> element to true."
msgstr ""
+"<emphasis role=\"bold\">使用 <literal>async</literal> 元素时请注意:</"
+"emphasis>既然所有的写操作都是异步执行的,那么脏读总是有可能发生的,因此想保证写操作何时成功(甚至是是否成功)是不可能的。在把 <literal>async</literal> 元素设置为 true 时,你需要把这一点记在心里。"
#. Tag: para
#: Cache_loaders.xml:142
@@ -1200,7 +1208,7 @@
"allows you to write to the 'local' file cache loader but not the shared JDBC "
"cache loader. This property defaults to <literal>false</literal>, so writes "
"are propagated to all cache loaders configured."
-msgstr ""
+msgstr "<literal>ignoreModifications</literal> 决定写操作是否委托给专门的缓存加载器。这可能发生在当临时的应用程序数据应该只驻留在相同服务器上的作为内存缓存的基于文件的缓存加载器里时,例如,网络里所有服务器使用的共享 JDBC 缓存加载器。这个功能允许你写入“本地”文件缓存加载器而不是共享的 JDBC 缓存加载器。它的缺省值为 <literal>false</literal>,所以写操作将被传递给所有的缓存加载器。"
#. Tag: para
#: Cache_loaders.xml:145
@@ -1209,13 +1217,13 @@
"<literal>purgeOnStatup</literal> empties the specified cache loader (if "
"<literal>ignoreModifications</literal> is <literal>false</literal>) when the "
"cache loader starts up."
-msgstr ""
+msgstr "<literal>purgeOnStatup</literal> 在指定的缓存加载器启动时清空它(如果 <literal>ignoreModifications</literal> 为 <literal>false</literal>)。"
#. Tag: title
#: Cache_loaders.xml:151
#, no-c-format
msgid "Cache passivation"
-msgstr ""
+msgstr "缓存钝化"
#. Tag: para
#: Cache_loaders.xml:152
@@ -1659,7 +1667,7 @@
"standalone process, or embedded as an MBean inside JBoss. The TcpCacheServer "
"has a reference to another JBossCache, which it can create itself, or which "
"is given to it (e.g. by JBoss, using dependency injection)."
-msgstr ""
+msgstr "TcpDelegatingCacheLoader 和远程的 TcpCacheServer(可以是独立的进程或嵌入在 JBoss 里的 MBean)通信。TcpCacheServer 具有对其他 JBossCache 的引用,这可以是自己创建的,或者其他实例给予的(如 JBoss 通过依赖性注入)。"
#. Tag: para
#: Cache_loaders.xml:293
@@ -1667,13 +1675,13 @@
msgid ""
"The TcpDelegatingCacheLoader is configured with the host and port of the "
"remote TcpCacheServer, and uses this to communicate to it."
-msgstr ""
+msgstr "TcpDelegatingCacheLoader 配置了远程 TcpCacheServer 的主机名和端口号,并用它们和 TcpCacheServer 进行通信。"
#. Tag: para
#: Cache_loaders.xml:296
#, no-c-format
msgid "An example set of a TcpCacheServer running inside of JBoss is shown below:"
-msgstr ""
+msgstr "下面是一个在 JBoss 里运行的 TcpCacheServer 示例:"
#. Tag: programlisting
#: Cache_loaders.xml:299
@@ -1698,6 +1706,24 @@
"\n"
"</server>"
msgstr ""
+"<server>\n"
+"\n"
+" <classpath codebase=\"./lib\" archives=\"jboss-cache.jar\"/>\n"
+"\n"
+" <mbean code=\"org.jboss.cache.loader.tcp.TcpCacheServer\" \n"
+" name=\"jboss.cache:service=TcpCacheServer\">\n"
+" <depends optional-attribute-name=\"Cache\"\n"
+" proxy-type=\"attribute\">jboss.cache:service=TreeCache</"
+"depends>\n"
+" <attribute name=\"BindAddress\">${jboss.bind.address:"
+"localhost}</attribute>\n"
+" <attribute name=\"Port\">7500</attribute>\n"
+" <attribute name=\"MBeanServerName\"></attribute>\n"
+" <!--<attribute name=\"CacheName\">jboss.cache:"
+"service=TreeCache</attribute>-->\n"
+" </mbean>\n"
+"\n"
+"</server>"
#. Tag: para
#: Cache_loaders.xml:300
@@ -1707,7 +1733,7 @@
"an existing JBossCache MBean is injected into it (assigned to 'Cache'). This "
"means that all requests from the TcpDelegatingCacheLoader will be received "
"by this instance and forwarded to the JBossCache MBean."
-msgstr ""
+msgstr "BindAddress 和 Port 定义了服务器套接字侦听的主机和端口号,一个现有的 JBossCache MBean 会被注入(分配给 'Cache')。这意味着 TcpDelegatingCacheLoader 发出的所有请求将被这个实例接收并转发到这个 JBossCache MBean。"
#. Tag: para
#: Cache_loaders.xml:303
@@ -1717,13 +1743,13 @@
"file for JBossCache. If it is set, then the TcpCacheServer will create its "
"own instance of JBossCache and configure it according to the Config "
"attribute."
-msgstr ""
+msgstr "请注意,这里也有一个 'Config' 属性,它指向一个 JBossCache 使用的 XML 配置文件。如果设置了这个属性,TcpCacheServer 将创建自己的 JBossCache 实例并按照 Config 属性对它进行配置。"
#. Tag: para
#: Cache_loaders.xml:306 Cache_loaders.xml:342
#, no-c-format
msgid "The client side looks as follow:"
-msgstr ""
+msgstr "客户端类似于:"
#. Tag: programlisting
#: Cache_loaders.xml:309
@@ -1742,6 +1768,18 @@
" </config>\n"
"</attribute>"
msgstr ""
+"<attribute name=\"CacheLoaderConfiguration\">\n"
+" <config>\n"
+" <cacheloader>\n"
+" <class>org.jboss.cache.loader.tcp."
+"TcpDelegatingCacheLoader</class>\n"
+" <properties>\n"
+" host=localhost\n"
+" port=7500\n"
+" </properties>\n"
+" </cacheloader>\n"
+" </config>\n"
+"</attribute>"
#. Tag: para
#: Cache_loaders.xml:310
@@ -1749,7 +1787,7 @@
msgid ""
"This means this instance of JBossCache will delegate all load and store "
"requests to the remote TcpCacheServer running at localhost:7500."
-msgstr ""
+msgstr "这表示这个 JBossCache 实例将把所有加载和存储请求委托给运行在 localhost:7500 上的远程 TcpCacheServer。"
#. Tag: para
#: Cache_loaders.xml:313
@@ -1765,7 +1803,7 @@
"TcpCacheServer serves as a natural cache in front of the DB (assuming that a "
"network round trip is faster than a DB access (which usually also include a "
"network round trip))."
-msgstr ""
+msgstr "典型的用例就是相同群集里的多个复制性 JBossCache 实例,都委托给相同的 TcpCacheServer 实例。TcpCacheServer 自身可能通过 JDBCCacheLoader 委托给数据库,但要注意的是 - 如果我们有 5 个节点都在访问相同数据集 - 它们将从 TcpCacheServer 载入数据,每次卸载数据集时都需要执行一个 SQL 语句。如果节点直接访问数据库,那么我们得多次执行相同的 SQL 语句。所以,TcpCacheServer 充当数据库(假设网络往返通信比数据库访问更快,因为数据库访问通常也包含一次网络通信)前面的一个自然缓存。"
#. Tag: para
#: Cache_loaders.xml:316
@@ -1776,13 +1814,13 @@
"the second a TcpDelegatingCacheLoader, and the last a JDBCacheLoader, "
"effectively defining our cost of access to a cache in increasing order of "
"cost."
-msgstr ""
+msgstr "为了降低单点故障的发生,我们可以将其和 ChainingCacheLoader 一起使用,其中的第一个 CacheLoader 是一个 ClusteredCacheLoader,第二个是 TcpDelegatingCacheLoader,最后一个是 JDBCacheLoader,这有效地按照代价递增的顺序定义了对缓存的访问。"
#. Tag: title
#: Cache_loaders.xml:322
#, no-c-format
msgid "RmiDelegatingCacheLoader"
-msgstr ""
+msgstr "RmiDelegatingCacheLoader"
#. Tag: para
#: Cache_loaders.xml:323
@@ -1790,7 +1828,7 @@
msgid ""
"Similar to the TcpDelegatingCacheLoader, the RmiDelegatingCacheLoader uses "
"RMI as a method of communicating with a remote cache."
-msgstr ""
+msgstr "和 TcpDelegatingCacheLoader 类似,RmiDelegatingCacheLoader 把 RMI 用作和远程缓存通信的方法。"
#. Tag: para
#: Cache_loaders.xml:326
@@ -1800,7 +1838,7 @@
"standalone process. The RmiCacheServer has a reference to another "
"JBossCache, which it can create itself, or which is given to it (e.g. by "
"JBoss, using dependency injection)."
-msgstr ""
+msgstr "RmiDelegatingCacheLoader 和远程的 RmiCacheServer(独立进程)通信。RmiCacheServer 有对其他 JBossCache 实例的引用,这可以是自己创建的,或者其他实例给予的(如 JBoss 通过依赖性注入)。"
#. Tag: para
#: Cache_loaders.xml:329
@@ -1809,13 +1847,13 @@
"The RmiDelegatingCacheLoader is configured with the host, port of the remote "
"RMI server and the bind name of the RmiCacheServer, and uses this to "
"communicate."
-msgstr ""
+msgstr "RmiDelegatingCacheLoader 配置主机名、远程 RMI 服务器的端口以及 RmiCacheServer 绑定名称,它使用这些配置来进行通信。"
#. Tag: para
#: Cache_loaders.xml:332
#, no-c-format
msgid "An example set of an RmiCacheServer running inside of JBoss is shown below:"
-msgstr ""
+msgstr "下面是一个运行在 JBoss 里的 RmiCacheServer 示例:"
#. Tag: programlisting
#: Cache_loaders.xml:335
@@ -1843,6 +1881,27 @@
"\n"
"</server>"
msgstr ""
+"<server>\n"
+"\n"
+" <classpath codebase=\"./lib\" archives=\"jboss-cache.jar\"/>\n"
+"\n"
+" <mbean code=\"org.jboss.cache.loader.rmi.RmiCacheServer\" \n"
+" name=\"jboss.cache:service=RmiCacheServer\">\n"
+" <depends optional-attribute-name=\"Cache\"\n"
+" proxy-type=\"attribute\">jboss.cache:service=TreeCache</"
+"depends>\n"
+" <!-- the address and port of the RMI server. -->\n"
+" <attribute name=\"BindAddress\">${jboss.bind.address:"
+"localhost}</attribute>\n"
+" <attribute name=\"Port\">1098</attribute>\n"
+" <attribute name=\"BindName\">MyRmiCacheServer</"
+"attribute>\n"
+" <attribute name=\"MBeanServerName\"></attribute>\n"
+" <!--<attribute name=\"CacheName\">jboss.cache:"
+"service=TreeCache</attribute>-->\n"
+" </mbean>\n"
+"\n"
+"</server>"
#. Tag: para
#: Cache_loaders.xml:336
@@ -1853,7 +1912,7 @@
"existing JBossCache MBean is injected into it (assigned to 'Cache'). This "
"means that all requests from the TcpDelegatingCacheLoader will be received "
"by this instance and forwarded to the JBossCache MBean."
-msgstr ""
+msgstr "BindAddress 和 Port 应该指向已经运行的 RMI 服务器,BindName 是对象在 RMI 服务器里绑定的名称。现有的 JBossCache MBean 被注入(赋值为 'Cache')。这表示来自 TcpDelegatingCacheLoader 的所有请求都将被这个实例接收并转发到此 JBossCache MBean。"
#. Tag: para
#: Cache_loaders.xml:339
@@ -1863,7 +1922,7 @@
"file for JBossCache. If it is set, then the RmiCacheServer will create its "
"own instance of JBossCache and configure it according to the Config "
"attribute."
-msgstr ""
+msgstr "请注意,这里也有一个 'Config' 属性,它指向一个 JBossCache 使用的 XML 配置文件。如果设置了这个属性,RmiCacheServer 将创建自己的 JBossCache 实例并按照 Config 属性对它进行配置。"
#. Tag: programlisting
#: Cache_loaders.xml:345
@@ -1883,6 +1942,19 @@
" </config>\n"
"</attribute>"
msgstr ""
+"<attribute name=\"CacheLoaderConfiguration\">\n"
+" <config>\n"
+" <cacheloader>\n"
+" <class>org.jboss.cache.loader.RmiDelegatingCacheLoader</"
+"class>\n"
+" <properties>\n"
+" host=localhost\n"
+" port=1098\n"
+" name=MyRmiCacheServer\n"
+" </properties>\n"
+" </cacheloader>\n"
+" </config>\n"
+"</attribute>"
#. Tag: para
#: Cache_loaders.xml:346
@@ -1891,7 +1963,7 @@
"This means this instance of JBossCache will delegate all load and store "
"requests to the remote RmiCacheServer running as MyRmiCacheServer on an RMI "
"server running on localhost:1098."
-msgstr ""
+msgstr "这表示这个 JBossCache 实例将把所有加载和存储请求委托给作为 MyRmiCacheServer 运行在 localhost:1098 上的远程 RmiCacheServer 。"
#. Tag: para
#: Cache_loaders.xml:349
@@ -1899,13 +1971,13 @@
msgid ""
"Very similar use case scenarios that apply to TcpDelegatingCacheLoaders "
"above apply to RmiDelegatingCacheLoaders as well."
-msgstr ""
+msgstr "上面应用在 TcpDelegatingCacheLoader 上的用例也适用于 RmiDelegatingCacheLoader。"
#. Tag: title
#: Cache_loaders.xml:357
#, no-c-format
msgid "JDBC-based CacheLoader"
-msgstr ""
+msgstr "基于 JDBC 的 CacheLoader"
#. Tag: para
#: Cache_loaders.xml:358
@@ -1914,7 +1986,7 @@
"JBossCache is distributed with a JDBC-based CacheLoader implementation that "
"stores/loads nodes' state into a relational database. The implementing class "
"is <literal>org.jboss.cache.loader.JDBCCacheLoader</literal>."
-msgstr ""
+msgstr "JBossCache 带有一个基于 JDBC 的 CacheLoader 实现,它把节点的状态存储/加载到关系型数据库里。这个实现类是 <literal>org.jboss.cache.loader.JDBCCacheLoader</literal>。"
#. Tag: para
#: Cache_loaders.xml:361
@@ -1922,25 +1994,25 @@
msgid ""
"The current implementation uses just one table. Each row in the table "
"represents one node and contains three columns:"
-msgstr ""
+msgstr "目前的实现只使用一个表。表里的每一行都代表一个节点并包含三个字段:"
#. Tag: para
#: Cache_loaders.xml:364
#, no-c-format
msgid "column for FQN (which is also a primary key column)"
-msgstr ""
+msgstr "FQN 字段(主键字段)"
#. Tag: para
#: Cache_loaders.xml:367
#, no-c-format
msgid "column for node contents (attribute/value pairs)"
-msgstr ""
+msgstr "节点内容字段(属性/值对)"
#. Tag: para
#: Cache_loaders.xml:370
#, no-c-format
msgid "column for parent FQN"
-msgstr ""
+msgstr "父 FQN 字段"
#. Tag: para
#: Cache_loaders.xml:374
@@ -1956,6 +2028,8 @@
"also subject to any maximum primary key length restriction imposed by the "
"database."
msgstr ""
+"FQN 以字符串存储。节点内容以 BLOB 存储。<emphasis>WARNING:</emphasis>TreeCache 对 FQN 里使用的对象类型不进行限制,但这个 CacheLoader 实现要求 FQN 只包含类型为 <literal>java.lang.String</"
+"literal> 的对象。FQN 的另外一个限制是长度。既然 FQN 是主键,它的缺省字段类型是 <literal>VARCHAR</literal>,它存储的文本值的最大长度取决于相应的数据库。某些数据库对主键长度的限制也会影响到 FQN。"
#. Tag: para
#: Cache_loaders.xml:377
@@ -1965,18 +2039,20 @@
"page=JDBCCacheLoader</ulink> for configuration tips with specific database "
"systems."
msgstr ""
+"关于不同的数据库系统的配置提示,请参考 <ulink url=\"???\">http://wiki.jboss.org/wiki/Wiki.jsp?"
+"page=JDBCCacheLoader</ulink>。"
#. Tag: title
#: Cache_loaders.xml:381
#, no-c-format
msgid "JDBCCacheLoader configuration"
-msgstr ""
+msgstr "JDBCCacheLoader 的配置"
#. Tag: title
#: Cache_loaders.xml:383
#, no-c-format
msgid "Table configuration"
-msgstr ""
+msgstr "表的配置"
#. Tag: para
#: Cache_loaders.xml:384
@@ -1984,7 +2060,7 @@
msgid ""
"Table and column names as well as column types are configurable with the "
"following properties."
-msgstr ""
+msgstr "表和字段名以及字段类型都是可配置的,它们有下列属性。"
#. Tag: para
#: Cache_loaders.xml:387
@@ -1992,7 +2068,7 @@
msgid ""
"<emphasis>cache.jdbc.table.name</emphasis> - the name of the table. The "
"default value is 'jbosscache'."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.table.name</emphasis> - 表的名称。缺省值为 'jbosscache'。"
#. Tag: para
#: Cache_loaders.xml:390
@@ -2000,7 +2076,7 @@
msgid ""
"<emphasis>cache.jdbc.table.primarykey</emphasis> - the name of the primary "
"key for the table. The default value is 'jbosscache_pk'."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.table.primarykey</emphasis> - 表的主键名称。缺省值为 'jbosscache_pk'。"
#. Tag: para
#: Cache_loaders.xml:393
@@ -2009,7 +2085,7 @@
"<emphasis>cache.jdbc.table.create</emphasis> - can be true or false. "
"Indicates whether to create the table during startup. If true, the table is "
"created if it doesn't already exist. The default value is true."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.table.create</emphasis> - 可以为 false 或 true。表示是否在启动时创建表。如果为 true,如果表不存在则被创建。缺省值为 true。"
#. Tag: para
#: Cache_loaders.xml:396
@@ -2017,7 +2093,7 @@
msgid ""
"<emphasis>cache.jdbc.table.drop</emphasis> - can be true or false. Indicates "
"whether to drop the table during shutdown. The default value is true."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.table.drop</emphasis> - 可以是 true 或 false。表示是否在启动时删除表。缺省值为 true。"
#. Tag: para
#: Cache_loaders.xml:399
@@ -2025,7 +2101,7 @@
msgid ""
"<emphasis>cache.jdbc.fqn.column</emphasis> - FQN column name. The default "
"value is 'fqn'."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.fqn.column</emphasis> - FQN 字段名称。缺省值为 'fqn'。"
#. Tag: para
#: Cache_loaders.xml:402
@@ -2033,7 +2109,7 @@
msgid ""
"<emphasis>cache.jdbc.fqn.type</emphasis> - FQN column type. The default "
"value is 'varchar(255)'."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.fqn.type</emphasis> - FQN 的字段类型。缺省值为 'varchar(255)'。"
#. Tag: para
#: Cache_loaders.xml:405
@@ -2041,7 +2117,7 @@
msgid ""
"<emphasis>cache.jdbc.node.column</emphasis> - node contents column name. The "
"default value is 'node'."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.node.column</emphasis> - 节点内容的字段名称。缺省值为 'node'。"
#. Tag: para
#: Cache_loaders.xml:408
@@ -2050,13 +2126,13 @@
"<emphasis>cache.jdbc.node.type</emphasis> - node contents column type. The "
"default value is 'blob'. This type must specify a valid binary data type for "
"the database being used."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.node.type</emphasis> - 节点内容的字段类型。缺省值为 'blob'。这个类型必须为正使用的数据库指定一个有效的二进制数据类型。"
#. Tag: title
#: Cache_loaders.xml:415
#, no-c-format
msgid "DataSource"
-msgstr ""
+msgstr "数据源(DataSource)"
#. Tag: para
#: Cache_loaders.xml:416
@@ -2064,7 +2140,7 @@
msgid ""
"If you are using JBossCache in a managed environment (e.g., an application "
"server) you can specify the JNDI name of the DataSource you want to use."
-msgstr ""
+msgstr "如果你在一个受管环境(如应用服务器)里使用 JBossCache,你可以指定想使用的数据源的 JNDI 名称。"
#. Tag: para
#: Cache_loaders.xml:419
@@ -2072,13 +2148,13 @@
msgid ""
"<emphasis>cache.jdbc.datasource</emphasis> - JNDI name of the DataSource. "
"The default value is 'java:/DefaultDS'."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.datasource</emphasis> - 数据源的 JNDI 名称。缺省值为 'java:/DefaultDS'。"
#. Tag: title
#: Cache_loaders.xml:426
#, no-c-format
msgid "JDBC driver"
-msgstr ""
+msgstr "JDBC 驱动"
#. Tag: para
#: Cache_loaders.xml:427
@@ -2086,25 +2162,25 @@
msgid ""
"If you are <emphasis>not</emphasis> using DataSource you have the following "
"properties to configure database access using a JDBC driver."
-msgstr ""
+msgstr "如果你<emphasis>没有</emphasis>使用数据源而使用 JDBC 驱动,你需要配置下列的属性。"
#. Tag: para
#: Cache_loaders.xml:430
#, no-c-format
msgid "<emphasis>cache.jdbc.driver</emphasis> - fully qualified JDBC driver name."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.driver</emphasis> - JDBC 驱动的全限定名称。"
#. Tag: para
#: Cache_loaders.xml:433
#, no-c-format
msgid "<emphasis>cache.jdbc.url</emphasis> - URL to connect to the database."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.url</emphasis> - 连接数据库所使用的 URL。"
#. Tag: para
#: Cache_loaders.xml:436
#, no-c-format
msgid "<emphasis>cache.jdbc.user</emphasis> - user name to connect to the database."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.user</emphasis> - 连接数据库所使用的用户名。"
#. Tag: para
#: Cache_loaders.xml:439
@@ -2112,13 +2188,13 @@
msgid ""
"<emphasis>cache.jdbc.password</emphasis> - password to connect to the "
"database."
-msgstr ""
+msgstr "<emphasis>cache.jdbc.password</emphasis> - 连接数据库所使用的密码。"
#. Tag: title
#: Cache_loaders.xml:446
#, no-c-format
msgid "Configuration example"
-msgstr ""
+msgstr "配置示例"
#. Tag: para
#: Cache_loaders.xml:447
@@ -2127,7 +2203,7 @@
"Below is an example of a JDBC CacheLoader using Oracle as database. The "
"CacheLoaderConfiguration XML element contains an arbitrary set of properties "
"which define the database-related configuration."
-msgstr ""
+msgstr "下面是一个以 Oracle 为数据库的 JDBC CacheLoader 示例。CacheLoaderConfiguration XML 元素包含定义数据库相关配置的属性。"
#. Tag: programlisting
#: Cache_loaders.xml:451
@@ -2176,6 +2252,48 @@
" </config>\n"
"</attribute>"
msgstr ""
+"<attribute name=\"CacheLoaderConfiguration\">\n"
+" <config>\n"
+" <passivation>false</passivation>\n"
+" <preload>/some/stuff</preload>\n"
+" <cacheloader>\n"
+" <class>org.jboss.cache.loader.JDBCCacheLoader</"
+"class>\n"
+" <!-- same as the old CacheLoaderConfig attribute -->\n"
+" <properties>\n"
+" cache.jdbc.table.name=jbosscache\n"
+" cache.jdbc.table.create=true\n"
+" cache.jdbc.table.drop=true\n"
+" cache.jdbc.table.primarykey=jbosscache_pk\n"
+" cache.jdbc.fqn.column=fqn\n"
+" cache.jdbc.fqn.type=varchar(255)\n"
+" cache.jdbc.node.column=node\n"
+" cache.jdbc.node.type=blob\n"
+" cache.jdbc.parent.column=parent\n"
+" cache.jdbc.driver=oracle.jdbc.OracleDriver\n"
+" cache.jdbc.url=jdbc:oracle:thin:@localhost:1521:JBOSSDB\n"
+" cache.jdbc.user=SCOTT\n"
+" cache.jdbc.password=TIGER\n"
+" </properties>\n"
+" <!-- whether the cache loader writes are asynchronous -->\n"
+" <async>false</async>\n"
+" <!-- only one cache loader in the chain may set "
+"fetchPersistentState to true.\n"
+" An exception is thrown if more than one cache loader sets "
+"this to true. \n"
+" -->\n"
+" <fetchPersistentState>true</fetchPersistentState>\n"
+" <!-- determines whether this cache loader ignores writes - "
+"defaults to false. \n"
+" -->\n"
+" <ignoreModifications>false</ignoreModifications>\n"
+" <!-- if set to true, purges the contents of this cache loader "
+"when the cache \n"
+" starts up. Defaults to false. -->\n"
+" <purgeOnStartup>false</purgeOnStartup>\n"
+" </cacheloader>\n"
+" </config>\n"
+"</attribute>"
#. Tag: para
#: Cache_loaders.xml:453
@@ -2183,7 +2301,7 @@
msgid ""
"As an alternative to configuring the entire JDBC connection, the name of an "
"existing data source can be given:"
-msgstr ""
+msgstr "作为配置整个 JDBC 连接的替代,你可以指定现有的数据源的名称:"
#. Tag: programlisting
#: Cache_loaders.xml:456
@@ -2220,4 +2338,34 @@
" </config>\n"
"</attribute>"
msgstr ""
+"<attribute name=\"CacheLoaderConfiguration\">\n"
+" <config>\n"
+" <passivation>false</passivation>\n"
+" <preload>/some/stuff</preload>\n"
+" <cacheloader>\n"
+" <class>org.jboss.cache.loader.JDBCCacheLoader</"
+"class>\n"
+" <!-- same as the old CacheLoaderConfig attribute -->\n"
+" <properties>\n"
+" cache.jdbc.datasource=java:/DefaultDS\n"
+" </properties>\n"
+" <!-- whether the cache loader writes are asynchronous -->\n"
+" <async>false</async>\n"
+" <!-- only one cache loader in the chain may set "
+"fetchPersistentState to true.\n"
+" An exception is thrown if more than one cache loader sets "
+"this to true. \n"
+" -->\n"
+" <fetchPersistentState>true</fetchPersistentState>\n"
+" <!-- determines whether this cache loader ignores writes - "
+"defaults to false. \n"
+" -->\n"
+" <ignoreModifications>false</ignoreModifications>\n"
+" <!-- if set to true, purges the contents of this cache loader "
+"when the cache \n"
+" starts up. Defaults to false. -->\n"
+" <purgeOnStartup>false</purgeOnStartup>\n"
+" </cacheloader>\n"
+" </config>\n"
+"</attribute>"
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Introduction.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Introduction.po 2008-09-25 04:12:08 UTC (rev 78837)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Introduction.po 2008-09-25 04:38:11 UTC (rev 78838)
@@ -9,8 +9,8 @@
"Project-Id-Version: Introduction\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-09-21 04:43+0000\n"
-"PO-Revision-Date: 2008-09-15 05:17+1000\n"
-"Last-Translator: \n"
+"PO-Revision-Date: 2008-09-25 11:17+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -198,7 +198,7 @@
#. Tag: para
#: Introduction.xml:39
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"Finally, we use pessimistic locking of the cache by default, with optimistic "
"locking as a configurable option. With pessimistic locking, we can configure "
@@ -231,3 +231,4 @@
"如使用乐观锁,因为每个事务都有效地维护它所使用并在事务结束时将合并回树结构的"
"数据拷贝,隔离级别将被忽略。这导致接近可序列化程度的数据集成性,在提交时验证"
"工作空间数据产生更少的性能代价,以及在提交时验证失败偶尔产生的事务提及失败。"
+
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Treecache_marshaller.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Treecache_marshaller.po 2008-09-25 04:12:08 UTC (rev 78837)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Treecache_marshaller.po 2008-09-25 04:38:11 UTC (rev 78838)
@@ -1,15 +1,16 @@
# translation of Treecache_marshaller.po to
# Language /tmp/mike/JBEAP420/Cache translations for JBEAP package.
# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+#
# Automatically generated, 2007.
-#
+# Xi HUANG <xhuang at redhat.com>, 2008.
msgid ""
msgstr ""
"Project-Id-Version: Treecache_marshaller\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-09-21 04:43+0000\n"
-"PO-Revision-Date: 2008-09-20 00:09+1000\n"
-"Last-Translator: \n"
+"PO-Revision-Date: 2008-09-25 14:37+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -60,7 +61,7 @@
#: Treecache_marshaller.xml:13
#, no-c-format
msgid "Basic Usage"
-msgstr ""
+msgstr "基本用法"
#. Tag: para
#: Treecache_marshaller.xml:14
@@ -68,7 +69,7 @@
msgid ""
"<literal>TreeCache</literal> exposes the following basic API for controlling "
"the behavior of <literal>TreeCacheMarshaller</literal>:"
-msgstr ""
+msgstr "<literal>TreeCache</literal> 开放了下列用于控制 <literal>TreeCacheMarshaller</literal> 的行为的基本 API:"
#. Tag: programlisting
#: Treecache_marshaller.xml:17
@@ -126,6 +127,57 @@
" */\n"
"void unregisterClassLoader(String fqn) throws RegionNotFoundException;"
msgstr ""
+"/**\n"
+" * Sets whether marshalling uses scoped class loaders on a per region "
+"basis.\n"
+" *\n"
+" * This property must be set to true before any call to\n"
+" * {@link #registerClassLoader(String, ClassLoader)} or\n"
+" * {@link #activateRegion(String)}\n"
+" *\n"
+" * @param isTrue\n"
+" */\n"
+"void setUseRegionBasedMarshalling(boolean isTrue);\n"
+"\n"
+"/**\n"
+" * Gets whether marshalling uses scoped class loaders on a per region "
+"basis.\n"
+" */\n"
+"boolean getUseRegionBasedMarshalling();\n"
+"\n"
+"/**\n"
+" * Registers the given classloader with <code>TreeCacheMarshaller</code> "
+"for\n"
+" * use in unmarshalling replicated objects for the specified region.\n"
+" *\n"
+" * @param fqn The fqn region. This fqn and its children will use this "
+"classloader for \n"
+" * (un)marshalling.\n"
+" * @param cl The class loader to use\n"
+" *\n"
+" * @throws RegionNameConflictException if <code>fqn</code> is a descendant "
+"of\n"
+" * an FQN that already has a classloader registered.\n"
+" * @throws IllegalStateException if <code>useMarshalling</code> is "
+"<code>false</code>\n"
+" */\n"
+"void registerClassLoader(String fqn, ClassLoader cl) throws "
+"RegionNameConflictException;\n"
+"\n"
+"/**\n"
+" * Instructs the <code>TreeCacheMarshaller</code> to no longer use a "
+"special\n"
+" * classloader to unmarshal replicated objects for the specified region.\n"
+" *\n"
+" * @param fqn The fqn of the root node of region.\n"
+" *\n"
+" * @throws RegionNotFoundException if no classloader has been registered "
+"for\n"
+" * <code>fqn</code>.\n"
+" * @throws IllegalStateException if <code>useMarshalling</code> is "
+"<code>false</code>\n"
+" */\n"
+"void unregisterClassLoader(String fqn) throws RegionNotFoundException;"
#. Tag: para
#: Treecache_marshaller.xml:18
@@ -135,14 +187,13 @@
"classloader-based marshalling should be used. This property should be set as "
"part of normal cache configuration, typically in the cache's XML "
"configuration file:"
-msgstr ""
+msgstr "<literal>UseRegionBasedMarshalling</literal> 属性控制是否应该使用基于类加载器的列集。这个属性应该作为普通缓存配置的一部分来设置,它通常在缓存的 XML 配置文件里进行配置:"
#. Tag: programlisting
#: Treecache_marshaller.xml:21
#, no-c-format
-msgid ""
-"<attribute name=\"UseRegionBasedMarshalling\">true</attribute>"
-msgstr ""
+msgid "<attribute name=\"UseRegionBasedMarshalling\">true</attribute>"
+msgstr "<attribute name=\"UseRegionBasedMarshalling\">true</attribute>"
#. Tag: para
#: Treecache_marshaller.xml:22
@@ -232,8 +283,7 @@
#. Tag: para
#: Treecache_marshaller.xml:55
#, no-c-format
-msgid ""
-"Replication to B fails, as the required classloader is not yet registered."
+msgid "Replication to B fails, as the required classloader is not yet registered."
msgstr ""
#. Tag: para
@@ -714,3 +764,4 @@
"<!-- takes values such as 1.2.3, 1.2.4 and 1.3.0 -->\n"
"<attribute name=\"ReplicationVersion\">1.2.4</attribute>"
msgstr ""
+
More information about the jboss-cvs-commits
mailing list