[jboss-cvs] JBossAS SVN: r75328 - projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jul 3 02:10:21 EDT 2008


Author: xhuang at jboss.com
Date: 2008-07-03 02:10:21 -0400 (Thu, 03 Jul 2008)
New Revision: 75328

Modified:
   projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Appendix_A.po
   projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Appendix_B.po
   projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Author_Group.po
Log:
update

Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Appendix_A.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Appendix_A.po	2008-07-03 06:00:59 UTC (rev 75327)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Appendix_A.po	2008-07-03 06:10:21 UTC (rev 75328)
@@ -8,7 +8,7 @@
 "Project-Id-Version: Appendix_A\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-06-05 22:51+0000\n"
-"PO-Revision-Date: 2008-06-24 15:39+1000\n"
+"PO-Revision-Date: 2008-07-03 16:09+1000\n"
 "Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -26,7 +26,7 @@
 #: Appendix_A.xml:9
 #, no-c-format
 msgid "The ObjectStore"
-msgstr "ObjectStore"
+msgstr "Object Store"
 
 #. Tag: para
 #: Appendix_A.xml:10
@@ -423,7 +423,7 @@
 #: Appendix_A.xml:103
 #, no-c-format
 msgid "The JDBC store"
-msgstr ""
+msgstr "JDBC store"
 
 #. Tag: para
 #: Appendix_A.xml:104
@@ -438,6 +438,8 @@
 "this limit an error will be output and the state will not be stored. The "
 "transaction will subsequently be forced to roll back."
 msgstr ""
+"<methodname>JDBCStore</methodname> 使用 JDBC 数据库来保存持久性对象的状态。如果和Transactional "
+"Objects for Java API 一起使用,它可以支持嵌套的事务。在当前的实现里,所有的 Object Store 都以 Binary Large Objects (BLOBs) 存储在相同的表里。使用 BLOB 会限制对象状态的大小为 64k。如果试图存储超过这个限制的对象状态,系统将报错,状态也不能成功存储。随后事务将被迫回滚。"
 
 #. Tag: para
 #: Appendix_A.xml:108
@@ -447,6 +449,8 @@
 "implementation of the following interface, located in the <code>com.arjuna."
 "ats.arjuna.objectstore</code> package:"
 msgstr ""
+"在使用 JDBC object store 时,应用程序必须提供下面的接口(位于 <code>com.arjuna."
+"ats.arjuna.objectstore</code> 包里)的一个实现:"
 
 #. Tag: screen
 #: Appendix_A.xml:111
@@ -459,6 +463,12 @@
 "        public void initialise (ObjectName objName);\n"
 "}"
 msgstr ""
+"public interface JDBCAccess\n"
+"{\n"
+"        public Connection getConnection () throws SQLException;\n"
+"        public void putConnection (Connection conn) throws SQLException;\n"
+"        public void initialise (ObjectName objName);\n"
+"}"
 
 #. Tag: para
 #: Appendix_A.xml:112
@@ -467,7 +477,7 @@
 "The implementation of this class is responsible for providing the "
 "<emphasis>Connection</emphasis> which the JDBC ObjectStore will use to save "
 "and restore object states:"
-msgstr ""
+msgstr "对这个接口的实现负责提供 JDBC ObjectStore 用来保存和恢复对象状态的 <emphasis>Connection 实例</emphasis>:"
 
 #. Tag: para
 #: Appendix_A.xml:117
@@ -478,7 +488,7 @@
 "implementation should use whatever policy is necessary for determining what "
 "connection to return. This method need not return the same Connection "
 "instance more than once."
-msgstr ""
+msgstr "<methodname>getConnection</methodname>:返回要使用的连接。每当需要连接数据库时这个方法将被调用,这个实现应该所需的策略来决定返回什么样的连接。这个方法不会返回相同的 Connection 实例。"
 
 #. Tag: para
 #: Appendix_A.xml:122
@@ -487,7 +497,7 @@
 "<methodname>putConnection</methodname>: this method will be called to return "
 "one of the Connections acquired from getConnection. Connections are returned "
 "if any errors occur when using them."
-msgstr ""
+msgstr "<methodname>putConnection</methodname>:调用这个方法将退回用 getConnection 获取的 Connection 实例。当使用连接出错时,该连接将被退回。"
 
 #. Tag: para
 #: Appendix_A.xml:127
