[jboss-cvs] JBossAS SVN: r75402 - projects/docs/enterprise/4.3/Transactions/Programmers_Guide/de-DE.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jul 4 19:13:37 EDT 2008
Author: jdimanos at jboss.com
Date: 2008-07-04 19:13:37 -0400 (Fri, 04 Jul 2008)
New Revision: 75402
Modified:
projects/docs/enterprise/4.3/Transactions/Programmers_Guide/de-DE/Chapter_06.po
Log:
update
Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/de-DE/Chapter_06.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/de-DE/Chapter_06.po 2008-07-04 23:12:21 UTC (rev 75401)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/de-DE/Chapter_06.po 2008-07-04 23:13:37 UTC (rev 75402)
@@ -1,17 +1,20 @@
+# translation of Chapter_06.po to
# Language de-DE translations for JBoss_TS_Programmers_Guide package.
+#
# Automatically generated, 2008.
-#
+# Jasna Dimanoski <jdimanos at redhat.com>, 2008.
msgid ""
msgstr ""
-"Project-Id-Version: JBoss_TS_Programmers_Guide 1.0\n"
+"Project-Id-Version: Chapter_06\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-05 09:13+1000\n"
+"Last-Translator: Jasna Dimanoski <jdimanos at redhat.com>\n"
+"Language-Team: <de 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_06.xml:6
@@ -28,8 +31,7 @@
#. Tag: para
#: Chapter_06.xml:10
#, no-c-format
-msgid ""
-"There are two distinct phases to the development of a TxCore application:"
+msgid "There are two distinct phases to the development of a TxCore application:"
msgstr ""
#. Tag: para
@@ -43,8 +45,7 @@
#. Tag: para
#: Chapter_06.xml:20
#, no-c-format
-msgid ""
-"Developing the application(s) that make use of the new classes of objects."
+msgid "Developing the application(s) that make use of the new classes of objects."
msgstr ""
#. Tag: para
@@ -107,8 +108,7 @@
#. Tag: para
#: Chapter_06.xml:40
#, no-c-format
-msgid ""
-"The Java interface definition of this simple queue class is given below:"
+msgid "The Java interface definition of this simple queue class is given below:"
msgstr ""
#. Tag: screen
@@ -143,6 +143,33 @@
" private int numberOfElements;\n"
"};"
msgstr ""
+"public class TransactionalQueue extends LockManager\n"
+"{\n"
+" public TransactionalQueue (Uid uid);\n"
+" public TransactionalQueue ();\n"
+" public void finalize ();\n"
+" \n"
+" public void enqueue (int v) throws OverFlow, UnderFlow,\n"
+" QueueError, Conflict;\n"
+" public int dequeue () throws OverFlow, UnderFlow,\n"
+" QueueError, Conflict;\n"
+" \n"
+" public int queueSize ();\n"
+" public int inspectValue (int i) throws OverFlow,\n"
+" UnderFlow, QueueError, Conflict;\n"
+" public void setValue (int i, int v) throws OverFlow,\n"
+" UnderFlow, QueueError, Conflict;\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 QUEUE_SIZE = 40; // maximum size of the "
+"queue\n"
+" \n"
+" private int[QUEUE_SIZE] elements;\n"
+" private int numberOfElements;\n"
+"};"
#. Tag: title
#: Chapter_06.xml:45
@@ -171,6 +198,12 @@
" numberOfElements = 0;\n"
"}"
msgstr ""
+"public TransactionalQueue (Uid u)\n"
+"{\n"
+" super(u);\n"
+" \n"
+" numberOfElements = 0;\n"
+"}"
#. Tag: para
#: Chapter_06.xml:51
@@ -212,6 +245,35 @@
" }\n"
"}"
msgstr ""
+"public TransactionalQueue ()\n"
+"{\n"
+" super(ObjectType.ANDPERSISTENT);\n"
+" \n"
+" numberOfElements = 0;\n"
+" \n"
+" try\n"
+" {\n"
+" AtomicAction A = new AtomicAction();\n"
+" \n"
+" A.begin(0); // Try to start atomic action\n"
+" \n"
+" // Try to set lock\n"
+" \n"
+" if (setlock(new Lock(LockMode.WRITE), 0) == "
+"LockResult.GRANTED)\n"
+" {\n"
+" A.commit(true); // Commit\n"
+" }\n"
+" else // Lock refused so abort the atomic "
+"action\n"
+" A.rollback();\n"
+" }\n"
+" catch (Exception e)\n"
+" {\n"
+" System.err.println(“Object construction error: “+e);\n"
+" System.exit(1);\n"
+" }\n"
+"}"
#. Tag: para
#: Chapter_06.xml:55
@@ -246,6 +308,10 @@
" super.terminate();\n"
"}"
msgstr ""
+"public void finalize ()\n"
+"{\n"
+" super.terminate();\n"
+"}"
#. Tag: title
#: Chapter_06.xml:63
@@ -311,6 +377,51 @@
" }\n"
"}"
msgstr ""
+"public boolean save_state (OutputObjectState os, int ObjectType)\n"
+"{\n"
+" if (!super.save_state(os, ObjectType))\n"
+" return false;\n"
+" \n"
+" try\n"
+" {\n"
+" os.packInt(numberOfElements);\n"
+" \n"
+" if (numberOfElements > 0)\n"
+" {\n"
+" for (int i = 0; i < numberOfElements; i++)\n"
+" os.packInt(elements[i]);\n"
+" }\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"
+" numberOfElements = os.unpackInt();\n"
+" \n"
+" if (numberOfElements > 0)\n"
+" {\n"
+" for (int i = 0; i < numberOfElements; i++)\n"
+" elements[i] = os.unpackInt();\n"
+" }\n"
+" \n"
+" return true;\n"
+" }\n"
+" catch (IOException e)\n"
+" {\n"
+" return false;\n"
+" }\n"
+"}"
#. Tag: para
#: Chapter_06.xml:69
@@ -329,6 +440,10 @@
" return \"/StateManager/LockManager/TransactionalQueue\";\n"
"}"
msgstr ""
+"public String type ()\n"
+"{\n"
+" return \"/StateManager/LockManager/TransactionalQueue\";\n"
+"}"
#. Tag: title
#: Chapter_06.xml:74
@@ -389,6 +504,45 @@
" }\n"
"}"
msgstr ""
+"public void enqueue (int v) throws OverFlow, UnderFlow, QueueError\n"
+"{\n"
+" AtomicAction A = new AtomicAction();\n"
+" boolean res = false;\n"
+" \n"
+" try\n"
+" {\n"
+" A.begin(0);\n"
+" \n"
+" if (setlock(new Lock(LockMode.WRITE), 0) == LockResult."
+"GRANTED)\n"
+" {\n"
+" if (numberOfElements < QUEUE_SIZE)\n"
+" {\n"
+" elements[numberOfElements] = "
+"v;\n"
+" numberOfElements++;\n"
+" res = true;\n"
+" }\n"
+" else\n"
+" {\n"
+" A.rollback();\n"
+" throw new UnderFlow();\n"
+" }\n"
+" }\n"
+" \n"
+" if (res)\n"
+" A.commit(true);\n"
+" else\n"
+" {\n"
+" A.rollback();\n"
+" throw new Conflict();\n"
+" }\n"
+" }\n"
+" catch (Exception e1)\n"
+" {\n"
+" throw new QueueError();\n"
+" }\n"
+"}"
#. Tag: title
#: Chapter_06.xml:81
@@ -399,8 +553,7 @@
#. Tag: para
#: Chapter_06.xml:82
#, no-c-format
-msgid ""
-"The implementation of <methodname>queueSize</methodname> is shown below:"
+msgid "The implementation of <methodname>queueSize</methodname> is shown below:"
msgstr ""
#. Tag: screen
@@ -437,6 +590,35 @@
" return size;\n"
"}"
msgstr ""
+"public int queueSize () throws QueueError, Conflict\n"
+"{\n"
+" AtomicAction A = new AtomicAction();\n"
+" int size = -1;\n"
+" \n"
+" try\n"
+" {\n"
+" A.begin(0);\n"
+" \n"
+" if (setlock(new Lock(LockMode.READ), 0) == LockResult."
+"GRANTED)\n"
+" size = numberOfElements;\n"
+" \n"
+" if (size != -1)\n"
+" A.commit(true);\n"
+" else\n"
+" {\n"
+" A.rollback();\n"
+" \n"
+" throw new Conflict();\n"
+" }\n"
+" }\n"
+" catch (Exception e1)\n"
+" {\n"
+" throw new QueueError();\n"
+" }\n"
+" \n"
+" return size;\n"
+"}"
#. Tag: title
#: Chapter_06.xml:86
@@ -508,6 +690,57 @@
" return val;\n"
"}"
msgstr ""
+"public int inspectValue (int index) throws UnderFlow,\n"
+" OverFlow, Conflict, QueueError\n"
+"{\n"
+" AtomicAction A = new AtomicAction();\n"
+" boolean res = false;\n"
+" int val = -1;\n"
+" \n"
+" try\n"
+" {\n"
+" A.begin();\n"
+" \n"
+" if (setlock(new Lock(LockMode.READ), 0) == LockResult."
+"GRANTED)\n"
+" {\n"
+" if (index < 0)\n"
+" {\n"
+" A.rollback();\n"
+" throw new UnderFlow();\n"
+" }\n"
+" else\n"
+" {\n"
+" // array is 0 - numberOfElements -1\n"
+" \n"
+" if (index > numberOfElements -1)\n"
+" {\n"
+" A.rollback();\n"
+" throw new OverFlow();\n"
+" }\n"
+" else\n"
+" {\n"
+" val = elements[index];\n"
+" res = true;\n"
+" }\n"
+" }\n"
+" }\n"
+" \n"
+" if (res)\n"
+" A.commit(true);\n"
+" else\n"
+" {\n"
+" A.rollback();\n"
+" throw new Conflict();\n"
+" }\n"
+" }\n"
+" catch (Exception e1)\n"
+" {\n"
+" throw new QueueError();\n"
+" }\n"
+" \n"
+" return val;\n"
+"}"
#. Tag: title
#: Chapter_06.xml:93
@@ -575,12 +808,40 @@
" System.err.println(“Caught unexpected exception!”);\n"
"}"
msgstr ""
+"AtomicAction A = new AtomicAction();\n"
+"int size = 0;\n"
+" \n"
+"try\n"
+"{\n"
+" A.begin(0);\n"
+"s\n"
+" try\n"
+" {\n"
+" size = queue.queueSize();\n"
+" }\n"
+" catch (Exception e)\n"
+" {\n"
+" }\n"
+" \n"
+" if (size >= 0)\n"
+" {\n"
+" A.commit(true);\n"
+" \n"
+" System.out.println(“Size of queue: “+size);\n"
+" }\n"
+" else\n"
+" A.rollback();\n"
+"}\n"
+"catch (Exception e)\n"
+"{\n"
+" System.err.println(“Caught unexpected exception!”);\n"
+"}"
#. Tag: title
#: Chapter_06.xml:104
#, no-c-format
msgid "Comments"
-msgstr ""
+msgstr "Anmerkungen"
#. Tag: para
#: Chapter_06.xml:105
@@ -601,3 +862,4 @@
"different elements in the queue. In the next section we address some of "
"these issues."
msgstr ""
+
More information about the jboss-cvs-commits
mailing list