[jboss-cvs] JBossAS SVN: r76630 - 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 00:22:55 EDT 2008


Author: xhuang at jboss.com
Date: 2008-08-05 00:22:55 -0400 (Tue, 05 Aug 2008)
New Revision: 76630

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 04:19:01 UTC (rev 76629)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tutorial/zh-CN/Cache_Tutorial.po	2008-08-05 04:22:55 UTC (rev 76630)
@@ -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-07-24 16:14+1000\n"
+"PO-Revision-Date: 2008-08-05 14:20+1000\n"
 "Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -332,7 +332,7 @@
 #: Cache_Tutorial.xml:131
 #, no-c-format
 msgid "The two demo programs to run are:"
-msgstr ""
+msgstr "下面是两个演示程序:"
 
 #. Tag: para
 #: Cache_Tutorial.xml:136
@@ -346,6 +346,8 @@
 "for now, operation on aop cache from the GUI will not always work (unless it "
 "is a String type)."
 msgstr ""
+"在第一个 GUI 窗口里,输入 <literal>sh build.sh </literal> 可以看到可用的命令。要运行这个 GUI,输入 <literal>sh build.sh run.demo</"
+"literal>。它将启动一个 PojoCache GUI。然后,你可以点击某个节点来查看其内容。请注意你也可以添加/修改节点的非 AOP 缓存条目。既然 GUI 条目现在只接受字符串,对 AOP 缓存的操作并非总能进行(除非是字符串类型)。"
 
 #. Tag: para
 #: Cache_Tutorial.xml:141
@@ -356,13 +358,13 @@
 "^D or ^Z in Windows and Unix to exit afterward). You can then read in the "
 "Java code scripts to showcase the cache capabilities (e.g., plain.bsh, aop."
 "bsh, and aopWithTx.bsh). See the following for details."
-msgstr ""
+msgstr "在用于交互式 Java 命令的第二个窗口里,输入 sh runShellDemo。sh 用来启动 BeanShell 的交互式命令行 shell(之后你可以用 ^D 或 ^Z 来退出)。你可以在 Java 脚本里进行读取来展示缓存能力(如 plain.bsh、aop.bsh 和 aopWithTx.bsh)。详情请参考下面的内容。"
 
 #. Tag: title
 #: Cache_Tutorial.xml:148
 #, no-c-format
 msgid "Plain cache"
-msgstr ""
+msgstr "Plain 缓存"
 
 #. Tag: para
 #: Cache_Tutorial.xml:149
@@ -376,7 +378,7 @@
 "pathname of plain.bsh). Basically, the script will create cache entries that "
 "will be replicated onto the GUI. (You may have to type show() into the "
 "resulting beanshell window yourself) Here are the snippets for the script:"
-msgstr ""
+msgstr "你可以在 shell 里执行脚本来填充缓存或通过命令行手工输入内容。要运行脚本,你可以在交互式 BSH shell 里输入 <literal>sourceRelative(\"plain.bsh\");</literal>。你需要把 plain.bsh 所在的目录设置为自己的工作目录(或者指定 plain.sh 的完整路径)。基本上,这个脚本会创建将被复制到 GUI 上的缓存条目(你可能得自己在结果 beanshell 窗口输入 show())。下面是这个脚本的一些片段:"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:152
@@ -394,6 +396,17 @@
 "         // create a cache entry.\n"
 "         // Node \"/a/b/c\" will be created if it does not yet exist."
 msgstr ""
+"import org.jboss.cache.*;\n"
+"         show(); // verbose mode for bean shell\n"
+"         TreeCache tree = new TreeCache();\n"
+"         PropertyConfigurator config = new PropertyConfigurator(); \n"
+"         // configure tree cache. Needs to be in the classpath\n"
+"         config.configure(tree, \"META-INF/replSync-service.xml\");\n"
+"         tree.startService(); \n"
+"         // kick start tree cache\n"
+"         tree.put(\"/a/b/c\", \"ben\", \"me\"); \n"
+"         // create a cache entry.\n"
+"         // Node \"/a/b/c\" will be created if it does not yet exist."
 
 #. Tag: para
 #: Cache_Tutorial.xml:153
@@ -403,7 +416,7 @@
 "been created. Click on the node c to see the content. You can modify the "
 "contents from the GUI as well. To create another node, for example, you can "
 "type in the shell:"
