[jboss-cvs] JBossAS SVN: r77141 - projects/docs/enterprise/4.3/Cache/Cache_FAQ/zh-CN.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 18 00:23:50 EDT 2008


Author: xhuang at jboss.com
Date: 2008-08-18 00:23:50 -0400 (Mon, 18 Aug 2008)
New Revision: 77141

Modified:
   projects/docs/enterprise/4.3/Cache/Cache_FAQ/zh-CN/Cache_Frequently_Asked_Questions.po
Log:
update

Modified: projects/docs/enterprise/4.3/Cache/Cache_FAQ/zh-CN/Cache_Frequently_Asked_Questions.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_FAQ/zh-CN/Cache_Frequently_Asked_Questions.po	2008-08-18 04:07:10 UTC (rev 77140)
+++ projects/docs/enterprise/4.3/Cache/Cache_FAQ/zh-CN/Cache_Frequently_Asked_Questions.po	2008-08-18 04:23:50 UTC (rev 77141)
@@ -5,7 +5,7 @@
 "Project-Id-Version: Cache_Frequently_Asked_Questions\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-05-30 03:54+0000\n"
-"PO-Revision-Date: 2008-08-14 15:05+1000\n"
+"PO-Revision-Date: 2008-08-18 14:23+1000\n"
 "Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -51,12 +51,14 @@
 "<literal>TreeCache</literal> but behaves as a true object cache providing "
 "transparent and finer-grained object mapping into internal cache."
 msgstr ""
+"目前,JBoss Cache 由两个组件组成:普通缓存(内部实现为 <literal>org.jboss.cache.TreeCache</literal>)和 POJO 缓存(内部实现为 <literal>org.jboss.cache.aop."
+"PojoCache</literal>)。<literal>TreeCache</literal> 是一个树型结构的缓存,它提供复制和事务性上下文;而 <literal>PojoCache</literal> 扩展了 <literal>TreeCache</literal> 的功能,它作为真正的对象缓存来提供透明的、更细颗粒度的对象和内部缓存的映射。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:51
 #, no-c-format
 msgid "Who are the JBoss Cache developers?"
-msgstr ""
+msgstr "JBoss Cache 的开发人员是什么人?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:55
@@ -66,12 +68,14 @@
 "Surtani and Brian Stansberry. Manik is the lead on JBoss Cache and Ben is "
 "the lead on PojoCache."
 msgstr ""
+"JBossCache 由 Bela Ban、Ben Wang、Harald Gliebe、Manik "
+"Surtani 和 Brian Stansberry 开发。Manik 是 JBoss Cache 的项目带头人,而 Ben 负责 PojoCache。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:64
 #, no-c-format
 msgid "What is the license for JBoss Cache?"
-msgstr ""
+msgstr "JBoss Cache 的许可证是什么?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:68
@@ -80,6 +84,8 @@
 "JBoss Cache is licensed under <ulink url=\"http://www.gnu.org/licenses/lgpl."
 "html\">LGPL</ulink> ."
 msgstr ""
+"JBoss Cache 的许可证基于 <ulink url=\"http://www.gnu.org/licenses/lgpl."
+"html\">LGPL</ulink>。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:77
@@ -162,12 +168,15 @@
 "<code>jboss-cache.jar</code> in the lib directory with the <code>-jdk50</"
 "code> versions if you intend to use PojoCache, Java 5 and annotations."
 msgstr ""
+"从 JBoss Cache 1.3.0 开始,我们支持对 Java 5 注解的使用。因此,为了使用 Java 5 注解,我们需要 <code>jboss-aop-jdk50.jar</code> 和 <code>jboss-cache-jdk50.jar</code>。你如果想使用 PojoCache 和 Java 5 注解,你需要用 <code>-jdk50</"
+"code> 版本的类库替换 lib 目录下的 <code>jboss-aop.jar</code> 和 "
+"<code>jboss-cache.jar</code>。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:161
 #, no-c-format
 msgid "How do I know the version of JBoss Cache that I am using?"
-msgstr ""
+msgstr "我如何知道所使用的 JBoss Cache 的版本?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:165
@@ -176,24 +185,26 @@
 "Since release 1.2, you can check the jar version by running: <code>java -jar "
 "jboss-cache.jar org.jboss.cache.Version</code> ."
 msgstr ""
+"从 1.2 版本开始,你可以运行 <code>java -jar "
+"jboss-cache.jar org.jboss.cache.Version</code> 来查看 jar 的版本。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:174
 #, no-c-format
 msgid "Can I run JBoss Cache outside of JBoss Application Server?"