@@ -495,7 +505,7 @@
 msgid ""
 "<methodname>initialise</methodname>: this can be used to pass additional "
 "arbitrary information to the implementation."
-msgstr ""
+msgstr "<methodname>initialise</methodname>:这个方法可以把其他任何信息传递给该实现。"
 
 #. Tag: para
 #: Appendix_A.xml:132
@@ -507,6 +517,9 @@
 "the <property>com.arjuna.ats.arjuna.objectstore.jdbcPoolSizeMaximum</"
 "property> property."
 msgstr ""
+"JDBC object store 将首先请求 <property>com.arjuna.ats.arjuna.objectstore."
+"jdbcPoolSizeInitial</property> 属性里定义的连接的数量,它不会使用超过  <property>com.arjuna.ats.arjuna.objectstore.jdbcPoolSizeMaximum</"
+"property> 定义的个数的连接。"
 
 #. Tag: para
 #: Appendix_A.xml:135
@@ -575,7 +588,7 @@
 #: Appendix_A.xml:158
 #, no-c-format
 msgid "The store can be configured with the following properties:"
-msgstr ""
+msgstr "Store 可以用下面的属性进行配置:"
 
 #. Tag: para
 #: Appendix_A.xml:163
@@ -585,6 +598,8 @@
 "property> sets the number of internal stores to hash the states over. The "
 "default value is 128."
 msgstr ""
+"<property>com.arjuna.ats.internal.arjuna.objectstore.cacheStore.hash</"
+"property> 设置内部 store 使用的 hash。缺省值是 128。"
 
 #. Tag: para
 #: Appendix_A.xml:168
@@ -594,6 +609,8 @@
 "property> is the maximum size the cache can reach before a flush is "
 "triggered. The default is 10240 bytes."
 msgstr ""
+"<property>com.arjuna.ats.internal.arjuna.objectstore.cacheStore.size</"
+"property> 是在触发冲刷前缓存的最大容量。缺省值为 10240 字节。"
 
 #. Tag: para
 #: Appendix_A.xml:173
@@ -607,6 +624,8 @@
 "affect the performance of the cache). When triggered, these entries are "
 "removed from the cache. The default value is twice the size of the hash."
 msgstr ""
+"<property>com.arjuna.ats.internal.arjuna.objectstore.cacheStore."
+"removedItems</property> 是在触发冲刷前缓存可包含的最多已删除条目的数量。在缺省情况下,对状态删除的调用将简单地从缓存里把该状态删除,但会保留一个空白的条目(而不是马上删除该条目,这样会影响缓存的性能)。当冲刷被触发时,这些条目才会从缓存里删除。其缺省值是 hash 值的两倍。"
 
 #. Tag: para
 #: Appendix_A.xml:178
@@ -616,6 +635,8 @@
 "property> is the maximum number of items that are allowed to build up in the "
 "cache before it is flushed. The default value is 100."
 msgstr ""
+"<property>com.arjuna.ats.internal.arjuna.objectstore.cacheStore.workItems</"
+"property> 是在冲刷前缓存里可允许保留的条目的最大个数。缺省值为 100。"
 
 #. Tag: para
 #: Appendix_A.xml:183
@@ -625,6 +646,8 @@
 "property> sets the time in milliseconds for periodically flushing the cache. "
 "The default is 120 seconds."
 msgstr ""
+"<property>com.arjuna.ats.internal.arjuna.objectstore.cacheStore.scanPeriod</"
+"property> 设置缓存冲刷的时间间隔(以毫秒为单位)。缺省值为 120 秒。"
 
 #. Tag: para
 #: Appendix_A.xml:188
@@ -634,4 +657,6 @@
 "property> determines whether flushes of the cache are sync-ed to disk. The "
 "default is OFF. To enable, set to ON."
 msgstr ""
+"<property>com.arjuna.ats.internal.arjuna.objectstore.cacheStore.sync</"
+"property> 指定缓存的冲刷是否和磁盘同步。缺省为 OFF。要启用则可设为 ON。"
 

Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Appendix_B.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Appendix_B.po	2008-07-03 06:00:59 UTC (rev 75327)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Appendix_B.po	2008-07-03 06:10:21 UTC (rev 75328)
@@ -1,29 +1,32 @@
+# translation of Appendix_B.po to
 # Language zh-CN translations for JBoss_TS_Programmers_Guide package.