-msgstr ""
+msgstr "在 GUI 里你应该看到一个新创建的 <literal>/a/b/c</literal> 条目。点击节点 C 来查看它的内容。你也可以在 GUI 里修改它的内容。要创建其他节点,你可以在 shell 里输入:"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:156
@@ -412,12 +425,14 @@
 "tree.put(\"/a/b/c/d\", \"JBoss\", \"Open Source\");\n"
 "         tree.get(\"/a/b/c/d\", \"JBoss\");"
 msgstr ""
+"tree.put(\"/a/b/c/d\", \"JBoss\", \"Open Source\");\n"
+"         tree.get(\"/a/b/c/d\", \"JBoss\");"
 
 #. Tag: title
 #: Cache_Tutorial.xml:159
 #, no-c-format
 msgid "<title>PojoCache</title>"
-msgstr ""
+msgstr "<title>PojoCache</title>"
 
 #. Tag: para
 #: Cache_Tutorial.xml:160
@@ -428,6 +443,8 @@
 "steps to instantiate a cache, configure it, and then create entries under "
 "it. Here are the snippets:"
 msgstr ""
+"你可以在 shell 里输入 <literal>sourceRelative(\"aop.bsh\");</"
+"literal> 来执行脚本。基本上,aop.bsh 演示了初始化缓存、配置并创建条目的步骤。下面是一些代码片段:"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:163
@@ -460,6 +477,32 @@
 "         // of cache contents automatically.\n"
 "         joe.setAge(41);"
 msgstr ""
+"import org.jboss.cache.PropertyConfigurator;\n"
+"         import org.jboss.cache.aop.PojoCache;\n"
+"         import org.jboss.cache.aop.test.Person;\n"
+"         import org.jboss.cache.aop.test.Address;\n"
+"         show(); // verbose mode for bean shell\n"
+"         PojoCache tree = new PojoCache();\n"
+"         PropertyConfigurator config = new PropertyConfigurator(); // "
+"configure tree cache.\n"
+"         config.configure(tree, \"META-INF/replSync-service.xml\");\n"
+"         Person joe = new Person(); // instantiate a Person object named "
+"joe\n"
+"         joe.setName(\"Joe Black\");\n"
+"         joe.setAge(31);\n"
+"         Address addr = new Address(); // instantiate a Address object named "
+"addr\n"
+"         addr.setCity(\"Sunnyvale\");\n"
+"         addr.setStreet(\"123 Albert Ave\");\n"
+"         addr.setZip(94086); joe.setAddress(addr); // set the address "
+"reference\n"
+"         tree.startService(); // kick start tree cache\n"
+"         tree.putObject(\"/aop/joe\", joe); \n"
+"         // add aop sanctioned object (and sub-objects) into cache.\n"
+"         // since it is aop-sanctioned, use of plain get/set methods will "
+"take care\n"
+"         // of cache contents automatically.\n"
+"         joe.setAge(41);"
 
 #. Tag: para
 #: Cache_Tutorial.xml:164
@@ -469,7 +512,7 @@
 "putObject. Once the second window finishes execution, you should see the "
 "first GUI window has been populated with entries of /aop/joe/address. Click "
 "on each tree node will display different values associated with that node."
-msgstr ""
+msgstr "请注意,把对象(及其所依赖的对象)放入缓存所需要的 API 是 putObject。一旦第二个窗口执行完毕,你应该看到第一个 GUI 窗口已经填充了 /aop/joe/address 条目。点击每个树节点将显示和这个节点相关的不同的值。"
 
 #. Tag: para
 #: Cache_Tutorial.xml:167
@@ -483,7 +526,7 @@
 "Joe&#39;s address and see the cache will update it automatically. For "
 "example, type addr.setCity(\"San Jose\"); in the interactive shell, you "
 "should see in the GUI that the address got modified."
-msgstr ""
+msgstr "下一步是查看 AOP 的操作,你无需担心如何把它放入缓存,而只要简单的 get/set 方法就可以完成。例如,你可以在 shell 窗口执行 joe.setAge(20);,你会看到 GUI 将自动更新(如果没有,点击其他地方然后回到这个窗口将刷新 GUI 的内容)。而且,为了演示对象图的复制,你可以修改 Joe 的地址并看到缓存将自动更新。例如,在交互式 shell 里输入 addr.setCity(\"San Jose\"); ,你应该看到 GUI 里的地址会自动修改。"
 
 #. Tag: para
 #: Cache_Tutorial.xml:170
