[jboss-cvs] JBossAS SVN: r78740 - 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
Sun Sep 21 21:57:05 EDT 2008
Author: xhuang at jboss.com
Date: 2008-09-21 21:57:04 -0400 (Sun, 21 Sep 2008)
New Revision: 78740
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/Colophon.po
projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Revision_History.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-22 01:23:54 UTC (rev 78739)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Cache_loaders.po 2008-09-22 01:57:04 UTC (rev 78740)
@@ -8,7 +8,7 @@
"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-13 04:04+1000\n"
+"PO-Revision-Date: 2008-09-22 11:56+1000\n"
"Last-Translator: \n"
"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
@@ -760,7 +760,7 @@
"The <literal>commit()</literal> method tells the CacheLoader to commit the "
"transaction, and the <literal>rollback()</literal> method tells the "
"CacheLoader to discard the changes associated with that transaction."
-msgstr ""
+msgstr "<literal>commit()</literal> 方法通知 CacheLoader 提交事务,而 <literal>rollback()</literal> 方法则通知 CacheLoader 取消和该事务相关联的修改。"
#. Tag: para
#: Cache_loaders.xml:63
@@ -776,6 +776,8 @@
"the contents of the backend store of an existing member. See below for "
"deails."
msgstr ""
+"最后两个方法是 <literal>loadEntireState()</literal> 和"
+"<literal>storeEntireState()</literal>。第一个方法请求 CacheLoader 获得后台存储管理的完整状态并以字节缓冲返回它,第二个方法通知 CacheLoader 用字节缓冲参数替换整个状态。当群集里的每个JBossCache 节点都有自己的本地数据存储(例如,本地数据库)时,这些方法将被使用 - 当新的节点启动时 - 我们得用现有成员的后台存储的内容来初始化它的后台存储。下面是相关细节。"
#. Tag: para
#: Cache_loaders.xml:66
@@ -789,19 +791,19 @@
"cache loader of the node that is receiving the state transfer. Partial state "
"transfers occur when the cache's <literal>activateRegion()</literal> API is "
"used and during the formation of buddy groups if buddy replication is used."
-msgstr ""
+msgstr "<literal>ExtendedCacheLoader</literal> 方法也和状态转移相关。当缓存准备部分状态转移时(那就是,给定全限定名根部的缓存加载器部分状态的转移),<literal>loadState(Fqn)</literal> 方法将被调用。然后调用接收状态转移的节点的缓存加载器上的 <literal>storeState(byte[], Fqn)</literal> 方法。当使用缓存的 <literal>activateRegion()</literal> API 时、或如使用 buddy 复制在组成 buddy 组时,部分状态转移将发生。"
#. Tag: title
#: Cache_loaders.xml:72
#, no-c-format
msgid "Configuration via XML"
-msgstr ""
+msgstr "通过 XML 文件进行配置"
#. Tag: para
#: Cache_loaders.xml:73
#, no-c-format
msgid "The CacheLoader is configured as follows in the JBossCache XML file:"
-msgstr ""
+msgstr "下面的 JBossCache XML 文件配置了 CacheLoader:"
#. Tag: programlisting
#: Cache_loaders.xml:76
@@ -871,6 +873,69 @@
"\n"
" </mbean>"
msgstr ""
+"<!-- ==================================================================== "
+"-->\n"
+" <!-- Defines TreeCache "
+"configuration -->\n"
+" <!-- "
+"==================================================================== -->\n"
+"\n"
+" <mbean code=\"org.jboss.cache.TreeCache\" name=\"jboss.cache:"
+"service=TreeCache\">\n"
+"\n"
+" <!-- New 1.3.x cache loader config block -->\n"
+" <attribute name=\"CacheLoaderConfiguration\">\n"
+" <config>\n"
+" <!-- if passivation is true, only the first cache loader "
+"is used; \n"
+" the rest are ignored -->\n"
+" <passivation>false</passivation>\n"
+" <!-- comma delimited FQNs to preload -->\n"
+" <preload>/</preload>\n"
+" <!-- are the cache loaders shared in a cluster? -->\n"
+" <shared>false</shared>\n"
+"\n"
+" <!-- we can now have multiple cache loaders, which get "
+"chained -->\n"
+" <!-- the 'cacheloader' element may be repeated -->\n"
+" <cacheloader>\n"
+" <class>org.jboss.cache.loader.JDBCCacheLoader</"
+"class>\n"
+" <!-- same as the old CacheLoaderConfig attribute --"
+">\n"
+" <properties>\n"
+" cache.jdbc.driver=com.mysql.jdbc.Driver\n"
+" cache.jdbc.url=jdbc:mysql://localhost:3306/jbossdb\n"
+" cache.jdbc.user=root\n"
+" cache.jdbc.password=\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 \n"
+" to true.\n"
+" An exception is thrown if more than one cache loader "
+"sets this \n"
+" to true. -->\n"
+" <fetchPersistentState>true</"
+"fetchPersistentState>\n"
+" <!-- determines whether this cache loader ignores "
+"writes - defaults \n"
+" to false. -->\n"
+" <ignoreModifications>false</"
+"ignoreModifications>\n"
+" <!-- if set to true, purges the contents of this "
+"cache loader when \n"
+" the cache starts up.\n"
+" Defaults to false. -->\n"
+" <purgeOnStartup>false</purgeOnStartup>\n"
+" </cacheloader>\n"
+"\n"
+" </config>\n"
+" </attribute>\n"
+"\n"
+" </mbean>"
#. Tag: para
#: Cache_loaders.xml:77
@@ -881,7 +946,7 @@
"that this form is <emphasis role=\"deprecated\">DEPRECATED</emphasis> and "
"you will have to replace your cache loader configuration with a block "
"similar to the one above."
-msgstr ""
+msgstr "<emphasis role=\"bold\">请注意:</emphasis>在 JBossCache 1.3.0 之前的版本里,缓存加载器的配置部分和这个类似。但这种格式已经被<emphasis role=\"deprecated\">取消</emphasis>,你得用和上面类似的配置块来进行替代。"
#. Tag: programlisting
#: Cache_loaders.xml:81
@@ -915,6 +980,33 @@
"attribute>\n"
" </mbean>"
msgstr ""
+"<!-- ==================================================================== "
+"-->\n"
+" <!-- Defines TreeCache "
+"configuration -->\n"
+" <!-- "
+"==================================================================== -->\n"
+"\n"
+" <mbean code=\"org.jboss.cache.TreeCache\" name=\"jboss.cache:"
+"service=TreeCache\">\n"
+" <attribute name=\"CacheLoaderClass\">org.jboss.cache.loader."
+"bdbje.BdbjeCacheLoader\n"
+" </attribute>\n"
+" <!-- attribute name=\"CacheLoaderClass\">org.jboss.cache.loader."
+"FileCacheLoader\n"
+" </attribute -->\n"
+" <attribute name=\"CacheLoaderConfig\" replace=\"false\">\n"
+" location=c:\\tmp\\bdbje\n"
+" </attribute>\n"
+" <attribute name=\"CacheLoaderShared\">true</attribute>\n"
+" <attribute name=\"CacheLoaderPreload\">/</attribute>\n"
+" <attribute name=\"CacheLoaderFetchTransientState\">false</"
+"attribute>\n"
+" <attribute name=\"CacheLoaderFetchPersistentState\">true</"
+"attribute>\n"
+" <attribute name=\"CacheLoaderAsynchronous\">true</"
+"attribute>\n"
+" </mbean>"
#. Tag: para
#: Cache_loaders.xml:83
@@ -924,13 +1016,13 @@
"CacheLoader implementation. (Note that, because of a bug in the properties "
"editor in JBoss, backslashes in variables for Windows filenames might not "
"get expanded correctly, so replace=\"false\" may be necessary)."
-msgstr ""
+msgstr "<literal>CacheLoaderClass</literal> 属性定义了 CacheLoader 实现类。(请注意,由于 JBoss 属性编辑器里的一个程序错误,Windows 文件名里的反斜杠可能无法正确展开,所以必须使用 replace=\"false\"。)"
#. Tag: para
#: Cache_loaders.xml:86
#, no-c-format
msgid "The currently available implementations shipped with JBossCache are:"
-msgstr ""
+msgstr "JBossCache 目前带有的实现是:"
#. Tag: para
#: Cache_loaders.xml:91
@@ -940,7 +1032,7 @@
"implementation. The <literal><cacheloader><properties></literal> "
"element needs to contain a \"location\" property, which maps to a directory "
"where the file is located (e.g., \"location=c:\\tmp\")."
-msgstr ""
+msgstr "<literal>FileCacheLoader</literal>,它是一个简单的基于文件系统的实现。<literal><cacheloader><properties></literal> 元素需要包含一个 \"location\" 属性,它对应文件所在的目录(例如,\"location=c:\\tmp\")。"
#. Tag: para
#: Cache_loaders.xml:96
@@ -951,7 +1043,7 @@
"properties></literal> element needs to contain a \"location\" property, "
"which maps to a directory,where the database file for Sleepycat resides (e."
"g., \"location=c:\\tmp\")."
-msgstr ""
+msgstr "<literal>BdbjeCacheLoader</literal>,它是一个基于 Java 版本的 Sleepycat 数据库的 CacheLoader 实现。<literal><cacheloader><properties></literal> 元素需要包含一个 \"location\" 属性,它对应 Sleepycat 的数据库文件所在的目录(例如,\"location=c:\\tmp\")。"
#. Tag: para
#: Cache_loaders.xml:101
@@ -962,7 +1054,7 @@
"cacheloader><properties></literal> element contains a number of "
"properties needed to connect to the database such as username, password, and "
"connection URL. See the section on JDBCCacheLoader for more details."
-msgstr ""
+msgstr "<literal>JDBCCacheLoader</literal>,它是一个使用 JDBC 来访问任何关系型数据库的 CacheLoader 实现。<literal><cacheloader><properties></literal> 元素包含一些用来连接数据库的属性,如用户名、密码和连接的 URL。更多细节请参看 JDBCCacheLoader 章节。"
#. Tag: para
#: Cache_loaders.xml:106
@@ -970,7 +1062,7 @@
msgid ""
"<literal>LocalDelegatingCacheLoader</literal>, which enables loading from "
"and storing to another local (same VM) TreeCache."
-msgstr ""
+msgstr "<literal>LocalDelegatingCacheLoader</literal>,它启用从其他本地(同一虚拟机内)TreeCache 里加载或进行存储。"
#. Tag: para
#: Cache_loaders.xml:111
@@ -980,7 +1072,7 @@
"storing to a remote (different VM) TreeCache using TCP as the transport "
"mechanism. This CacheLoader is available in JBossCache version 1.3.0 and "
"above."
-msgstr ""
+msgstr "<literal>TcpDelegatingCacheLoader</literal>,它启用以 TCP 传输机制从其他远程(不同虚拟机内)TreeCache 里加载或进行存储。JBossCache 1.3.0 以及更高版本里包含了这个 CacheLoader。"
#. Tag: para
#: Cache_loaders.xml:116
@@ -996,6 +1088,8 @@
"\"<literal>timeout = 3000</literal>\" would use a timeout value of 3 "
"seconds. This CacheLoader is available in JBossCache version 1.3.0 and above."
msgstr ""
+"<literal>ClusteredCacheLoader</literal>,它允许通过用来复制数据的相同群集协议来查询相同群集里的其他缓存的内存数据。写入<emphasis role=\"bold\">不会</emphasis>进行存储,因为复制将负责所需的任何更新。你需要指定一个 \"<literal>timeout</literal>"
+"\" 属性,这个长整型值告诉缓存加载器在获取群集响应前该等待多久(毫秒)才假定为空值。例如,\"<literal>timeout = 3000</literal>\" 将指定超时时间为 3 秒。JBossCache 1.3.0 以及更高版本里包含了这个 CacheLoader。"
#. Tag: para
#: Cache_loaders.xml:121
@@ -1006,6 +1100,8 @@
"requires a commercial license if distributed with an application (see http://"
"www.sleepycat.com/jeforjbosscache for details)."
msgstr ""
+"请注意,Sleepycat 实现比基于文件系统的实现效率要高得多,而且它提供事务性保证。但是,如果随应用程序发行,你需要一个商业的许可证(相关细节请参考 http://"
+"www.sleepycat.com/jeforjbosscache)。"
#. Tag: para
#: Cache_loaders.xml:124
@@ -1013,7 +1109,7 @@
msgid ""
"An implementation of CacheLoader has to have an empty constructor due to the "
"way it is instantiated."
-msgstr ""
+msgstr "根据其初始化的方式,CacheLoader 的实现必须具有一个空的构造函数。"
#. Tag: para
#: Cache_loaders.xml:127
@@ -1029,6 +1125,8 @@
"<literal>CacheLoaderConfig</literal> attribute in pre-1.3.0 configurations.</"
"emphasis>"
msgstr ""
+"<literal>properties</literal> 元素定义了一个给定实现的专有配置。例如,基于文件系统的实现定义了所使用的根目录,而数据库实现则定义了建立连接所需的数据库 URL、用户名和密码。这个配置将通过 <literal>CacheLoader.setConfig(Properties)</literal> 传给 CacheLoader 实现。请注意,空格可能需要使用脱字符。<emphasis>和 1.3.0 之前的版本的 <literal>CacheLoaderConfig</literal> 属性类似。</"
+"emphasis>"
#. Tag: para
#: Cache_loaders.xml:130
@@ -1125,7 +1223,7 @@
msgid ""
"A CacheLoader can be used to enforce node passivation and activation on "
"eviction in a TreeCache."
-msgstr ""
+msgstr "在 TreeCache 里,CacheLoader 可以用于在逐出时强制节点钝化和激活。"
#. Tag: para
#: Cache_loaders.xml:155
@@ -1137,7 +1235,7 @@
"process of restoring an object from the data store into the in-memory cache "
"when it's needed to be used. In both cases, the configured CacheLoader will "
"be used to read from the data store and write to the data store."
-msgstr ""
+msgstr "<emphasis>缓存钝化(Cache Passivation)</emphasis>是在逐出时从内存缓存里删除对象并将其写入到二级数据存储(如文件系统、数据库)里的过程。<emphasis>缓存激活(Cache Activation)</emphasis>是在需要时从数据存储里把对象恢复到内存缓存里的过程。在两种情况下,所配置的 CacheLoader 都被用来从/向数据存储读取/写入。"
#. Tag: para
#: Cache_loaders.xml:158
@@ -1152,7 +1250,7 @@
"children have been loaded, they're removed from the cache loader and a "
"notification is emitted to the tree cache listeners that the node has been "
"activated."
-msgstr ""
+msgstr "当所实施的逐出策略调用 evict() 来从缓存里逐出节点时,如果启用了钝化,节点正被钝化的通知将被发送给 tree cache listener,该节点及其子节点将被存储在缓存加载器存储里。当用户调用早前被逐出的节点的 get() 时,该节点将从缓存加载器存储中加载(lazy 方式)到内存缓存里。当该节点及其子节点已经被加载后,它们将从缓存加载器里删除并发送节点被激活的通知到 tree cache listener。"
#. Tag: para
#: Cache_loaders.xml:161
@@ -1164,18 +1262,20 @@
"element when configuring a cache loader. When passivation is used, only the "
"first cache loader configured is used. All others are ignored."
msgstr ""
+"要启用缓存的钝化/激活,你可以设置 <literal>passivation</"
+"literal> 为 true。它的缺省值为 false。你可以通过 XML 缓存配置文件来进行设置。上面的 XML 显示了 <literal>passivation</literal> 元素。当使用钝化时,只有配置的第一个缓存加载器将被使用。其他的都会被忽略。"
#. Tag: title
#: Cache_loaders.xml:167
#, no-c-format
msgid "CacheLoader use cases"
-msgstr ""
+msgstr "CacheLoader 示例"
#. Tag: title
#: Cache_loaders.xml:169
#, no-c-format
msgid "Local cache with store"
-msgstr ""
+msgstr "带有存储的本地缓存"
#. Tag: para
#: Cache_loaders.xml:170
@@ -1187,7 +1287,7 @@
"modifications back to the store. When the cache is started, depending on the "
"<literal>preload</literal> element, certain data can be preloaded, so that "
"the cache is partly warmed up."
-msgstr ""
+msgstr "这是最简单的情况。我们有一个模式为 <literal>LOCAL</literal> 的 JBossCache 实例,因此不会进行任何复制。CacheLoader 只是简单地从存储加载 non-existing 元素并将修改写入存储里。当启动缓存时,根据 <literal>preload</literal> 元素某些数据将被预先加载,因此缓存可以部分地热身。"
#. Tag: para
#: Cache_loaders.xml:173
@@ -1197,26 +1297,25 @@
"database or a filesystem, and when accessing fields of a POJO, they will be "
"lazily loaded using the CacheLoader to access a backend store. This feature "
"effectively provides simple persistency for any POJO."
-msgstr ""
+msgstr "当使用 PojoCache 时,整个 POJO 可以存储在数据库或文件系统里,当访问 POJO 的字段时,它们将使用 CacheLoader 进行 lazy 加载来访问后台存储。这个功能为任何 POJO 有效地提供了持久性。"
#. Tag: title
#: Cache_loaders.xml:179
#, no-c-format
msgid "Replicated caches with all nodes sharing the same store"
-msgstr ""
+msgstr "带有共享相同的存储的复制性缓存"
#. Tag: para
#: Cache_loaders.xml:180
#, no-c-format
-msgid ""
-"The following figure shows 2 JBossCache nodes sharing the same backend store:"
-msgstr ""
+msgid "The following figure shows 2 JBossCache nodes sharing the same backend store:"
+msgstr "下面的图例显示了共享相同后台存储的两个 JBossCache 节点:"
#. Tag: title
#: Cache_loaders.xml:184
#, no-c-format
msgid "2 nodes sharing a backend store"
-msgstr ""
+msgstr "共享后台存储的两个节点"
#. Tag: para
#: Cache_loaders.xml:191
@@ -1233,7 +1332,7 @@
"mean that individual caches in a cluster might have different in-memory "
"state at any given time (largely depending on their preloading and eviction "
"strategies)."
-msgstr ""
+msgstr "两个节点都有一个可访问共享后台存储的 CacheLoader。这可以是一个共享文件系统(使用 FileCacheLoader),也可以是共享数据库。因为两个节点都访问相同的存储,它们并不需要在启动时进行状态转移。<footnote><para> 如果它们希望在启动后具有 warm 或 hot 缓存,当然也可以启用状态转。</para> </footnote><literal>FetchInMemoryState</literal> 属性可以设置为 false 来设置 'cold' 缓存,当元素第一次被访问和加载开始,它会逐渐热身。这意味着群集里的单个缓存在任何给定时间可以有不同的内存状态(很大程度取决于它们的预加载和逐出策略)。"
#. Tag: para
#: Cache_loaders.xml:197
@@ -1243,19 +1342,19 @@
"backend store. For example, if node1 made change C1 and node2 C2, then node1 "
"would tell its CacheLoader to store C1, and node2 would tell its CacheLoader "
"to store C2."
-msgstr ""
+msgstr "当存储值时,写入者将负责在后台存储里存储修改。例如,如果 node1 进行了修改 C1 而 node2 的修改为 C2,那么 node1 将告诉其 CacheLoader 来存储 C1,而 node2 将告诉其 CacheLoader 来存储 C2。"
#. Tag: title
#: Cache_loaders.xml:203
#, no-c-format
msgid "Replicated caches with only one node having a store"
-msgstr ""
+msgstr "只有单一节点具有后台存储的复制性缓存"
#. Tag: title
#: Cache_loaders.xml:205
#, no-c-format
msgid "2 nodes but only one accesses the backend store"
-msgstr ""
+msgstr "两个节点中只有一个可访问后台存储"
#. Tag: para
#: Cache_loaders.xml:212
@@ -1270,19 +1369,19 @@
"is <emphasis>not</emphasis> on the caller's thread, in order not to slow "
"down the cluster by accessing (for example) a database. This is a non-issue "
"when using asynchronous replication."
-msgstr ""
+msgstr "这和前面的情况类似,但只有一个节点通过其 CacheLoader 和后台存储交互。所有其他节点执行内存复制。HTTP 会话复制就是这样的一个例子,它所有的节点在内存里复制制会话,而其中一个节点把会话保存到持久性后台存储。请注意,对于 CacheLoader 来说,异步地存储修改也是有其用途的,那就是<emphasis>不</emphasis>在调用这线程进行,为的是不会因为访问数据库(假设)而降低群集效率。而使用同步复制的话,这不会成为问题。"
#. Tag: title
#: Cache_loaders.xml:218
#, no-c-format
msgid "Replicated caches with each node having its own store"
-msgstr ""
+msgstr "每个节点都有自己的存储的复制性缓存"
#. Tag: title
#: Cache_loaders.xml:220
#, no-c-format
msgid "2 nodes each having its own backend store"
-msgstr ""
+msgstr "两个节点都有自己的后台存储"
#. Tag: para
#: Cache_loaders.xml:227
@@ -1294,7 +1393,7 @@
"changes synchronously and in a transaction, the two phase commit protocol "
"takes care that all modifications are replicated and persisted in each "
"datastore, or none is replicated and persisted (atomic updates)."
-msgstr ""
+msgstr "每个节点都有自己的数据库。对缓存的修改将被(a)跨群集进行复制(b)用 CacheLoader 进行持久化。这意味着所有的数据存储都具有刚好相同的状态。当在事务里同步地复制性修改时,两阶段提交协议负责复制所有的修改并持久化在各自的数据存储里,或者都不复制和持久化(原子的更新)。"
#. Tag: para
#: Cache_loaders.xml:230
@@ -1304,7 +1403,7 @@
"that means it doesn't implement recovery. When used with a "
"TransactionManager that supports recovery, this functionality is not "
"available."
-msgstr ""
+msgstr "请注意,JBossCache 目前还<emphasis>不</emphasis>是 XAResource,也就是说它不能实现恢复(Recovery)。当和支持恢复的 TransactionManager 一起使用时,这个功能是不可用的。"
#. Tag: para
#: Cache_loaders.xml:233
@@ -1312,13 +1411,13 @@
msgid ""
"The challenge here is state transfer: when a new node starts it needs to do "
"the following:"
-msgstr ""
+msgstr "这里的问题是状态转移:当新节点启动时,它需要完成下列事情:"
#. Tag: para
#: Cache_loaders.xml:238
#, no-c-format
msgid "Tell the coordinator (oldest node in a cluster) to send it the state"
-msgstr ""
+msgstr "告诉协调者(群集里的最老的节点)向其发送状态"
#. Tag: para
#: Cache_loaders.xml:243
@@ -1327,7 +1426,7 @@
"The coordinator then needs to wait until all in-flight transactions have "
"completed. During this time, it will not allow for new transactions to be "
"started."
-msgstr ""
+msgstr "协调者然后需要等待,知道所有事务已经完成。在此期间,它不会允许启动新的事务。"
#. Tag: para
#: Cache_loaders.xml:248
@@ -1336,7 +1435,7 @@
"Then the coordinator asks its CacheLoader for the entire state using "
"<literal>loadEntireState()</literal>. It then sends back that state to the "
"new node."
-msgstr ""
+msgstr "然后,协调者将用 <literal>loadEntireState()</literal> 向其 CacheLoader 请求完整的状态。它然后把状态回送给新的节点。"
#. Tag: para
#: Cache_loaders.xml:253
@@ -1346,6 +1445,8 @@
"overwriting the old state. This is the <literal>CacheLoader.storeEntireState"
"()</literal> method"
msgstr ""
+"新的节点然后告诉它的 CacheLoader 把这个状态存储在自己的存储里,并覆盖旧的状态。这使用 <literal>CacheLoader.storeEntireState"
+"()</literal> 方法。"
#. Tag: para
#: Cache_loaders.xml:258
@@ -1353,7 +1454,7 @@
msgid ""
"As an option, the transient (in-memory) state can be transferred as well "
"during the state transfer."
-msgstr ""
+msgstr "在状态转移过程中,作为一个可选步骤,临时(内存)状态也可以被转移。"
#. Tag: para
#: Cache_loaders.xml:263
@@ -1362,13 +1463,13 @@
"The new node now has the same state in its backend store as everyone else in "
"the cluster, and modifications received from other nodes will now be "
"persisted using the local CacheLoader."
-msgstr ""
+msgstr "新的节点现在在其后台存储里具有和群集里其他任何节点相同的状态了,从其他节点接收的的修改将用本地的 CacheLoader 来持久化。"
#. Tag: title
#: Cache_loaders.xml:271
#, no-c-format
msgid "Hierarchical caches"
-msgstr ""
+msgstr "分层的缓存"
#. Tag: para
#: Cache_loaders.xml:272
@@ -1378,7 +1479,7 @@
"<literal>LocalDelegatingCacheLoader</literal>. This type of hierarchy can "
"currently only be set up programmatically. The code below shows how a first-"
"level cache delegates to a local second-level cache:"
-msgstr ""
+msgstr "如果你想在同一虚拟机里设立分层缓存,你可以使用 <literal>LocalDelegatingCacheLoader</literal>。这种类型的分层缓存目前只能在程序里设立。下面的代码显示第一级的缓存如何委托给本地二级缓存的:"
#. Tag: programlisting
#: Cache_loaders.xml:275
@@ -1405,6 +1506,26 @@
"// start firstLevel\n"
"firstLevel.startService();"
msgstr ""
+"TreeCache firstLevel, secondLevel;\n"
+"LocalDelegatingCacheLoader cache_loader;\n"
+"\n"
+"// create and configure firstLevel\n"
+"firstLevel=new TreeCache();\n"
+"\n"
+"// create and configure secondLevel\n"
+"secondLevel=new TreeCache();\n"
+"\n"
+"// create DelegatingCacheLoader\n"
+"cache_loader=new LocalDelegatingCacheLoader(secondLevel);\n"
+"\n"
+"// set CacheLoader in firstLevel\n"
+"firstLevel.setCacheLoader(cache_loader);\n"
+"\n"
+"// start secondLevel\n"
+"secondLevel.startService();\n"
+"\n"
+"// start firstLevel\n"
+"firstLevel.startService();"
#. Tag: para
#: Cache_loaders.xml:276
@@ -1418,7 +1539,7 @@
"any reason, the second cache in the cluster to come online becomes the "
"coordinator and so on. The XML below shows how to configure a cluster using "
"<literal>RpcDelegatingCacheLoader</literal>:"
-msgstr ""
+msgstr "如果你需要设立跨虚拟机但在同一群集里的分层缓存,你可以使用 <literal>RpcDelegatingCacheLoader</literal>,它把所有的非协调者缓存的缓存加载请求委托给群集的协调者缓存。协调者缓存是群集里最先上线的缓存。请注意,如果协调者缓存由于任何原因离开了群集,那么群集里的第二个缓存将成为协调者。下面的 XML 片段显示了如何用 <literal>RpcDelegatingCacheLoader</literal> 配置群集:"
#. Tag: programlisting
#: Cache_loaders.xml:279
@@ -1464,6 +1585,45 @@
"...\n"
"</mbean>"
msgstr ""
+"<!-- ==================================================================== "
+"-->\n"
+"<!-- Defines TreeCache configuration "
+"-->\n"
+"<!-- ==================================================================== "
+"-->\n"
+"\n"
+"<mbean code=\"org.jboss.cache.TreeCache\" name=\"jboss.cache:"
+"service=TreeCache\">\n"
+"...\n"
+"<attribute name=\"CacheLoaderConfiguration\">\n"
+" <config>\n"
+" <passivation>false</passivation>\n"
+" <preload>/some/stuff</preload>\n"
+" <cacheloader>\n"
+" <class>org.jboss.cache.loader.RpcDelegatingCacheLoader</"
+"class>\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>false</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 \n"
+" the cache starts up.\n"
+" Defaults to false. -->\n"
+" <purgeOnStartup>false</purgeOnStartup>\n"
+" </cacheloader>\n"
+" </config>\n"
+"</attribute>\n"
+"...\n"
+"</mbean>"
#. Tag: para
#: Cache_loaders.xml:280
@@ -1472,13 +1632,13 @@
"Note that currently (JBossCache 1.3.0) this cache loader is not well "
"supported, and has not been tested. We suggest to use "
"TcpDelegatingCacheLoader instead (see next)."
-msgstr ""
+msgstr "请注意,对于这个缓存加载器,目前 JBossCache 1.3.0 支持的还不是很好,且没有进行测试。我们建议你使用 TcpDelegatingCacheLoader(下面将介绍)。"
#. Tag: title
#: Cache_loaders.xml:286
#, no-c-format
msgid "TcpDelegatingCacheLoader"
-msgstr ""
+msgstr "TcpDelegatingCacheLoader"
#. Tag: para
#: Cache_loaders.xml:287
@@ -1489,7 +1649,7 @@
"different process on the same host, or (c) in a different process on a "
"different host. Option (a) is mostly used for unit testing, and the "
"envisaged use is (b) and (c)."
-msgstr ""
+msgstr "这个缓存加载器允许把加载和存储委托给另外一个 JBossCache 实例,它可以驻留在(a)相同的地址空间,(b)在同一主机的不同进程里,或(c)在不同主机的不同进程里。对于单元测试,选项 a 最为常用,而 b 和 c 是以后的用法。"
#. Tag: para
#: Cache_loaders.xml:290
@@ -1512,8 +1672,7 @@
#. Tag: para
#: Cache_loaders.xml:296
#, no-c-format
-msgid ""
-"An example set of a TcpCacheServer running inside of JBoss is shown below:"
+msgid "An example set of a TcpCacheServer running inside of JBoss is shown below:"
msgstr ""
#. Tag: programlisting
@@ -1655,8 +1814,7 @@
#. Tag: para
#: Cache_loaders.xml:332
#, no-c-format
-msgid ""
-"An example set of an RmiCacheServer running inside of JBoss is shown below:"
+msgid "An example set of an RmiCacheServer running inside of JBoss is shown below:"
msgstr ""
#. Tag: programlisting
@@ -1933,8 +2091,7 @@
#. Tag: para
#: Cache_loaders.xml:430
#, no-c-format
-msgid ""
-"<emphasis>cache.jdbc.driver</emphasis> - fully qualified JDBC driver name."
+msgid "<emphasis>cache.jdbc.driver</emphasis> - fully qualified JDBC driver name."
msgstr ""
#. Tag: para
@@ -1946,8 +2103,7 @@
#. Tag: para
#: Cache_loaders.xml:436
#, no-c-format
-msgid ""
-"<emphasis>cache.jdbc.user</emphasis> - user name to connect to the database."
+msgid "<emphasis>cache.jdbc.user</emphasis> - user name to connect to the database."
msgstr ""
#. Tag: para
@@ -2064,3 +2220,4 @@
" </config>\n"
"</attribute>"
msgstr ""
+
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Colophon.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Colophon.po 2008-09-22 01:23:54 UTC (rev 78739)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Colophon.po 2008-09-22 01:57:04 UTC (rev 78740)
@@ -1,26 +1,28 @@
+# translation of Colophon.po to
msgid ""
msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: Colophon\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-09-21 04:43+0000\n"
-"PO-Revision-Date: 2007-04-17 00:25-0500\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-22 09:02+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: Colophon.xml:4
#, no-c-format
msgid "Bibliography"
-msgstr ""
+msgstr "参考书目"
#. Tag: title
#: Colophon.xml:5
#, no-c-format
msgid "Authors"
-msgstr ""
+msgstr "作者"
#. Tag: author
#: Colophon.xml:6
@@ -29,6 +31,8 @@
"<honorific>Mr</honorific><firstname>Norman</firstname> <surname>Walsh</"
"surname>"
msgstr ""
+"<honorific>Mr</honorific><firstname>Norman</firstname> <surname>Walsh</"
+"surname>"
#. Tag: affiliation
#: Colophon.xml:9
@@ -38,21 +42,25 @@
"jobtitle><orgname>ArborText, Inc.</orgname><orgdiv>Application Developement</"
"orgdiv>"
msgstr ""
+"<shortaffil>ATI</shortaffil><jobtitle>Senior Application Analyst</"
+"jobtitle><orgname>ArborText, Inc.</orgname><orgdiv>Application Developement</"
+"orgdiv>"
#. Tag: title
#: Colophon.xml:11
#, no-c-format
msgid "Translator"
-msgstr ""
+msgstr "翻译者"
#. Tag: othercredit
#: Colophon.xml:12
#, no-c-format
msgid "<firstname>John</firstname> <surname>Doe</surname>"
-msgstr ""
+msgstr "<firstname>John</firstname> <surname>Doe</surname>"
#. Tag: contrib
#: Colophon.xml:14
#, no-c-format
msgid "Extensive review and rough drafts of Section 1.3, 1.4, and 1.5"
-msgstr ""
+msgstr "1.3、1.4 和 1.5 章节的修订和草稿"
+
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Revision_History.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Revision_History.po 2008-09-22 01:23:54 UTC (rev 78739)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Revision_History.po 2008-09-22 01:57:04 UTC (rev 78740)
@@ -1,3 +1,4 @@
+# translation of Revision_History.po to
# Language zh-CN translations for package.
# Automatically generated, 2008.
#
@@ -3,23 +4,25 @@
msgid ""
msgstr ""
-"Project-Id-Version: \n"
+"Project-Id-Version: Revision_History\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-21 04:43+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-22 08:59+1000\n"
+"Last-Translator: \n"
+"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: Revision_History.xml:6
#, no-c-format
msgid "Revision History"
-msgstr ""
+msgstr "修订历史记录"
#. Tag: author
#: Revision_History.xml:12
#, no-c-format
msgid "<firstname></firstname> <surname></surname> <email></email>"
-msgstr ""
+msgstr "<firstname></firstname> <surname></surname> <email></email>"
+
More information about the jboss-cvs-commits
mailing list