-msgstr ""
+msgstr "我可以在 JBoss 应用服务器之外运行 JBoss Cache 吗?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:180
 #, no-c-format
 msgid "Of course! JBoss Cache comes in two flavors:"
-msgstr ""
+msgstr "当然可以!JBoss Cache 可以两种方式运行:"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:184
 #, no-c-format
 msgid "Integrated with JBoss Application Server as an MBean service."
-msgstr ""
+msgstr "以 MBean 服务的形式集成在 JBoss 应用服务器里。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:188
@@ -203,12 +214,14 @@
 "Websphere. Of course, it can also run in a standalone Java process (i.e., "
 "outside Java EE context)."
 msgstr ""
+"以独立方式运行,它可以运行在任何 Java EE 服务器里,如 BEA WebLogic 或 IBM "
+"Websphere。当然,它也可以独立的 Java 进程运行(也就是在 Java EE 上下文之外)。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:199
 #, no-c-format
 msgid "Where can I report bugs or problems?"
-msgstr ""
+msgstr "我怎样报告程序错误或问题?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:203
@@ -218,18 +231,21 @@
 "index.html?module=bb&amp;op=viewforum&amp;f=157\">JBoss Cache User Forum </"
 "ulink> ."
 msgstr ""
+"请在 <ulink url=\"http://www.jboss.org/"
+"index.html?module=bb&amp;op=viewforum&amp;f=157\">JBoss Cache User Forum </"
+"ulink> 里报告程序错误或问题。"
 
 #. Tag: title
 #: Cache_Frequently_Asked_Questions.xml:215
 #, no-c-format
 msgid "JBoss Cache - Tree Cache"
-msgstr ""
+msgstr "JBoss Cache - Tree Cache"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:219
 #, no-c-format
 msgid "How do I deploy JBoss Cache as a MBean service?"
-msgstr ""
+msgstr "我如何把 JBoss Cache 部署为 MBean 服务?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:223
@@ -241,13 +257,13 @@
 "present). Under the standalone package <literal>etc/META-INF</literal> "
 "directory , there are example configuration files for different cache modes "
 "that can be used to deploy JBoss Cache as well."
-msgstr ""
+msgstr "要把 JBoss Cache 部署为 JBoss 里的 MBean,你可以把 xml 配置文件复制到 <literal>deploy</literal> 目录里(如使用 <literal>all</literal> 配置,还会有必需的 jar 文件)。在独立软件包的 <literal>etc/META-INF</literal> 目录里,有用于不同缓存模式的配置示例,你也可以用它们来部署 JBoss Cache。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:240
 #, no-c-format
 msgid "How do I know if my JBoss Cache MBean has been deployed?"
-msgstr ""
+msgstr "我如何知道 JBoss Cache MBean 已经被部署了?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:244
@@ -256,13 +272,13 @@
 "To verify that your JBoss Cache MBean is deployed correctly, you can first "
 "check the log output under the command console. Next you can verify it from "
 "JBoss JMX console. Look for <literal>jboss.cache</literal> domain."
-msgstr ""
+msgstr "要验证 JBoss Cache MBean 是否正确地部署,你可以首先检查命令行控制台里的日志输出。然后你可以查看 JBoss JMX 控制台里的 <literal>jboss.cache</literal> 域。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:255
 #, no-c-format
 msgid "How do I access the JBoss Cache MBean?"
-msgstr ""
+msgstr "我应该如何访问 JBoss Cache MBean?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:259
@@ -270,7 +286,7 @@
 msgid ""
 "Accessing the JBoss Cache MBean is just like accessing any JBoss MBean. Here "
 "is a code snippet:"
-msgstr ""
+msgstr "访问 JBoss Cache MBean 和访问其他任何 JBoss MBean 一样。下面是一个代码片段:"
 
 #. Tag: programlisting
 #: Cache_Frequently_Asked_Questions.xml:263
@@ -317,12 +333,52 @@
 "                ...\n"
 "                }"
 msgstr ""
