[jboss-cvs] JBossAS SVN: r74945 - projects/docs/enterprise/4.3/Transactions/Programmers_Guide/pt-BR.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Jun 23 22:13:44 EDT 2008
Author: ldelima at redhat.com
Date: 2008-06-23 22:13:44 -0400 (Mon, 23 Jun 2008)
New Revision: 74945
Modified:
projects/docs/enterprise/4.3/Transactions/Programmers_Guide/pt-BR/Chapter_02.po
Log:
translation ongoing
Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/pt-BR/Chapter_02.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/pt-BR/Chapter_02.po 2008-06-24 02:11:52 UTC (rev 74944)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/pt-BR/Chapter_02.po 2008-06-24 02:13:44 UTC (rev 74945)
@@ -8,7 +8,7 @@
"Project-Id-Version: Chapter_02\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 12:11+1000\n"
+"PO-Revision-Date: 2008-06-24 12:13+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"
@@ -958,6 +958,28 @@
" private int highestIndex;\n"
" };"
msgstr ""
+"public class Array extends StateManager\n"
+"{\n"
+" public Array ();\n"
+" public Array (Uid objUid);\n"
+" public void finalize ( super.terminate(); };\n"
+" \n"
+" /* Class specific operations. */\n"
+" \n"
+" public boolean set (int index, int value);\n"
+" public int get (int index);\n"
+" \n"
+" /* State management specific operations. */\n"
+" \n"
+" public boolean save_state (OutputObjectState os, int ObjectType);\n"
+" public boolean restore_state (InputObjectState os, int ObjectType);\n"
+" public String type ();\n"
+" \n"
+" public static final int ARRAY_SIZE = 10;\n"
+" \n"
+" private int[] elements = new int[ARRAY_SIZE];\n"
+" private int highestIndex;\n"
+" };"
#. Tag: para
#: Chapter_02.xml:198
@@ -1031,6 +1053,65 @@
" return \"/StateManager/Array\";\n"
"}"
msgstr ""
+"/* Ignore ObjectType parameter for simplicity */\n"
+"\n"
+"public boolean save_state (OutputObjectState os, int ObjectType)\n"
+"{\n"
+" if (!super.save_state(os, ObjectType))\n"
+" return false;\n"
+" \n"
+" try\n"
+" { \n"
+" packInt(highestIndex);\n"
+"\n"
+" /*\n"
+" * Traverse array state that we wish to save. Only save active "
+"elements\n"
+" */\n"
+"\n"
+" for (int i = 0; i <= highestIndex; i++)\n"
+" os.packInt(elements[i]);\n"
+" \n"
+" return true;\n"
+" }\n"
+" catch (IOException e)\n"
+" {\n"
+" return false;\n"
+" }\n"
+"}\n"
+" \n"
+"public boolean restore_state (InputObjectState os, int ObjectType)\n"
+"{\n"
+" if (!super.restore_state(os, ObjectType))\n"
+" return false;\n"
+" \n"
+" try\n"
+" {\n"
+" int i = 0;\n"
+" \n"
+" highestIndex = os.unpackInt();\n"
+" \n"
+" while (i < ARRAY_SIZE)\n"
+" {\n"
+" if (i <= highestIndex)\n"
+" elements[i] = os.unpackInt();\n"
+" else\n"
+" elements[i] = 0;\n"
+" i++;\n"
+" }\n"
+" \n"
+" return true;\n"
+" }\n"
+" catch (IOException e)\n"
+" {\n"
+" return false;\n"
+" }\n"
+"}\n"
+" \n"
+"public String type ()\n"
+"{\n"
+" return \"/StateManager/Array\";\n"
+"}"
#. Tag: title
#: Chapter_02.xml:207
@@ -1077,6 +1158,15 @@
" OutputObjectState state);\n"
" };"
msgstr ""
+"public class LockStore\n"
+"{\n"
+" public abstract InputObjectState read_state (Uid u, String tName)\n"
+" throws LockStoreException;\n"
+" \n"
+" public abstract boolean remove_state (Uid u, String tname);\n"
+" public abstract boolean write_committed (Uid u, String tName,\n"
+" OutputObjectState state);\n"
+" };"
#. Tag: title
#: Chapter_02.xml:216
@@ -1142,6 +1232,8 @@
"java -D com.arjuna.ats.txoj.lockstore.lockStoreDir=/var/tmp/LockStore "
"myprogram"
msgstr ""
+"java -D com.arjuna.ats.txoj.lockstore.lockStoreDir=/var/tmp/LockStore "
+"myprogram"
#. Tag: para
#: Chapter_02.xml:232
@@ -1153,7 +1245,7 @@
#: Chapter_02.xml:234
#, no-c-format
msgid "java –classpath $CLASSPATH;/var/tmp/LockStore myprogram"
-msgstr ""
+msgstr "java –classpath $CLASSPATH;/var/tmp/LockStore myprogram"
#. Tag: para
#: Chapter_02.xml:236
@@ -1263,6 +1355,43 @@
". . .\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 defaultTimeout;\n"
+"public static final int defaultRetry;\n"
+"public static final int waitTotalTimeout;\n"
+"\n"
+"public synchronized int setlock (Lock l);\n"
+"public synchronized int setlock (Lock l, int retry);\n"
+"public synchronized int setlock (Lock l, int retry, int sleepTime);\n"
+"public synchronized boolean releaselock (Uid uid);\n"
+"\n"
+"/* abstract methods inherited from StateManager */\n"
+"\n"
+"public boolean restore_state (InputObjectState os, int ObjectType);\n"
+"public boolean save_state (OutputObjectState os, int ObjectType);\n"
+"public String type ();\n"
+"\n"
+"protected LockManager ();\n"
+"protected LockManager (int ObjectType, ObjectName attr);\n"
+"protected LockManager (Uid storeUid);\n"
+"protected LockManager (Uid storeUid, int ObjectType, ObjectName attr);\n"
+". . .\n"
+"};"
#. Tag: para
#: Chapter_02.xml:255
@@ -1330,6 +1459,22 @@
" // 100 retries) on the object\n"
" // before giving up."
msgstr ""
+"res = setlock(new Lock(WRITE), 10); \n"
+" // Will attempt to set a\n"
+" // write lock 11 times (10\n"
+" // retries) on the object\n"
+" // before giving up.\n"
+" \n"
+"res = setlock(new Lock(READ), 0); \n"
+" // Will attempt to set a read\n"
+" // lock 1 time (no retries) on\n"
+" // the object before giving up.\n"
+" \n"
+"res = setlock(new Lock(WRITE); \n"
+" // Will attempt to set a write\n"
+" // lock 101 times (default of\n"
+" // 100 retries) on the object\n"
+" // before giving up."
#. Tag: para
#: Chapter_02.xml:267
@@ -1403,6 +1548,31 @@
" . . .\n"
"};"
msgstr ""
+"public class LockMode\n"
+"{\n"
+" public static final int READ;\n"
+" public static final int WRITE;\n"
+"};\n"
+"\n"
+"public class LockStatus\n"
+"{\n"
+" public static final int LOCKFREE;\n"
+" public static final int LOCKHELD;\n"
+" public static final int LOCKRETAINED;\n"
+"};\n"
+"\n"
+"public class Lock extends StateManager\n"
+"{\n"
+" public Lock (int lockMode);\n"
+" \n"
+" public boolean conflictsWith (Lock otherLock);\n"
+" public boolean modifiesObject ();\n"
+" \n"
+" public boolean restore_state (InputObjectState os, int ObjectType);\n"
+" public boolean save_state (OutputObjectState os, int ObjectType);\n"
+" public String type ();\n"
+" . . .\n"
+"};"
#. Tag: para
#: Chapter_02.xml:278
More information about the jboss-cvs-commits
mailing list