+#
 # Automatically generated, 2008.
-#
+# Xi HUANG <xhuang at redhat.com>, 2008.
 msgid ""
 msgstr ""
-"Project-Id-Version: JBoss_TS_Programmers_Guide 1.0\n"
+"Project-Id-Version: Appendix_B\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-06-05 22:51+0000\n"
-"PO-Revision-Date: 2008-06-05 22:51+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-07-03 15:47+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\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
 #: Appendix_B.xml:6
 #, no-c-format
 msgid "Class definitions"
-msgstr ""
+msgstr "类定义"
 
 #. Tag: title
 #: Appendix_B.xml:9
 #, no-c-format
 msgid "Introduction"
-msgstr ""
+msgstr "简介"
 
 #. Tag: para
 #: Appendix_B.xml:10
@@ -34,19 +37,19 @@
 "quick reference guide to these classes for use when writing applications in "
 "TxCore. For clarity only the public and protected interfaces of the classes "
 "will be given."
-msgstr ""
+msgstr "本附录包含了应用程序开发人员经常使用的类的概述。其目的是为编写 TxCore 应用程序提供一个快速参考手册。需要澄清的是,这里只给出了这些类的 public 或 protected 接口。"
 
 #. Tag: title
 #: Appendix_B.xml:15
 #, no-c-format
 msgid "Class library"
-msgstr ""
+msgstr "类库"
 
 #. Tag: title
 #: Appendix_B.xml:17
 #, no-c-format
 msgid "Lock Manager"
-msgstr ""
+msgstr "Lock Manager"
 
 #. Tag: screen
 #: Appendix_B.xml:20
@@ -92,12 +95,51 @@
 "        protected void terminate ();\n"
 "};"
 msgstr ""
+"public class LockResult\n"
+"{\n"
+"        public static final int GRANTED;\n"
+"        public static final int REFUSED;\n"
+"        public static final int RELEASED;\n"
+"};\n"
+"        \n"
+"public class ConflictType\n"
+"{\n"
+"        public static final int CONFLICT;\n"
+"        public static final int COMPATIBLE;\n"
+"        public static final int PRESENT;\n"
+"};\n"
+"        \n"
+"public abstract class LockManager extends StateManager\n"
+"{\n"
+"        public static final int defaultRetry;\n"
+"        public static final int defaultTimeout;\n"
+"        public static final int waitTotalTimeout;\n"
+"        \n"
+"        public final synchronized boolean releaselock (Uid lockUid);\n"
+"        public final synchronized int setlock (Lock toSet);\n"
+"        public final synchronized int setlock (Lock toSet, int retry);\n"
+"        public final synchronized int setlock (Lock toSet, int retry, int "
+"sleepTime);\n"
+"        public void print (PrintStream strm);\n"
+"        public String type ();\n"
+"        public boolean save_state (OutputObjectState os, int ObjectType);\n"
+"        public boolean restore_state (InputObjectState os, int ObjectType);\n"
+"        \n"
+"        protected LockManager ();\n"
+"        protected LockManager (int ot);\n"
+"        protected LockManager (int ot, ObjectName attr);\n"
+"        protected LockManager (Uid storeUid);\n"
+"        protected LockManager (Uid storeUid, int ot);\n"
+"        protected LockManager (Uid storeUid, int ot, ObjectName attr);\n"
+"        \n"
+"        protected void terminate ();\n"
+"};"
 
 #. Tag: title
 #: Appendix_B.xml:22
 #, no-c-format
 msgid "StateManager"
-msgstr ""
+msgstr "StateManager"
 
 #. Tag: screen
 #: Appendix_B.xml:25
@@ -147,12 +189,55 @@
 "        protected synchronized final void modified ();\n"
 "};"
 msgstr ""