+"import org.jboss.mx.util.MBeanServerLocator;\n"
+"                import org.jboss.mx.util.MBeanProxyExt;\n"
+"                import org.jboss.cache.TreeCacheMBean;\n"
+"                import javax.management.MBeanServer;\n"
+"                ...\n"
+"        \n"
+"                MBeanServer server;\n"
+"                TreeCacheMBean cache;\n"
+"        \n"
+"                public init() throws Exception\n"
+"                {\n"
+"                try\n"
+"                {\n"
+"                server = MBeanServerLocator.locateJBoss();\n"
+"                cache = (TreeCacheMBean) MBeanProxyExt.create(TreeCacheMBean."
+"class,\n"
+"                \"jboss.cache:service=TreeCache\",\n"
+"                server);\n"
+"                }\n"
+"                catch (Exception ex)\n"
+"                {\n"
+"                // handle exception\n"
+"                }\n"
+"                }\n"
+"        \n"
+"                public void myBusinessMethod()\n"
+"                {\n"
+"                Object value = cache.get(\"/my/node\", \"myKey\");\n"
+"        \n"
+"                HashMap stuff = new HashMap();\n"
+"                stuff.put(\"key1\", \"value1\");\n"
+"                stuff.put(\"key2\", \"value2\");\n"
+"                stuff.put(\"key3\", \"value3\");\n"
+"        \n"
+"                cache.put(\"/my/new/node\", stuff);\n"
+"        \n"
+"                cache.remove(\"/my/node\");\n"
+"        \n"
+"                ...\n"
+"                }"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:269
 #, no-c-format
 msgid "Can I run JBoss Cache on JBoss AS 3.2.x releases?"
-msgstr ""
+msgstr "我可以在 JBoss AS 3.2.x 上运行 JBoss Cache 吗?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:273
@@ -331,13 +387,13 @@
 "Yes. The JBoss Cache source code is also up to date on the jboss-3.2 CVS "
 "branch. However, only TreeCache is supported there since JBossAop (which "
 "PojoCache relies on) is only available in JBoss AS 4.x onwards."
-msgstr ""
+msgstr "可以。jboss-3.2 CVS 分支的 JBoss Cache 源代码也是最新的。然而,既然 JBossAop(PojoCache 必需的)只能用于 JBoss AS 4.x 以后的版本,那么 JBoss AS 3.2.x 只支持 TreeCache。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:282
 #, no-c-format
 msgid "Can I run multiple JBoss Cache instances on the same VM?"
-msgstr ""
+msgstr "我可以在同一个 VM 里运行多个 JBoss Cache 实例吗?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:286
@@ -347,13 +403,13 @@
 "of JBoss Cache. For example, you want to run multiple local cache instances "
 "with each instance having its own configuration (e.g., different cache "
 "policy). In this case, you will need multiple xml configuration files."
-msgstr ""
+msgstr "可以。在某些情况下,你可能希望运行多个 JBoss Cache 实例。例如,你想运行多个本地缓存实例,而每个实例都有自己的配置(例如,不同的缓存策略)。此时,你将需要多个 xml 配置文件。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:297
 #, no-c-format
 msgid "Can TreeCache run as a second level cache inside Hibernate?"
-msgstr ""
+msgstr "TreeCache 可以作为 Hibernate 内部的二级缓存运行吗?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:303
@@ -365,6 +421,9 @@
 "page=JBossCacheHibernate\"> http://wiki.jboss.org/wiki/Wiki.jsp?"
 "page=JBossCacheHibernate </ulink>"
 msgstr ""
+"可以。从 Hibernate 3.0 开始,你可以配置它把 JBoss Cache(亦即 TreeCache)用作二级缓存。细节请参考 Hibernate 文档和 <ulink url=\"http://wiki.jboss.org/wiki/Wiki.jsp?"
+"page=JBossCacheHibernate\"> http://wiki.jboss.org/wiki/Wiki.jsp?"
+"page=JBossCacheHibernate </ulink>。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:311
@@ -373,13 +432,13 @@
 "Note that since Hibernate 3.0.2 and JBossCache 1.2.2, we have fixed a "
 "critical bug that depending on the usage pattern can cause deadlock during "
 "query caching."
-msgstr ""
+msgstr "请注意,从 Hibernate 3.0.2 和 JBossCache 1.2.2 开始,我们已经修复了一个重要程序错误,它在某些使用模式下查询缓存时会导致死锁。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:320
 #, no-c-format
 msgid "What about using PojoCache as a Hibernate cache?"
-msgstr ""
+msgstr "如果把 PojoCache 作为 Hibernate 缓存使用呢?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:324
@@ -388,13 +447,13 @@
 "It is not necessary to use PojoCache for second level cache inside Hibernate "
 "because Hibernate manages fine-grained fields in Java objects. So using "
 "PojoCache won't provide any advantage."