@@ -492,7 +535,7 @@
 "Finally, PojoCache also supports get/set with parameter type of Collection "
 "classes (i.e., List, Map, and Set). For example, type the following in the "
 "shell command line:"
-msgstr ""
+msgstr "最后,PojoCache 也支持带类型为 Collection 类(如:List、Map 和 Set)的参数的 get/set。例如,在 shell 命令行输入:"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:173
@@ -503,12 +546,16 @@
 "         lang.add(\"Mandarin\");\n"
 "         joe.setLanguages(lang);"
 msgstr ""
+"ArrayList lang = new ArrayList();\n"
+"         lang.add(\"Ensligh\");\n"
+"         lang.add(\"Mandarin\");\n"
+"         joe.setLanguages(lang);"
 
 #. Tag: title
 #: Cache_Tutorial.xml:176
 #, no-c-format
 msgid "PojoCache with Transaction"
-msgstr ""
+msgstr "带有事务的 PojoCache"
 
 #. Tag: para
 #: Cache_Tutorial.xml:177
@@ -517,7 +564,7 @@
 "To see TreeCache transaction at work, you start with the same setup with "
 "last section except you load the bsh of aopWithTx.bsh instead of aop.bsh. "
 "The additional snippets are:"
-msgstr ""
+msgstr "要查看 TreeCache 事务的用法,你可以用和上节相同的设置,不同之处是加载 aopWithTx.bsh 而不是 aop.bsh。其他的代码片段有:"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:180
@@ -562,12 +609,50 @@
 "         joe.getAddress().setZip(95124);\n"
 "         tx.commit();"
 msgstr ""
+"import org.jboss.cache.PropertyConfigurator;\n"
+"         import org.jboss.cache.aop.PojoCache;\n"
+"         import org.jboss.cache.aop.test.Person;\n"
+"         import org.jboss.cache.aop.test.Address;// Tx imports\n"
+"         import javax.transaction.UserTransaction; import javax.naming.*;\n"
+"         import org.jboss.cache.transaction.DummyTransactionManager;\n"
+"         show(); // verbose mode for bean shell\n"
+"         // Set up transaction manager\n"
+"         DummyTransactionManager.getInstance();\n"
+"         Properties prop = new Properties();\n"
+"         prop.put(Context.INITIAL_CONTEXT_FACTORY,\n"
+"             \"org.jboss.cache.transaction.DummyContextFactory\");\n"
+"         UserTransaction tx = (UserTransaction)new\n"
+"             InitialContext(prop).lookup(\"UserTransaction\");\n"
+"         PojoCache tree = new PojoCache();\n"
+"         PropertyConfigurator config = new PropertyConfigurator(); \n"
+"         // configure tree cache.\n"
+"         config.configure(tree, \"META-INF/replSync-service.xml\");\n"
+"         joe = new Person();\n"
+"         joe.setName(\"Joe Black\");\n"
+"         joe.setAge(31);\n"
+"\n"
+"         Address addr = new Address();\n"
+"         addr.setCity(\"Sunnyvale\");\n"
+"         addr.setStreet(\"123 Albert Ave\");\n"
+"         addr.setZip(94086);\n"
+"         joe.setAddress(addr);\n"
+"\n"
+"         tree.startService(); // kick start tree cache\n"
+"         tree.putObject(\"/aop/joe\", joe); // add aop sanctioned object\n"
+"         // since it is aop-sanctioned, use of plain get/set methods will "
+"take care\n"
+"         of cache contents automatically.\n"
+"         // Also it is transacted\n"
+"         tx.begin();\n"
+"         joe.setAge(41);\n"
+"         joe.getAddress().setZip(95124);\n"
+"         tx.commit();"
 
 #. Tag: para
 #: Cache_Tutorial.xml:181
 #, no-c-format
 msgid "In this example, a default dummy transaction manager is used."
-msgstr ""
+msgstr "这个例子里使用了缺省的事务管理者。"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:184
@@ -577,12 +662,15 @@
 "         addr.setZip(95131);\n"
 "         tx.rollback();"
 msgstr ""
+"tx.begin();\n"
+"         addr.setZip(95131);\n"
+"         tx.rollback();"
 
 #. Tag: title
 #: Cache_Tutorial.xml:187
 #, no-c-format
 msgid "CacheLoader examples"
