[jboss-cvs] JBossAS SVN: r75084 - projects/docs/enterprise/4.3/Transactions/Programmers_Guide/pt-BR.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jun 25 21:07:55 EDT 2008
Author: ldelima at redhat.com
Date: 2008-06-25 21:07:55 -0400 (Wed, 25 Jun 2008)
New Revision: 75084
Modified:
projects/docs/enterprise/4.3/Transactions/Programmers_Guide/pt-BR/Chapter_03.po
Log:
translation ongoing
Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/pt-BR/Chapter_03.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/pt-BR/Chapter_03.po 2008-06-26 01:06:18 UTC (rev 75083)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/pt-BR/Chapter_03.po 2008-06-26 01:07:55 UTC (rev 75084)
@@ -1,17 +1,20 @@
+# translation of Chapter_03.po to Brazilian Portuguese
# Language pt-BR translations for JBoss_TS_Programmers_Guide package.
+#
# Automatically generated, 2008.
-#
+# Leticia de Lima <ldelima at redhat.com>, 2008.
msgid ""
msgstr ""
-"Project-Id-Version: JBoss_TS_Programmers_Guide 1.0\n"
+"Project-Id-Version: Chapter_03\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-06-26 11:07+1000\n"
+"Last-Translator: Leticia de Lima <ldelima at redhat.com>\n"
+"Language-Team: Brazilian Portuguese <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
#: Chapter_03.xml:6
@@ -76,6 +79,13 @@
"BasicList list);\n"
"};"
msgstr ""
+"public class CheckedAction\n"
+"{\n"
+"public CheckedAction ();\n"
+"\n"
+"public synchronized void check (boolean isCommit, Uid actUid,\n"
+"BasicList list);\n"
+"};"
#. Tag: para
#: Chapter_03.xml:21
@@ -105,7 +115,7 @@
#: Chapter_03.xml:30
#, no-c-format
msgid "actUid"
-msgstr ""
+msgstr "actUid"
#. Tag: para
#: Chapter_03.xml:31
@@ -117,7 +127,7 @@
#: Chapter_03.xml:35
#, no-c-format
msgid "list"
-msgstr ""
+msgstr "list"
#. Tag: para
#: Chapter_03.xml:36
@@ -196,6 +206,42 @@
"\n"
"}"
msgstr ""
+"public class TxStats\n"
+"{\n"
+"\n"
+"/**\n"
+"* Returns the number of transactions (top-level and nested)\n"
+"* created so far.\n"
+"*/\n"
+"\n"
+"public static int numberOfTransactions ();\n"
+"\n"
+"/**\n"
+"* Returns the number of nested (sub) transactions created so far.\n"
+"*/\n"
+"\n"
+"public static int numberOfNestedTransactions ();\n"
+"\n"
+"/**\n"
+"* Returns the number of transactions which have terminated with\n"
+"* heuristic outcomes.\n"
+"*/\n"
+"\n"
+"public static int numberOfHeuristics ();\n"
+"\n"
+"/**\n"
+"* Returns the number of committed transactions.\n"
+"*/\n"
+"\n"
+"public static int numberOfCommittedTransactions ();\n"
+"\n"
+"/**\n"
+"* Returns the number of transactions which have rolled back.\n"
+"*/\n"
+"\n"
+"public static int numberOfAbortedTransactions ();\n"
+"\n"
+"}"
#. Tag: title
#: Chapter_03.xml:57
@@ -254,6 +300,20 @@
" \n"
" A.commit();"
msgstr ""
+"try\n"
+" {\n"
+" boolean success = false;\n"
+" AtomicAction A = new AtomicAction();\n"
+" OnePhase opRes = new OnePhase(); // used OnePhase "
+"interface\n"
+" \n"
+" System.err.println(\"Starting top-level action.\");\n"
+" \n"
+" A.begin();\n"
+" A.add(new LastResourceRecord(opRes));\n"
+" A.add(new ShutdownRecord(ShutdownRecord.FAIL_IN_PREPARE));\n"
+" \n"
+" A.commit();"
#. Tag: title
#: Chapter_03.xml:68
@@ -487,6 +547,48 @@
" return -1;\n"
"}"
msgstr ""
+"public boolean set (int index, int value)\n"
+"{\n"
+" boolean result = false;\n"
+" AtomicAction A = new AtomicAction();\n"
+"\n"
+" A.begin();\n"
+"\n"
+" // We need to set a WRITE lock as we want to modify the state.\n"
+"\n"
+" if (setlock(new Lock(LockMode.WRITE), 0) == LockResult.GRANTED)\n"
+" {\n"
+" elements[index] = value;\n"
+" if ((value > 0) &&(index > highestIndex))\n"
+" highestIndex = index;\n"
+" A.commit(true);\n"
+" result = true;\n"
+" }\n"
+" else\n"
+" A.rollback();\n"
+"\n"
+" return result;\n"
+"}\n"
+"\n"
+"public int get (int index) // assume -1 means error\n"
+"{\n"
+" AtomicAction A = new AtomicAction();\n"
+"\n"
+" A.begin();\n"
+"\n"
+" // We only need a READ lock as the state is unchanged.\n"
+"\n"
+" if (setlock(new Lock(LockMode.READ), 0) == LockResult.GRANTED)\n"
+" {\n"
+" A.commit(true);\n"
+"\n"
+" return elements[index];\n"
+" }\n"
+" else\n"
+" A.rollback();\n"
+"\n"
+" return -1;\n"
+"}"
#. Tag: title
#: Chapter_03.xml:129
@@ -571,3 +673,4 @@
"emphasis>, or <literal>com.arjuna.ats.jts.defaultTimeout</literal> if using "
"<emphasis>ArjunaJTS</emphasis>, to the required timeout value in seconds."
msgstr ""
+
More information about the jboss-cvs-commits
mailing list