[jboss-cvs] JBossAS SVN: r76633 - projects/docs/enterprise/4.3/Cache/Cache_Tutorial/zh-CN.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Aug 5 01:15:49 EDT 2008
Author: xhuang at jboss.com
Date: 2008-08-05 01:15:47 -0400 (Tue, 05 Aug 2008)
New Revision: 76633
Modified:
projects/docs/enterprise/4.3/Cache/Cache_Tutorial/zh-CN/Cache_Tutorial.po
Log:
update
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tutorial/zh-CN/Cache_Tutorial.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tutorial/zh-CN/Cache_Tutorial.po 2008-08-05 05:00:25 UTC (rev 76632)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tutorial/zh-CN/Cache_Tutorial.po 2008-08-05 05:15:47 UTC (rev 76633)
@@ -8,7 +8,7 @@
"Project-Id-Version: Cache_Tutorial\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-07-24 03:55+0000\n"
-"PO-Revision-Date: 2008-08-05 14:20+1000\n"
+"PO-Revision-Date: 2008-08-05 15:15+1000\n"
"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
@@ -952,6 +952,9 @@
"the same file system). Please make sure that <literal>c:\\tmp</literal> "
"exists, or point the config string to a different existing directory."
msgstr ""
+"<literal>FetchStateOnStartup</literal> 属性设置为 <literal>false</"
+"literal> 表示新近启动的缓存将<emphasis>不会</emphasis>试图存取状态(临时或永久状态)。因此,<literal>CacheLoaderFetchTransientState</literal> 和 <literal>CacheLoaderFetchTransientState</literal> 属性将被忽略。<literal>CacheLoaderShared</literal> 设置为 <literal>true</literal> 表示两个节点将共享相同的数据库,在这个例子里是 <literal>c:"
+"\\tmp</literal>(假设这两个节点都访问相同的文件系统)。请确保 <literal>c:\\tmp</literal> 目录存在,或者使 config 指向另外一个现有的目录。"
#. Tag: para
#: Cache_Tutorial.xml:229
@@ -965,7 +968,7 @@
"recursively pre-loaded. This is probably a bad configuration when you have a "
"lot of data in the cache, because <emphasis>all</emphasis> of your data will "
"be loaded into the cache."
-msgstr ""
+msgstr "这个配置基本上是为两个<literal>冷</literal>节点提供的,新缓存里的所有内容都位于数据库里,当需要访问时通过 CacheLoader 进行 lazy 加载。然而,这未必是事实,因为 <literal>CacheLoaderPreload</literal> 指向整个树的根 \"/\"。因此,这个缓存的所有内容都会递归地进行预加载。如果缓存里的数据很多,这可能是一个差的配置,因为<emphasis>所有</emphasis>数据都会被载入到缓存里。"
#. Tag: para
#: Cache_Tutorial.xml:232
@@ -974,7 +977,7 @@
"Note that with a shared datastore, the node that makes a modification is the "
"one who writes it to the store using the CacheLoader. This prevents both "
"nodes from writing the same data twice."
-msgstr ""
+msgstr "请注意,由于使用共享的数据库,产生改动的节点就是用 CacheLoader 写入数据库的节点。这阻止了两个节点修改相同的数据。"
#. Tag: para
#: Cache_Tutorial.xml:235
@@ -1084,7 +1087,9 @@
"sharing the same datastore, each node has its own datastore. The "
"configuration is in file <literal>jboss-cache/output/etc/META-INF/node{1,2}."
"xml</literal> . We'll look at node1.xml:"
-msgstr "在这个例子里,"
+msgstr ""
+"在这个例子里,我们还将运行两个节点。但这次每个节点都会有自己的数据库而不是共享数据库。配置文件是 <literal>jboss-cache/output/etc/META-INF/node{1,2}."
+"xml</literal>。我们来看看 node1.xml:"
#. Tag: programlisting
#: Cache_Tutorial.xml:251
@@ -1104,6 +1109,19 @@
" <attribute name=\"CacheLoaderFetchPersistentState\">"
"true</attribute>"
msgstr ""
+"<attribute name=\"CacheLoaderClass\">org.jboss.cache.loader.bdbje."
+"BdbjeCacheLoader</attribute>\n"
+" <attribute name=\"CacheLoaderConfig\">\n"
+" location=c:\\\\tmp\\\\node1\n"
+" </attribute>\n"
+" <attribute name=\"CacheLoaderShared\">false</"
+"attribute>\n"
+" <attribute name=\"CacheLoaderPreload\">/</"
+"attribute>\n"
+" <attribute name=\"CacheLoaderFetchTransientState\">"
+"false</attribute>\n"
+" <attribute name=\"CacheLoaderFetchPersistentState\">"
+"true</attribute>"
#. Tag: para
#: Cache_Tutorial.xml:252
@@ -1120,6 +1138,8 @@
"and each machine would run one JBossCache process. Note that the 2 "
"directories have to exis"
msgstr ""
+"在 <literal>CacheLoaderClass</literal> 里,我们再次使用了 Sleepycat CacheLoader 实现。<literal>CacheLoaderConfig</"
+"literal> 指向 <literal>c:\\tmp\\node1</literal>。这是 node1 的 Sleepycat DB 所在的目录。node2.xml 有一个指向 <literal>c:\\tmp\\node2</literal> 的配置,所以我们将有两个不同的非共享数据库。请注意,因为这个两个节点运行在相同的机器上,所以我们仍会有相同的文件系统。在实践中,这两个目录将存在不同的机器上,每台机器将运行一个 JBossCache 进程。请注意这两个目录必须是现有的目录。"
#. Tag: para
#: Cache_Tutorial.xml:255
@@ -1128,6 +1148,8 @@
"To create an unshared datastore, we set the <literal>CacheLoaderShared</"
"literal> attribute to <literal>false</literal> ."
msgstr ""
+"要创建非共享的数据库,我们要把 <literal>CacheLoaderShared</"
+"literal> 属性设置为 <literal>false</literal>。"
#. Tag: para
#: Cache_Tutorial.xml:258
@@ -1135,7 +1157,7 @@
msgid ""
"The example can be run by again opening 2 shells, and running 2 ANT targets "
"(here we show the target for node1):"
-msgstr ""
+msgstr "打开两个 shell 并运行两个 ANT 目标,我们可以运行这个例子。下面是用于 node1 的目标:"
#. Tag: programlisting
#: Cache_Tutorial.xml:261
@@ -1154,6 +1176,18 @@
" [java] ** node loaded: /a/a2\n"
" ..."
msgstr ""
+"bela at laptop /cygdrive/c/jboss-cache\n"
+" $ ./build.sh run.demo.unshared.node2\n"
+" Buildfile: build.xml\n"
+"\n"
+" init:\n"
+"\n"
+" compile:\n"
+"\n"
+" run.demo.unshared.node2:\n"
+" [java] ** node loaded: /a\n"
+" [java] ** node loaded: /a/a2\n"
+" ..."
#. Tag: para
#: Cache_Tutorial.xml:262
@@ -1165,13 +1199,13 @@
"to the other node, and persisted in both local datastores. You can kill and "
"restart a node, or even both nodes, and the data will still be available due "
"to the persistent backend store(s)."
-msgstr ""
+msgstr "<literal>run.demo.unshared.node2</literal> 目标运行 node2,它将有自己的数据库 <literal>c:\\tmp\\node2</literal>。只要这两个节点中的一个有任何改动,它将复制到另外一个节点且持久化到两者的本地数据库里。你可以中止并重启一个或这两个节点,由于数据已经持久化到后台数据库里,所以数据仍然可用。"
#. Tag: title
#: Cache_Tutorial.xml:267
#, no-c-format
msgid "Troubleshooting"
-msgstr ""
+msgstr "故障解除"
#. Tag: para
#: Cache_Tutorial.xml:268
@@ -1179,7 +1213,7 @@
msgid ""
"Here are some tips for troubleshooting, if you encounter problems during "
"this demo."
-msgstr ""
+msgstr "如果你在运行演示程序时遇到问题,下面是一些故障解除的要点。"
#. Tag: para
#: Cache_Tutorial.xml:273
@@ -1189,13 +1223,13 @@
"JGroups package. On the output window, you can see the JGroups membership "
"view. See if it is updated when you run the BSH commands. It should show a "
"view with at least two members. For example, on my window, I see"
-msgstr ""
+msgstr "大多数情况下,问题会来自缓存复制层,也就是 JGroups 软件包。在输出窗口,你可以看到 JGroups 成员资格视图。当你运行 BSH 命令时请注意它是否给更新。它应该显示至少两个成员。例如,在我的窗口里,我可以看到:"
#. Tag: programlisting
#: Cache_Tutorial.xml:276
#, no-c-format
msgid "[java] ** view change: [BWANG-HOME:4381|1] [BWANG-HOME:4381, BWANG-HOME:4383]"
-msgstr ""
+msgstr "[java] ** view change: [BWANG-HOME:4381|1] [BWANG-HOME:4381, BWANG-HOME:4383]"
#. Tag: para
#: Cache_Tutorial.xml:277
@@ -1208,4 +1242,6 @@
"have problem with this, please consult the <ulink url=\"http://www.jgroups."
"org/javagroupsnew/docs/index.html\">JGroups website </ulink>"
msgstr ""
+"成员 4381 和 4383。从另一方面来说,如果你没有关闭前面运行的缓存实例,成员资格视图也将包括以前的实例。这会混淆状态。所以你得确保在运行演示程序前,没有其他 TreeCache 进程在运行。如果有任何的问题,请访问 <ulink url=\"http://www.jgroups."
+"org/javagroupsnew/docs/index.html\">JGroups website </ulink>。"
More information about the jboss-cvs-commits
mailing list