+"public class ObjectStatus\n"
+"{\n"
+"        public static final int PASSIVE;\n"
+"        public static final int PASSIVE_NEW;\n"
+"        public static final int ACTIVE;\n"
+"        public static final int ACTIVE_NEW;\n"
+"};\n"
+"        \n"
+"public class ObjectType\n"
+"{\n"
+"        public static final int RECOVERABLE;\n"
+"        public static final int ANDPERSISTENT;\n"
+"        public static final int NEITHER;\n"
+"};\n"
+"        \n"
+"public abstract class StateManager\n"
+"{\n"
+"        public boolean restore_state (InputObjectState os, int ot);\n"
+"        public boolean save_state (OutputObjectState os, int ot);\n"
+"        public String type ();\n"
+"        \n"
+"        public synchronized boolean activate ();\n"
+"        public synchronized boolean activate (String rootName);\n"
+"        public synchronized boolean deactivate ();\n"
+"        public synchronized boolean deactivate (String rootName);\n"
+"        public synchronized boolean deactivate (String rootName, boolean "
+"commit);\n"
+"        \n"
+"        public synchronized int status ();\n"
+"        public final Uid get_uid ();\n"
+"        public void destroy ();\n"
+"        public void print (PrintStream strm);\n"
+"        \n"
+"        protected void terminate ();\n"
+"        \n"
+"        protected StateManager ();\n"
+"        protected StateManager (int ot);\n"
+"        protected StateManager (int ot, ObjectName objName);\n"
+"        protected StateManager (Uid objUid);\n"
+"        protected StateManager (Uid objUid, int ot);\n"
+"        protected StateManager (Uid objUid, int ot, ObjectName objName);\n"
+"        protected synchronized final void modified ();\n"
+"};"
 
 #. Tag: title
 #: Appendix_B.xml:27
 #, no-c-format
 msgid "Input/OutputObjectState"
-msgstr ""
+msgstr "Input/OutputObjectState"
 
 #. Tag: screen
 #: Appendix_B.xml:30
@@ -177,12 +262,30 @@
 "        public String type ();\n"
 "};"
 msgstr ""
+"class OutputObjectState extends OutputBuffer\n"
+"{\n"
+"        public OutputObjectState (Uid newUid, String typeName);\n"
+"        \n"
+"        public boolean notempty ();\n"
+"        public int size ();\n"
+"        public Uid stateUid ();\n"
+"        public String type ();\n"
+"};\n"
+"class InputObjectState extends ObjectState\n"
+"{\n"
+"        public OutputObjectState (Uid newUid, String typeName, byte[] b);\n"
+"        \n"
+"        public boolean notempty ();\n"
+"        public int size ();\n"
+"        public Uid stateUid ();\n"
+"        public String type ();\n"
+"};"
 
 #. Tag: title
 #: Appendix_B.xml:32
 #, no-c-format
 msgid "Input/OutputBuffer"
-msgstr ""
+msgstr "Input/OutputBuffer"
 
 #. Tag: screen
 #: Appendix_B.xml:35
@@ -232,12 +335,55 @@
 "        public synchronized String unpackString () throws IOException;\n"
 "};"
 msgstr ""
+"public class OutputBuffer\n"
+"{\n"
+"        public        OutputBuffer ();\n"
+"        \n"
+"        public final synchronized boolean valid ();\n"
+"        public synchronized byte[] buffer();\n"
+"        public synchronized int length ();\n"
+"        \n"
+"        /* pack operations for standard Java types */\n"
+"        \n"
+"        public synchronized void packByte (byte b) throws IOException;\n"
+"        public synchronized void packBytes (byte[] b) throws IOException;\n"
+"        public synchronized void packBoolean (boolean b) throws "
+"IOException;\n"
+"        public synchronized void packChar (char c) throws IOException;\n"
+"        public synchronized void packShort (short s) throws IOException;\n"
+"        public synchronized void packInt (int i) throws IOException;\n"
+"        public synchronized void packLong (long l) throws IOException;\n"
+"        public synchronized void packFloat (float f) throws IOException;\n"
+"        public synchronized void packDouble (double d) throws IOException;\n"
+"        public synchronized void packString (String s) throws IOException;\n"
+"};\n"
+"public class InputBuffer\n"
+"{\n"
+"        public        InputBuffer ();\n"
+"        \n"
+"        public final synchronized boolean valid ();\n"
+"        public synchronized byte[] buffer();\n"
+"        public synchronized int length ();\n"
+"        \n"
+"        /* unpack operations for standard Java types */\n"
+"        \n"
+"        public synchronized byte unpackByte () throws IOException;\n"
+"        public synchronized byte[] unpackBytes () throws IOException;\n"
+"        public synchronized boolean unpackBoolean () throws IOException;\n"
+"        public synchronized char unpackChar () throws IOException;\n"
+"        public synchronized short unpackShort () throws IOException;\n"
+"        public synchronized int unpackInt () throws IOException;\n"
+"        public synchronized long unpackLong () throws IOException;\n"
+"        public synchronized float unpackFloat () throws IOException;\n"
+"        public synchronized double unpackDouble () throws IOException;\n"
+"        public synchronized String unpackString () throws IOException;\n"
+"};"
 
 #. Tag: title
 #: Appendix_B.xml:37
 #, no-c-format
 msgid "<title>Uid</title>"