-msgstr ""
+msgstr "CacheLoader 示例"
 
 #. Tag: para
 #: Cache_Tutorial.xml:188
@@ -592,12 +680,14 @@
 "We assume the ZIP file has been unzipped into a directory <literal>jboss-"
 "cache</literal> ."
 msgstr ""
+"下面所有的示例都基于独立的 JBossCache 发行版本。我们假设 ZIP 已经被解压到了 <literal>jboss-"
+"cache</literal> 目录下。"
 
 #. Tag: title
 #: Cache_Tutorial.xml:192
 #, no-c-format
 msgid "Local cache with CacheLoader"
-msgstr ""
+msgstr "带有 CacheLoader 的本地缓存"
 
 #. Tag: para
 #: Cache_Tutorial.xml:193
@@ -606,7 +696,7 @@
 "This demo shows a local PojoCache with a CacheLoader. We will insert a POJO "
 "into the cache, and see that the POJO is transparently saved using the "
 "CacheLoader."
-msgstr ""
+msgstr "这个演示程序展示了一个带有 CacheLoader 的本地 PojoCache。我们将在这个缓存里插入一个 POJO,并看看这个 POJO 是如何通过 CacheLoader 透明地进行保存的。"
 
 #. Tag: para
 #: Cache_Tutorial.xml:196
@@ -616,6 +706,8 @@
 "oodb-service.xml</literal> : change <literal>CacheLoaderConfig</literal> to "
 "point to a valid directory (create it if it doesn&#39;t yet exist):"
 msgstr ""
+"要运行它,你要修改 <literal>jboss-cache/output/etc/META-INF/"
+"oodb-service.xml</literal>:使 <literal>CacheLoaderConfig</literal> 指向一个有效目录(如果不存在则创建它)。"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:199
@@ -625,6 +717,9 @@
 "            location=c:\\\\tmp\\\\oodb\n"
 "            &lt;/attribute&gt;"
 msgstr ""
+"&lt;attribute name=\"CacheLoaderConfig\"&gt;\n"
+"            location=c:\\\\tmp\\\\oodb\n"
+"            &lt;/attribute&gt;"
 
 #. Tag: para
 #: Cache_Tutorial.xml:200
@@ -634,7 +729,7 @@
 "Note that <literal>oodb.bsh</literal> already contains code to create and "
 "retrieve POJO from the cache. So remember to comment them out if you decide "
 "to create the Person instance yourself."
-msgstr ""
+msgstr "然后启动 beanshell 并加载 <literal>oodb.bsh</literal>。请注意 <literal>oodb.bsh</literal> 已经包含了创建和从缓存获取 POJO 的代码。所以如果你决定自己来创建 Person 实例,请记得注释它们。"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:203
@@ -651,12 +746,22 @@
 "            &lt;null&gt;\n"
 "            bsh %"
 msgstr ""
+"bela at laptop /cygdrive/c/jboss-cache\n"
+"            $ ./runShellDemo.sh\n"
+"            BeanShell 1.3.0 - by Pat Niemeyer (pat at pat.net)\n"
+"            bsh % sourceRelative(\"oodb.bsh\");\n"
+"            interceptor chain is:\n"
+"            class org.jboss.cache.interceptors.CallInterceptor\n"
+"            class org.jboss.cache.interceptors.CacheLoaderInterceptor\n"
+"            class org.jboss.cache.interceptors.TransactionInterceptor\n"
+"            &lt;null&gt;\n"
+"            bsh %"
 
 #. Tag: para
 #: Cache_Tutorial.xml:204
 #, no-c-format
 msgid "Next, create an instance of Person, and set its address and other fields:"
-msgstr ""
+msgstr "然后,创建一个 Person 实例,然后设置其地址和其他字段:"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:207
@@ -685,6 +790,28 @@
 "                city=San Jose, zip=95124, skills=null, languages=null&gt;\n"
 "            bsh %"
 msgstr ""