-msgstr ""
+msgstr "因为 Hibernate 管理 Java 对象里的细颗粒度字段,所以没有必要在 Hibernate 里把 PojoCache 作为二级缓存使用。使用 PojoCache 并不会提供任何益处。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:334
 #, no-c-format
 msgid "How can I configure JBoss Cache?"
-msgstr ""
+msgstr "我该如何配置 JBoss Cache?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:338
@@ -403,7 +462,7 @@
 "You can configure the JBoss Cache through a configuration xml file. Or you "
 "can set it programmatically through its get/set methods. Check with the "
 "documentation for both examples."
-msgstr ""
+msgstr "你可以通过一个 xml 配置文件来配置 JBoss Cache。或者你可以在程序里通过其 get/set 方法来进行设置。请参考文档里与之相关的两个例子。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:347
@@ -412,6 +471,8 @@
 "In the configuration xml file, there are tags such as <literal>class</"
 "literal> , <literal>MBean</literal> , etc. What are these?"
 msgstr ""
+"XML 配置文件里的标签 <literal>class</"
+"literal>、<literal>MBean</literal> 等是什么?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:357
@@ -421,13 +482,13 @@
 "consistency, we have kept them in the standalone package as well, "
 "specifically, the <literal>MBean</literal> tag. If you run in standalone "
 "mode, JBoss Cache will ignore these elements."
-msgstr ""
+msgstr "它们是把 JBoss Cache 作为 JBoss MBean 服务部署的标签。出于一致性的考虑,我们也把它们放在独立的软件包里,特别是 <literal>MBean</literal> 标签。如果你以独立模式运行 JBoss Cache,它将忽略这些元素。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:369
 #, no-c-format
 msgid "What is the difference between the different cache modes?"
-msgstr ""
+msgstr "不同的缓存模式之间的区别是什么?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:375
@@ -447,6 +508,12 @@
 "<literal>INVALIDTAION_ASYNC</literal> . Synchronous and asynchronous "
 "behavior applies to invalidation as well as replication."
 msgstr ""
+"JBossCache 具有 5 种不同的缓存模式,它们是:<literal>LOCAL</literal>、"
+"<literal>REPL_SYNC</literal>、<literal>REPL_ASYNC</literal>、"
+"<literal>INVALIDATION_SYNC</literal> 和 <literal>INVALIDATION_ASYNC</"
+"literal>。如果你想以单个实例的方式运行 JBoss Cache,你应该把缓存模式设置为 <literal>LOCAL</literal>,这样它就不会试图进行任何复制。如果你想在不同的 JBoss Cache 实例间同步进行复制,你需要设置它为 <literal>REPL_SYNC</"
+"literal>。对于异步复制,请使用 <literal>AYSNC_REPL</literal>。如果你不希望复制缓存数据但需要简单地通知群集里的其他缓存特殊地址上的数据已经过期且应该从内存里剔出,请使用 <literal>INVALIDATION_SYNC</literal> 或 "
+"<literal>INVALIDTAION_ASYNC</literal>。同步和异步行为既可用于 invalidation(失效),也可用于 replication(复制)。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:404
@@ -457,12 +524,14 @@
 "JBoss Cache serving as a mirror or backup and you don't want to wait for "
 "confirmation that this mirror has received your messages."
 msgstr ""
+"请注意,<literal>ASYNC_REPL</literal> 和 <literal>INVALIDATION_ASYNC</"
+"literal> 是非阻塞的。当你希望用另外一个 JBoss Cache 作为镜像或备份,而不希望等候该镜像确认收到你的消息时,你就可以使用这两个模式。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:418
 #, no-c-format
 msgid "How does JBoss Cache's replication mechanism work?"
-msgstr ""
+msgstr "JBoss Cache 的复制机制是怎样工作的?"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:422
@@ -475,6 +544,8 @@
 "upon starting a new instance in the <literal>ClusterConfig</literal> "
 "attribute."
 msgstr ""
+"JBoss Cache 把 <ulink url=\"http://www.jgroups.org\">JGroups</ulink> 作为复制层。用户可以通过共享相同的群集名称(<literal>cluster name</"
+"literal>)来配置 JBoss Cache 实例的群集。你也可以配置 <literal>ClusterConfig</literal> 属性里的选项来选择在启动新的实例时是否传递缓存数据。"
 
 #. Tag: para
 #: Cache_Frequently_Asked_Questions.xml:435




More information about the jboss-cvs-commits mailing list