[jboss-cvs] JBossAS SVN: r77767 - 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
Tue Sep 2 02:20:00 EDT 2008
Author: xhuang at jboss.com
Date: 2008-09-02 02:20:00 -0400 (Tue, 02 Sep 2008)
New Revision: 77767
Modified:
projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Book_Info.po
projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Configuration.po
projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Introduction.po
Log:
update
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Book_Info.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Book_Info.po 2008-09-02 05:54:03 UTC (rev 77766)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Book_Info.po 2008-09-02 06:20:00 UTC (rev 77767)
@@ -1,39 +1,43 @@
# Language /tmp/mike/JBEAP420/Cache translations for JBEAP package.
# Copyright (C) 2007 Free Software Foundation, Inc.
+#
# Automatically generated, 2007.
-#
+# Xi HUANG <xhuang at redhat.com>, 2008.
msgid ""
msgstr ""
"Project-Id-Version: JBEAP 420\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-05-30 04:03+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-08-28 21:29+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: Chinese Simplified <kde-i18n-doc at lists.kde.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KAider 0.1\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
#. Tag: title
#: Book_Info.xml:10
#, no-c-format
msgid "JBoss Cache Tree Cache 1.4.1"
-msgstr ""
+msgstr "JBoss Cache Tree Cache 1.4.1"
#. Tag: subtitle
#: Book_Info.xml:11
#, no-c-format
msgid "A Structured, Replicated, Transactional Cache"
-msgstr ""
+msgstr "结构化的、复制的、事务性的缓存"
#. Tag: para
#: Book_Info.xml:15
#, no-c-format
msgid "This book is about the JBoss Cache Tree Cache."
-msgstr ""
+msgstr "本书是关于 JBoss Cache Tree Cache 的。"
#. Tag: holder
#: Book_Info.xml:36
#, no-c-format
msgid "&HOLDER;"
-msgstr ""
+msgstr "&HOLDER;"
+
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Configuration.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Configuration.po 2008-09-02 05:54:03 UTC (rev 77766)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Configuration.po 2008-09-02 06:20:00 UTC (rev 77767)
@@ -1,24 +1,27 @@
# Language /tmp/mike/JBEAP420/Cache translations for JBEAP package.
# Copyright (C) 2007 Free Software Foundation, Inc.
+#
# Automatically generated, 2007.
-#
+# Xi HUANG <xhuang at redhat.com>, 2008.
msgid ""
msgstr ""
"Project-Id-Version: JBEAP 420\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-05-30 04:03+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-02 16:19+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: Chinese Simplified <kde-i18n-doc at lists.kde.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KAider 0.1\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
#. Tag: title
#: Configuration.xml:10
#, no-c-format
msgid "Configuration"
-msgstr ""
+msgstr "配置"
#. Tag: para
#: Configuration.xml:11
@@ -28,18 +31,20 @@
"via getters. This can be done either manually, or via the "
"<literal>PropertyConfigurator</literal> and an XML file."
msgstr ""
+"缓存的所有属性都可以通过 setter 设置并通过 getter 获取。你可以手工实现,或者通过 <literal>"
+"PropertyConfigurator</literal> 和一个 XML 文件来完成。"
#. Tag: title
#: Configuration.xml:15
#, no-c-format
msgid "Sample XML-Based Configuration"
-msgstr ""
+msgstr "基于 XML 的配置示例"
#. Tag: para
#: Configuration.xml:16
#, no-c-format
msgid "A sample XML configuration file is shown below:"
-msgstr ""
+msgstr "下面是一个 XML 配置示例文件:"
#. Tag: programlisting
#: Configuration.xml:19
@@ -298,17 +303,269 @@
" </mbean>\n"
"</server>"
msgstr ""
+"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"
+"<server>\n"
+" <classpath codebase=\"./lib\" archives=\"jboss-cache.jar, jgroups.jar"
+"\" />\n"
+"\n"
+" <!-- "
+"==================================================================== --"
+">\n"
+" <!-- Defines TreeCache "
+"configuration -->\n"
+" <!-- "
+"==================================================================== --"
+">\n"
+" <mbean code=\"org.jboss.cache.TreeCache\" name=\"jboss.cache:"
+"service=TreeCache\">\n"
+" <depends>jboss:service=Naming</depends>\n"
+" <depends>jboss:service=TransactionManager</depends>\n"
+"\n"
+"\n"
+" <!-- Configure the TransactionManager -->\n"
+" <attribute name=\"TransactionManagerLookupClass\">\n"
+" org.jboss.cache.DummyTransactionManagerLookup\n"
+" </attribute>\n"
+"\n"
+"<!-- \n"
+"Node locking scheme : \n"
+"PESSIMISTIC (default)\n"
+"OPTIMISTIC \n"
+"-->\n"
+"<attribute name=\"NodeLockingScheme\">PESSIMISTIC</attribute>\n"
+"\n"
+" <!--\n"
+" Node locking isolation level : \n"
+" SERIALIZABLE\n"
+" REPEATABLE_READ (default)\n"
+" READ_COMMITTED\n"
+" READ_UNCOMMITTED\n"
+" NONE\n"
+"\n"
+"(ignored if NodeLockingScheme is OPTIMISTIC)\n"
+" -->\n"
+" <attribute name=\"IsolationLevel\">REPEATABLE_READ</"
+"attribute>\n"
+"\n"
+" <!-- Lock parent before doing node additions/removes -->\n"
+" <attribute name=\"LockParentForChildInsertRemove\">true</"
+"attribute>\n"
+"\n"
+" <!-- Valid modes are LOCAL\n"
+" REPL_ASYNC\n"
+" REPL_SYNC\n"
+" INVALIDATION_ASYNC\n"
+" INVALIDATION_SYNC\n"
+" -->\n"
+" <attribute name=\"CacheMode\">LOCAL</attribute>\n"
+" \n"
+" <!-- Whether each interceptor should have an mbean\n"
+" registered to capture and display its statistics. -->\n"
+" <attribute name=\"UseInterceptorMbeans\">true</attribute>\n"
+"\n"
+" <!-- Name of cluster. Needs to be the same for all TreeCache nodes in "
+"a\n"
+" cluster, in order to find each other -->\n"
+" <attribute name=\"ClusterName\">JBoss-Cache-Cluster</"
+"attribute>\n"
+"\n"
+" <!-- Uncomment next three statements to enable JGroups multiplexer.\n"
+" This configuration is dependent on the JGroups multiplexer being\n"
+" registered in an MBean server such as JBossAS. -->\n"
+" <!--\n"
+" <depends>jgroups.mux:name=Multiplexer</depends>\n"
+" <attribute name=\"MultiplexerService\">jgroups.mux:"
+"name=Multiplexer</attribute>\n"
+" <attribute name=\"MultiplexerStack\">udp</attribute>\n"
+" -->\n"
+"\n"
+" <!-- JGroups protocol stack properties. ClusterConfig isn't used if "
+"the\n"
+" multiplexer is enabled and successfully initialized. -->\n"
+" <attribute name=\"ClusterConfig\">\n"
+" <config>\n"
+" <!-- UDP: if you have a multihomed machine,\n"
+" set the bind_addr attribute to the appropriate NIC IP "
+"address\n"
+" -->\n"
+" <!-- UDP: On Windows machines, because of the media sense "
+"feature\n"
+" being broken with multicast (even after disabling media "
+"sense)\n"
+" set the loopback attribute to true\n"
+" -->\n"
+" <UDP mcast_addr=\"228.1.2.3\" mcast_port=\"45566\" ip_ttl=\"64\" "
+"ip_mcast=\"true\"\n"
+" mcast_send_buf_size=\"150000\" mcast_recv_buf_size=\"80000\" \n"
+" ucast_send_buf_size=\"150000\" ucast_recv_buf_size=\"80000\"\n"
+" loopback=\"false\" />\n"
+" <PING timeout=\"2000\" num_initial_members=\"3\" up_thread=\"false"
+"\" \n"
+" down_thread=\"false\" />\n"
+" <MERGE2 min_interval=\"10000\" max_interval=\"20000\" />\n"
+" <FD shun=\"true\" up_thread=\"true\" down_thread=\"true\" />\n"
+" <VERIFY_SUSPECT timeout=\"1500\" up_thread=\"false\" down_thread="
+"\"false\" />\n"
+" <pbcast.NAKACK gc_lag=\"50\" max_xmit_size=\"8192\" \n"
+" retransmit_timeout=\"600,1200,2400,4800\" up_thread=\"false\"\n"
+" down_thread=\"false\" />\n"
+" <UNICAST timeout=\"600,1200,2400\" window_size=\"100\" "
+"min_threshold=\"10\" \n"
+" down_thread=\"false\" />\n"
+" <pbcast.STABLE desired_avg_gossip=\"20000\" up_thread=\"false\" "
+"down_thread=\"false\" />\n"
+" <FRAG frag_size=\"8192\" down_thread=\"false\" up_thread=\"false"
+"\" />\n"
+" <pbcast.GMS join_timeout=\"5000\" join_retry_timeout=\"2000\" "
+"shun=\"true\" \n"
+" print_local_addr=\"true\" />\n"
+" <pbcast.STATE_TRANSFER up_thread=\"false\" down_thread=\"false\" /"
+">\n"
+" </config>\n"
+" </attribute>\n"
+"\n"
+" <!-- The max amount of time (in milliseconds) we wait until the\n"
+" initial state (ie. the contents of the cache) are retrieved "
+"from\n"
+" existing members in a clustered environment\n"
+" -->\n"
+" <attribute name=\"InitialStateRetrievalTimeout\">5000</"
+"attribute>\n"
+"\n"
+" <!-- Number of milliseconds to wait until all responses for a\n"
+" synchronous call have been received.\n"
+" -->\n"
+" <attribute name=\"SyncReplTimeout\">10000</attribute>\n"
+"\n"
+" <!-- Max number of milliseconds to wait for a lock acquisition --"
+">\n"
+" <attribute name=\"LockAcquisitionTimeout\">15000</"
+"attribute>\n"
+"\n"
+" <!-- Name of the eviction policy class. -->\n"
+" <attribute name=\"EvictionPolicyClass\">org.jboss.cache.eviction."
+"LRUPolicy</attribute>\n"
+"\n"
+" <!-- Specific eviction policy configurations. This is LRU -->\n"
+" <attribute name=\"EvictionPolicyConfig\">\n"
+" <config>\n"
+" <attribute name=\"wakeUpIntervalSeconds\">5</attribute>\n"
+" <!-- Cache wide default -->\n"
+" <region name=\"/_default_\">\n"
+" <attribute name=\"maxNodes\">5000</attribute>\n"
+" <attribute name=\"timeToLiveSeconds\">1000</attribute>\n"
+" <!-- Maximum time an object is kept in cache regardless of idle "
+"time -->\n"
+" <attribute name=\"maxAgeSeconds\">120</attribute>\n"
+" </region>\n"
+"\n"
+" <region name=\"/org/jboss/data\">\n"
+" <attribute name=\"maxNodes\">5000</attribute>\n"
+" <attribute name=\"timeToLiveSeconds\">1000</attribute>\n"
+" </region>\n"
+"\n"
+" <region name=\"/org/jboss/test/data\">\n"
+" <attribute name=\"maxNodes\">5</attribute>\n"
+" <attribute name=\"timeToLiveSeconds\">4</attribute>\n"
+" </region>\n"
+" </config>\n"
+" </attribute>\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"
+" <preload>/a/b, /allTempObjects, /some/specific/fqn</"
+"preload>\n"
+" <shared>false</shared>\n"
+"\n"
+" <!-- we can now have multiple cache loaders, which get "
+"chained -->\n"
+" <cacheloader>\n"
+" <class>org.jboss.cache.loader.FileCacheLoader</"
+"class>\n"
+" <!-- same as the old CacheLoaderConfig attribute --"
+">\n"
+" <properties>\n"
+" location=/tmp/myFileStore\n"
+" </properties>\n"
+" <!-- whether the cache loader writes are asynchronous "
+"-->\n"
+" <async>false</async>\n"
+" <!-- only one cache loader in the chain may set \n"
+" fetchPersistentState \n"
+" to true.\n"
+" An exception is thrown if more than one cache "
+"loader \n"
+" sets this to \n"
+" true. -->\n"
+" <fetchPersistentState>true</"
+"fetchPersistentState>\n"
+" <!-- determines whether this cache loader ignores "
+"writes - \n"
+" defaults to \n"
+" false. -->\n"
+" <ignoreModifications>false</"
+"ignoreModifications>\n"
+" <!-- if set to true, purges the contents of this "
+"cache loader \n"
+" when the cache starts up. Defaults to false. --"
+">\n"
+" <purgeOnStartup>false</purgeOnStartup>\n"
+" </cacheloader>\n"
+"\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>true</async>\n"
+" <!-- only one cache loader in the chain may set "
+"fetchPersistentState\n"
+" to true. An exception is thrown if more than one "
+"cache loader \n"
+" sets this to true. -->\n"
+" <fetchPersistentState>false</"
+"fetchPersistentState>\n"
+" <!-- determines whether this cache loader ignores "
+"writes - defaults \n"
+" to false. -->\n"
+" <ignoreModifications>true</"
+"ignoreModifications>\n"
+" <!-- if set to true, purges the contents of this "
+"cache loader when the \n"
+" cache starts up. Defaults to false. -->\n"
+" <purgeOnStartup>false</purgeOnStartup>\n"
+" </cacheloader>\n"
+"\n"
+" </config>\n"
+" </attribute>\n"
+"\n"
+"\n"
+" </mbean>\n"
+"</server>"
#. Tag: para
#: Configuration.xml:20
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The PropertyConfigurator.configure() method needs to have as argument a "
"filename which is located on the classpath; it will use be used to configure "
"JBoss Cache from the properties defined in it. Note that this configuration "
"file is used to configure JBoss Cache both as a standalone cache, and as an "
"MBean if run inside the JBoss container."
-msgstr ""
+msgstr "PropertyConfigurator.configure() 方法需要一个参数"
#. Tag: para
#: Configuration.xml:21
@@ -767,3 +1024,4 @@
"literal>. See the javadocs on the <literal>Option</literal> class for "
"details on these options."
msgstr ""
+
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-02 05:54:03 UTC (rev 77766)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/zh-CN/Introduction.po 2008-09-02 06:20:00 UTC (rev 77767)
@@ -1,30 +1,33 @@
# Language /tmp/mike/JBEAP420/Cache translations for JBEAP package.
# Copyright (C) 2007 Free Software Foundation, Inc.
+#
# Automatically generated, 2007.
-#
+# Xi HUANG <xhuang at redhat.com>, 2008.
msgid ""
msgstr ""
"Project-Id-Version: JBEAP 420\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-05-30 04:03+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-02 16:15+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: Chinese Simplified <kde-i18n-doc at lists.kde.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KAider 0.1\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
#. Tag: title
#: Introduction.xml:10
#, no-c-format
msgid "Introduction"
-msgstr ""
+msgstr "简介"
#. Tag: title
#: Introduction.xml:12
#, no-c-format
msgid "What is a TreeCache?"
-msgstr ""
+msgstr "什么是 TreeCache?"
#. Tag: para
#: Introduction.xml:13
@@ -36,6 +39,8 @@
"including - in certain versions - clustering JNDI, HTTP and EJB sessions, "
"and clustering JMS."
msgstr ""
+"<literal>TreeCache</literal> 是一个树型结构的、复制的、事务性的缓存。<literal>TreeCache</literal>"
+" 是很多基础性的 JBoss 应用服务器群集服务的支柱 - 在某些版本里 - 包括群集 JNDI、HTTP、EJB 会话以及 JMS。"
#. Tag: para
#: Introduction.xml:16
@@ -47,12 +52,15 @@
"as BEA WebLogic or IBM WebSphere, servlet containers such as Tomcat, or even "
"in Java applications that do not run from within an application server."
msgstr ""
+"此外,<literal>TreeCache</literal> 可被用作独立的事务性的和复制的缓存,或者甚至是面向对象的数据库,它也可以嵌入到其他的 "
+"J2EE 应用服务器里(如 BEA WebLogic 或 IBM WebSphere)、servlet 容器(如 "
+"Tomcat)、甚至是不在应用服务器里运行的 Java 应用程序里。"
#. Tag: title
#: Introduction.xml:22
#, no-c-format
msgid "TreeCache Basics"
-msgstr ""
+msgstr "TreeCache 基础"
#. Tag: para
#: Introduction.xml:23
@@ -66,6 +74,9 @@
"(FQN), which consists of the concatenation of all node names from the root "
"to the node in question."
msgstr ""
+"<literal>TreeCache</literal> "
+"的结构是一个带有节点的树。每个节点有一个名字和零到多个子节点。每个节点只有一个父节点。目前还不支持节点图。节点可以从根递归地通过字节点进行访问,直到找到该"
+"节点。节点也可以通过全限定名(FQN)进行访问,这个名称包括所有从根到目的节点的名称的连接。"
#. Tag: para
#: Introduction.xml:26
@@ -79,6 +90,10 @@
"not a requirement for <literal>PojoCache</literal>, where reflection and "
"aspect-oriented programming is used to replicate any type."
msgstr ""
+"<literal>TreeCache</literal> 可以有多个根,它允许不同的树存在于单个的缓存实例里。请注意,树的每一层基本上都是一个 <"
+"literal>HashMap</literal>。树里的每个节点都有一个带有键和值的表。对于复制性缓存,所有的键和值都必须是<literal>"
+"可序列化的</literal>。<literal>PojoCache</literal> "
+"对序列化不作要求,反射(reflection)和面向方面编程(aspect-oriented programming)被用来复制任何类型。"
#. Tag: para
#: Introduction.xml:29
@@ -90,10 +105,12 @@
"same cluster. A cluster may span different hosts on a network or just "
"different JVMs on a single host."
msgstr ""
+"<literal>TreeCache</literal> 可以是本地的,也可以是复制性的。本地树只存在创建它们的 Java "
+"虚拟机里,而复制性树则把任何修改传递到同一群集里的其他复制性树中。群集可以跨越网络里的多个主机或者是单个主机里的不同虚拟机。"
#. Tag: para
#: Introduction.xml:32
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
"The first version of <literal>TreeCache</literal> was essentially a single "
"<literal>HashMap</literal> that replicated. However, the decision was taken "
@@ -110,6 +127,8 @@
"literal>, but is a vital requirement for <literal>PojoCache</literal> (as we "
"will see in the separate <literal>PojoCache</literal> documentation)."
msgstr ""
+"<literal>TreeCache</literal> 的第一个版本基本上是一个简单的复制性 <literal>HashMap</literal>"
+"。然而,之所以采用树型结构的缓存是因为 (a) 更灵活和高效 (b) 树总是可以删减为表,由此提供了双重可能性。"
#. Tag: para
#: Introduction.xml:35
@@ -177,3 +196,4 @@
"workspace data at commit time, and the occasional transaction commit failure "
"due to validation failures at commit time."
msgstr ""
+
More information about the jboss-cvs-commits
mailing list