+"bsh % p=new Person();\n"
+"            &lt;name=null, age=0, hobbies=, address=null, skills=null, "
+"languages=null&gt;\n"
+"            bsh % p.age=3;\n"
+"            &lt;3&gt;\n"
+"            bsh % p.name=\"Michelle\";\n"
+"            &lt;Michelle&gt;\n"
+"            bsh % addr=new Address();\n"
+"            &lt;street=null, city=null, zip=0&gt;\n"
+"            bsh % addr.city=\"San Jose\";\n"
+"            &lt;San Jose&gt;\n"
+"            bsh % addr.zip=95124;\n"
+"            &lt;95124&gt;\n"
+"            bsh % addr.street=\"1704 Almond Blossom Lane\";\n"
+"            &lt;1704 Almond Blossom Lane&gt;\n"
+"            bsh % p.setAddress(addr);\n"
+"            bsh % tree.putObject(\"/person/me\", p);\n"
+"            bsh % p;\n"
+"            &lt;name=Michelle, age=3, hobbies=, address=street=1704 Almond "
+"Blossom Lane, \n"
+"                city=San Jose, zip=95124, skills=null, languages=null&gt;\n"
+"            bsh %"
 
 #. Tag: para
 #: Cache_Tutorial.xml:208
@@ -694,7 +821,7 @@
 "is now saved. Let&#39;s kill beanshell and restart it. At this point, "
 "because the instance of <literal>Person</literal> we created was given the "
 "name \"p\", we can retrieve it again:"
-msgstr ""
+msgstr "<literal>Person</literal> 以及它的所有字段和子对象现在都被保存了。让我们终止 beanshell 并重启它。此时,因为我们创建的 <literal>Person</literal> 被赋予了名称 \"p\",我们可以再次获取它:"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:211
@@ -721,6 +848,26 @@
 "            &gt;\n"
 "            bsh %"
 msgstr ""
+"bela at laptop /cygdrive/c/jboss-cache\n"
+"            $ ./runShellDemo.sh\n"
+"            BeanShell 1.3.0 - by Pat Niemeyer (pat at pat.net)\n"
+"            bsh % sourceRelative(\"oodb.bsh\");\n"
+"            interceptor chain is:\n"
+"            class org.jboss.cache.interceptors.CallInterceptor\n"
+"            class org.jboss.cache.interceptors.CacheLoaderInterceptor\n"
+"            class org.jboss.cache.interceptors.TransactionInterceptor\n"
+"            &lt;null&gt;\n"
+"            bsh % tree;\n"
+"            &lt;/&gt;\n"
+"            bsh % p=tree.getObject(\"/person/me\");\n"
+"            &lt;name=Michelle, age=3, hobbies=, address=street=1704 Almond "
+"Blossom Lane, \n"
+"                city=San Jose, zip=95124, skills=null, languages=null&gt;\n"
+"            bsh % tree;\n"
+"            &lt;/p\n"
+"            /address\n"
+"            &gt;\n"
+"            bsh %"
 
 #. Tag: para
 #: Cache_Tutorial.xml:212
@@ -730,13 +877,13 @@
 "Only when we loaded \"p\", did it get populated (lazy loading). You can see "
 "that the values of \"p\" are loaded from the datastore where they were "
 "previously saved."
-msgstr ""
+msgstr "有意思的是,缓存初始时是空的(\"/\")。只有当我们加载了 \"p\",它才被填充(lazy 加载)。你可以看到 \"p\" 值会从先前保存的数据库里加载。"
 
 #. Tag: title
 #: Cache_Tutorial.xml:221
 #, no-c-format
 msgid "Replicated cache with shared datastore"
-msgstr ""
+msgstr "带有共享数据库的复制缓存"
 
 #. Tag: para
 #: Cache_Tutorial.xml:222
@@ -749,6 +896,8 @@
 "<literal>jboss-cache/output/etc/META-INF/replAsyncSharedCacheLoader-service."
 "xml</literal> :"
 msgstr ""
+"JBossCache 文档里描述了我们在这个例子里使用的模式。它由两个单独的节点组成,并在节点间复制内容。此外,它们都指向<emphasis>相同的</emphasis>数据库。<literal>jboss-cache/output/etc/META-INF/replAsyncSharedCacheLoader-service."
+"xml</literal> 文件里的配置如下:"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:225
@@ -771,6 +920,22 @@
 "            &lt;attribute name=\"CacheLoaderFetchPersistentState\"&gt;"
 "true&lt;/attribute&gt;"
 msgstr ""