-msgstr ""
+msgstr "<title>Uid</title>"
 
 #. Tag: screen
 #: Appendix_B.xml:40
@@ -267,12 +413,35 @@
 "        public static synchronized Uid nullUid ();\n"
 "};"
 msgstr ""
+"public class Uid implements Cloneable\n"
+"{\n"
+"        public Uid ();\n"
+"        public Uid (Uid copyFrom);\n"
+"        public Uid (String uidString);\n"
+"        public Uid (String uidString, boolean errorsOk);\n"
+"        public synchronized void pack (OutputBuffer packInto) throws "
+"IOException;\n"
+"        public synchronized void unpack (InputBuffer unpackFrom) throws "
+"IOException;\n"
+"        \n"
+"        public void print (PrintStream strm);\n"
+"        public String toString ();\n"
+"        public Object clone () throws CloneNotSupportedException;\n"
+"        public synchronized void copy (Uid toCopy) throws UidException;\n"
+"        public boolean equals (Uid u);\n"
+"        public boolean notEquals (Uid u);\n"
+"        public boolean lessThan (Uid u);\n"
+"        public boolean greaterThan (Uid u);\n"
+"        \n"
+"        public synchronized final boolean valid ();\n"
+"        public static synchronized Uid nullUid ();\n"
+"};"
 
 #. Tag: title
 #: Appendix_B.xml:42
 #, no-c-format
 msgid "AtomicAction"
-msgstr ""
+msgstr "AtomicAction"
 
 #. Tag: screen
 #: Appendix_B.xml:45
@@ -305,3 +474,30 @@
 "        Inactive;\n"
 "};"
 msgstr ""
+"public class AtomicAction\n"
+"{\n"
+"        public AtomicAction ();\n"
+"        \n"
+"        public void begin () throws SystemException, "
+"SubtransactionsUnavailable,\n"
+"        NoTransaction;\n"
+"        public void commit (boolean report_heuristics) throws "
+"SystemException, \n"
+"        NoTransaction, HeuristicMixed,\n"
+"        HeuristicHazard,TransactionRolledBack;\n"
+"        public void rollback () throws SystemException, NoTransaction;\n"
+"        public Control control () throws SystemException, NoTransaction;\n"
+"        public Status get_status () throws SystemException;\n"
+"        /* Allow action commit to be supressed */    \n"
+"        public void rollbackOnly () throws SystemException, NoTransaction;\n"
+"        \n"
+"        public void registerResource (Resource r) throws SystemException, "
+"Inactive;\n"
+"        public void registerSubtransactionAwareResource "
+"(SubtransactionAwareResource sr)\n"
+"        throws SystemException, NotSubtransaction;\n"
+"        public void registerSynchronization (Synchronization s) throws "
+"SystemException,\n"
+"        Inactive;\n"
+"};"
+

Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Author_Group.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Author_Group.po	2008-07-03 06:00:59 UTC (rev 75327)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Author_Group.po	2008-07-03 06:10:21 UTC (rev 75328)
@@ -1,20 +1,24 @@
+# translation of Author_Group.po to
 # Language zh-CN translations for JBoss_TS_Programmers_Guide package.
+#
 # Automatically generated, 2008.
-#
+# Xi HUANG <xhuang at redhat.com>, 2008.
 msgid ""
 msgstr ""
-"Project-Id-Version: JBoss_TS_Programmers_Guide 1.0\n"
+"Project-Id-Version: Author_Group\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-06-05 22:51+0000\n"
-"PO-Revision-Date: 2008-06-05 22:51+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-07-03 15:44+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\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: corpauthor
 #: Author_Group.xml:6
 #, no-c-format
 msgid "Red Hat Documentation Group"
-msgstr ""
+msgstr "Red Hat Documentation Group"
+




More information about the jboss-cvs-commits mailing list