+"&lt;!-- Whether or not to fetch state on joining a cluster --&gt;\n"
+"            &lt;attribute name=\"FetchStateOnStartup\"&gt;false&lt;/"
+"attribute&gt;\n"
+"            &lt;attribute name=\"CacheLoaderClass\"&gt;org.jboss.cache."
+"loader.FileCacheLoader&lt;/attribute&gt;\n"
+"            &lt;attribute name=\"CacheLoaderConfig\"&gt;\n"
+"            location=c:\\\\tmp\n"
+"            &lt;/attribute&gt;\n"
+"            &lt;attribute name=\"CacheLoaderShared\"&gt;true&lt;/"
+"attribute&gt;\n"
+"            &lt;attribute name=\"CacheLoaderPreload\"&gt;/&lt;/"
+"attribute&gt;\n"
+"            &lt;attribute name=\"CacheLoaderFetchTransientState\"&gt;"
+"false&lt;/attribute&gt;\n"
+"            &lt;attribute name=\"CacheLoaderFetchPersistentState\"&gt;"
+"true&lt;/attribute&gt;"
 
 #. Tag: para
 #: Cache_Tutorial.xml:226
@@ -817,7 +982,7 @@
 msgid ""
 "We can now start 2 instances by opening two shells and executing the "
 "following ANT target:"
-msgstr ""
+msgstr "我们现在开启两个 shell 并执行下面的 ANT 目标来启动两个实例:"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:238
@@ -854,6 +1019,36 @@
 "            192.168.1.184:1357]\n"
 "            [java] ** node modified: /"
 msgstr ""
+"bela at laptop /cygdrive/c/jboss-cache\n"
+"            $ ./build.sh run.demo.async.shared.cacheloader\n"
+"            Buildfile: build.xml\n"
+"\n"
+"            init:\n"
+"\n"
+"            compile:\n"
+"\n"
+"            run.demo.async.shared.cacheloader:\n"
+"            [java] ** node loaded: /a\n"
+"            [java] ** node loaded: /a/b\n"
+"            [java] ** node loaded: /a/b/c\n"
+"            [java] ** node loaded: /uno\n"
+"            [java] ** node loaded: /uno/due\n"
+"\n"
+"            [java] -------------------------------------------------------\n"
+"            [java] GMS: address is 192.168.1.184:1357\n"
+"            [java] -------------------------------------------------------\n"
+"            [java] interceptor chain is:\n"
+"            [java] class org.jboss.cache.interceptors.CallInterceptor\n"
+"            [java] class org.jboss.cache.interceptors."
+"ReplicationInterceptor\n"
+"            [java] class org.jboss.cache.interceptors."
+"CacheLoaderInterceptor\n"
+"            [java] class org.jboss.cache.interceptors."
+"TransactionInterceptor\n"
+"            [java] ** view change: [192.168.1.184:1355|1] "
+"[192.168.1.184:1355,\n"
+"            192.168.1.184:1357]\n"
+"            [java] ** node modified: /"
 
 #. Tag: para
 #: Cache_Tutorial.xml:239
@@ -865,7 +1060,7 @@
 "both nodes are killed, and subsequently one or both nodes are restarted, the "
 "state is the same as before shutdown as it was persisted to the shared store "
 "via the CacheLoader."
-msgstr ""
+msgstr "两个 GUI 实例将出现,它们会以图形方式显示缓存的树型结构。你可以右击或使用菜单来添加、修改或删除节点。任何改动都会在两个节点间复制。如果两个节点都被中止,随后一个或两者都重新启动,那么状态将和中止前一样,因为这个状态通过 CacheLoader 持久化到共享数据库里了。"
 
 #. Tag: para
 #: Cache_Tutorial.xml:242
@@ -873,13 +1068,13 @@
 msgid ""
 "Note that the example above shows the 2 nodes running on the same machine "
 "(192.168.1.184) on ports 1355 and 1357."
-msgstr ""
+msgstr "请注意,上面的例子展示的是运行在同一台机器(192.168.1.184)上不同端口(1355 和 1357)的两个节点。"
 
 #. Tag: title
 #: Cache_Tutorial.xml:247
 #, no-c-format
 msgid "Replicated cache with unshared (local) datastore"
-msgstr ""
+msgstr "带有非共享的(本地)数据库的复制缓存"
 
 #. Tag: para
 #: Cache_Tutorial.xml:248
@@ -889,7 +1084,7 @@
 "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&#39;ll look at node1.xml:"
-msgstr ""
+msgstr "在这个例子里,"
 
 #. Tag: programlisting
 #: Cache_Tutorial.xml:251




More information about the jboss-cvs-commits mailing list