[jboss-cvs] JBossAS SVN: r74961 - projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jun 24 03:11:17 EDT 2008


Author: agarcia at jboss.com
Date: 2008-06-24 03:11:17 -0400 (Tue, 24 Jun 2008)
New Revision: 74961

Modified:
   projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Appendix_A.po
   projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_02.po
   projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_03.po
   projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_04.po
Log:
administrators guide PR final changes

Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Appendix_A.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Appendix_A.po	2008-06-24 06:47:46 UTC (rev 74960)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Appendix_A.po	2008-06-24 07:11:17 UTC (rev 74961)
@@ -1,3 +1,4 @@
+# translation of Appendix_A.po to
 # Language es-ES translations for JBoss_TS_Programmers_Guide package.
 # Automatically generated, 2008.
 #
@@ -3,25 +4,26 @@
 msgid ""
 msgstr ""
-"Project-Id-Version: JBoss_TS_Programmers_Guide 1.0\n"
+"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-05 22:51+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-06-24 17:07+1000\n"
+"Last-Translator: Angela Garcia\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_A.xml:6
 #, no-c-format
 msgid "Object store implementations"
-msgstr ""
+msgstr "Implementaciones de almacenamiento de objetos "
 
 #. Tag: title
 #: Appendix_A.xml:9
 #, no-c-format
 msgid "The ObjectStore"
-msgstr ""
+msgstr "El ObjectStore"
 
 #. Tag: para
@@ -32,7 +34,7 @@
 "In this appendix we shall examine the various TxCore object store "
 "implementations and give guidelines as to how other implementations may be "
 "created and plugged into an application."
-msgstr ""
+msgstr "En este apéndice vamos a examinar las variadas implementaciones del almacenamiento de objetos TxCore y vamos a brindar las directrices de cómo se pueden crear otras implementaciones y conectarlas a una aplicación. "
 
 #. Tag: para
 #: Appendix_A.xml:13
@@ -48,6 +50,8 @@
 "arjuna.ats.arjuna.objectstore.objectStoreType</property> property variable "
 "to one of the types described below."
 msgstr ""
+"Este lanzamiento de JBossTS contiene varias implementaciones diferentes de un almacenamiento básico de objetos. Cada una de ellas sirve un propósito particular y generalmente se optimiza para ese propósito. Todas las implementaciones se derivan de la interfaz <interface>ObjectStore</interface>. Esta define las operaciones mínimas que se deben proveer para que JBossTS utilice una implementación de un almacenamiento de objetos. La implementación predeterminada del almacenamiento de objetos se puede sobreescribir en tiempo de ejecución configurando la variable de la propiedad <property>com."
+"arjuna.ats.arjuna.objectstore.objectStoreType</property> con uno de los tipos que se describen a continuación. "
 
 #. Tag: screen
 #: Appendix_A.xml:16
@@ -118,6 +122,70 @@
 "        public static void printState (PrintStream strm, int res);\n"
 "};"
 msgstr ""
+"/*\n"
+"        * This is the base class from which all object store types are "
+"derived.\n"
+"        * Note that because object store instances are stateless, to "
+"improve\n"
+"        * efficiency we try to only create one instance of each type per "
+"process.\n"
+"        * Therefore, the create and destroy methods are used instead of new\n"
+"        * and delete. If an object store is accessed via create it *must* "
+"be\n"
+"        * deleted using destroy. Of course it is still possible to make use "
+"of\n"
+"        * new and delete directly and to create instances on the stack.\n"
+"        */\n"
+"        \n"
+"        public class ObjectStore\n"
+"        {\n"
+"        public static final int OS_COMMITTED;\n"
+"        public static final int OS_COMMITTED_HIDDEN;\n"
+"        public static final int OS_HIDDEN;\n"
+"        public static final int OS_INVISIBLE;\n"
+"        public static final int OS_ORIGINAL;\n"
+"        public static final int OS_SHADOW;\n"
+"        public static final int OS_UNCOMMITTED;\n"
+"        public static final int OS_UNCOMMITTED_HIDDEN;\n"
+"        public static final int OS_UNKNOWN;\n"
+"        public ObjectStore (ClassName type);\n"
+"        public ObjectStore (ClassName type, String osRoot);\n"
+"        public ObjectStore (String osRoot);\n"
+"        public synchronized boolean allObjUids (String s, InputObjectState "
+"buff)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized boolean allObjUids (String s, InputObjectState "
+"buff,\n"
+"        int m) throws ObjectStoreException;\n"
+"        \n"
+"        public synchronized boolean allTypes (InputObjectState buff)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized int currentState(Uid u, String tn)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized boolean commit_state (Uid u, String tn)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized boolean hide_state (Uid u, String tn)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized boolean reveal_state (Uid u, String tn)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized InputObjectState read_committed (Uid u, String "
+"tn)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized InputObjectState read_uncommitted (Uid u, String "
+"tn)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized boolean remove_committed (Uid u, String tn)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized boolean remove_uncommitted (Uid u, String tn)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized boolean write_committed (Uid u, String tn,\n"
+"        OutputObjectState buff)\n"
+"        throws ObjectStoreException;\n"
+"        public synchronized boolean write_uncommitted (Uid u, String tn,\n"
+"        OutputObjectState buff)\n"
+"        throws ObjectStoreException;\n"
+"        public static void printState (PrintStream strm, int res);\n"
+"};"
 
 #. Tag: para
 #: Appendix_A.xml:17
@@ -140,7 +208,7 @@
 "however, any other implementation that maintains this abstraction is "
 "permissible. Object states may become hidden (and thus inaccessible) under "
 "the control of the crash recovery system."
-msgstr ""
+msgstr "Los programadores de JBossTS usualmente no necesitan interactuar directamente con ninguna de las implementaciones del almacenamiento de objetos sólo posiblemente para crearlas en primer lugar (incluso esto no es necesario si el tipo predeterminado del almacenamiento se utiliza mientras JBossTS crea almacenamientos cuando sea necesario). Todos los almacenamientos manipulan instancias de la clase <classname>ObjectState</classname>, las cuales se nombran utilizando un tipo (por medio de la operación de tipo() del objeto) y un Uid. Para los propósitos de las acciones atómicas, los estados de objeto en el almacenamiento se pueden encontrar principalmente en dos estados diferentes: OS_COMMITTED y OS_UNCOMMITTED. El estado de un objeto inicia en el estado OS_COMMITTED pero cuando se modififca bajo el control de una acción atómica puede que se escriba un segundo y nuevo estado del objeto es decir en el estado OS_UNCOMMITTED. Si la acción guarda este segundo objeto re!
 emplaza el original y se convierte en OS_COMMITTED. Si la acción aborta, este segundo estado del objeto simplemente se descarta. Todas las implementaciones que se proporcionan con este lanzamiento manejan estas transiciones de estado utilizando copias sombra de estados de objetos, sin embargo, cualquier otra implementación que mantiene esta abstracción es permisible. Los estados de objetos se pueden convertir en ocultos (y por lo tanto inaccesibles) bajo el control del sistema de recuperación de fallos. "
 
 #. Tag: para
 #: Appendix_A.xml:20
@@ -155,12 +223,15 @@
 "the Uids of all objects of a given type terminated by the special "
 "<methodname>Uid.nullUid()</methodname>."
 msgstr ""
+"El navegar el contenido de un almacenamiento es posible por medio de las operaciones <methodname>allTypes</methodname> y <methodname>allObjUids</methodname>. <methodname>allTypes</methodname> retorna un "
+"<type>InputObjectState</type> que contiene todos los nombres de tipos de todos los objetos en un almacenamiento, que terminan con un nombre nulo. <methodname>allObjUids</"
+"methodname> retorna un <type>InputObjectState</type> que contiene todos los Uids de todos los objetos de un tipo dado terminado por el <methodname>Uid.nullUid()</methodname> especial."
 
 #. Tag: title
 #: Appendix_A.xml:25
 #, no-c-format
 msgid "Persistent object stores"
-msgstr ""
+msgstr "Almacenamientos de objetos persistentes"
 
 #. Tag: para
 #: Appendix_A.xml:26
@@ -170,13 +241,13 @@
 "of the supplied implementations of the persistent object store. Persistent "
 "object states are mapped onto the structure of the file system supported by "
 "the host operating system."
-msgstr ""
+msgstr "Esta sección describe brevemente las características y optimizaciones para cada una de las implementaciones proporcionadas del almacenamiento de objetos persistentes. Los estados de objetos persistentes se mapean a la estructura del sistema de archivos soportado por el sistema operativo anfitrión. "
 
 #. Tag: title
 #: Appendix_A.xml:30
 #, no-c-format
 msgid "Common functionality"
-msgstr ""
+msgstr "Funcionalidades comunes"
 
 #. Tag: para
 #: Appendix_A.xml:31
@@ -240,6 +311,20 @@
 "        &lt;ObjectStore Type2&gt;                ActionStore/\n"
 "                &lt;Default root&gt;                        defaultStore/"
 msgstr ""
+"&lt;ObjectStore root Directory from configure&gt;        /JBossTS/"
+"ObjectStore/\n"
+"        &lt;ObjectStore Type1&gt;                        FragmentedStore/\n"
+"                &lt;Default root&gt;                        defaultStore/\n"
+"                        &lt;StateManager&gt;                        "
+"StateManager\n"
+"                                &lt;LockManager&gt;                        "
+"LockManager/\n"
+"                                        &lt;User Types&gt;                \n"
+"        &lt;Localised root 2&gt;                myStore/\n"
+"                &lt;StateManager&gt;                        StateManager/\n"
+"                                                                        \n"
+"        &lt;ObjectStore Type2&gt;                ActionStore/\n"
+"                &lt;Default root&gt;                        defaultStore/"
 
 #. Tag: title
 #: Appendix_A.xml:58
@@ -390,6 +475,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
@@ -565,3 +656,4 @@
 "property> determines whether flushes of the cache are sync-ed to disk. The "
 "default is OFF. To enable, set to ON."
 msgstr ""
+

Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_02.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_02.po	2008-06-24 06:47:46 UTC (rev 74960)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_02.po	2008-06-24 07:11:17 UTC (rev 74961)
@@ -1,3 +1,4 @@
+# translation of Chapter_02.po to
 # Language es-ES translations for JBoss_TS_Programmers_Guide package.
 # Automatically generated, 2008.
 #
@@ -3,13 +4,14 @@
 msgid ""
 msgstr ""
-"Project-Id-Version: JBoss_TS_Programmers_Guide 1.0\n"
+"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-05 22:51+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-06-24 17:09+1000\n"
+"Last-Translator: Angela Garcia\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
@@ -23,7 +25,7 @@
 #: Chapter_02.xml:9
 #, no-c-format
 msgid "Introduction"
-msgstr ""
+msgstr "Introducción"
 
 #. Tag: para
 #: Chapter_02.xml:11
@@ -91,6 +93,27 @@
 "public synchronized void packString (String s) 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"
+"};"
 
 #. Tag: title
 #: Chapter_02.xml:26
@@ -124,6 +147,27 @@
 "public synchronized String unpackString () throws IOException;\n"
 "};"
 msgstr ""
+"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: para
 #: Chapter_02.xml:28 Chapter_02.xml:34
@@ -141,7 +185,7 @@
 #: Chapter_02.xml:30 Chapter_02.xml:37
 #, no-c-format
 msgid "OutputObjectState"
-msgstr ""
+msgstr "OutputObjectState"
 
 #. Tag: programlisting
 #: Chapter_02.xml:32
@@ -175,6 +219,33 @@
 "public synchronized String unpackString () throws IOException;\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 Uidpublic 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: programlisting
 #: Chapter_02.xml:42
@@ -190,12 +261,21 @@
 "    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"
+"};"
 
 #. Tag: title
 #: Chapter_02.xml:49
 #, no-c-format
 msgid "InputObjectState"
-msgstr ""
+msgstr "InputObjectState"
 
 #. Tag: programlisting
 #: Chapter_02.xml:51
@@ -211,6 +291,15 @@
 "    public String type ();\n"
 "};"
 msgstr ""
+"class InputObjectState extends InputBuffer\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: para
 #: Chapter_02.xml:56
@@ -290,6 +379,23 @@
 ". . .\n"
 "};"
 msgstr ""
+"public class ObjectStore\n"
+"{\n"
+"public static final int OS_COMMITTED;\n"
+"public static final int OS_UNCOMMITTED;\n"
+"public static final int OS_COMMITTED_HIDDEN;\n"
+"public static final int OS_UNCOMMITTED_HIDDEN;\n"
+"public static final int OS_UNKNOWN;\n"
+"\n"
+"/* The abstract interface */\n"
+"public abstract boolean commit_state (Uid u, String name)\n"
+"throws ObjectStoreException;\n"
+"public abstract InputObjectState read_committed (Uid u, String name)\n"
+"throws ObjectStoreException;\n"
+"public abstract boolean write_uncommitted (Uid u, String name,\n"
+"OutputObjectState os) throws ObjectStoreException;\n"
+". . .\n"
+"};"
 
 #. Tag: para
 #: Chapter_02.xml:70
@@ -426,6 +532,54 @@
 "    public static final int MULTIPLE;\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"
+"    public static final int UNKNOWN_STATUS;\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 synchronized boolean activate ();\n"
+"    public synchronized boolean activate (String storeRoot);\n"
+"    public synchronized boolean deactivate ();\n"
+"    public synchronized boolean deactivate (String storeRoot, boolean "
+"commit);\n"
+"    \n"
+"    public synchronized void destroy ();\n"
+"    \n"
+"    public final Uid get_uid ();\n"
+"    \n"
+"    public boolean restore_state (InputObjectState, int ObjectType);\n"
+"    public boolean save_state (OutputObjectState, int ObjectType);\n"
+"    public String type ();\n"
+"    . . .\n"
+"    \n"
+"    protected StateManager ();\n"
+"    protected StateManager (int ObjectType, ObjectName attr);\n"
+"    protected StateManager (Uid uid);\n"
+"    protected StateManager (Uid uid, ObjectName attr);\n"
+"    . . .\n"
+"    \n"
+"    protected final void modified ();\n"
+"    . . .\n"
+"};\n"
+"\n"
+"public class ObjectModel\n"
+"{\n"
+"    public static final int SINGLE;\n"
+"    public static final int MULTIPLE;\n"
+"};"
 
 #. Tag: para
 #: Chapter_02.xml:94
@@ -469,6 +623,24 @@
 "    }\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(A);\n"
+"        os.packString(B);\n"
+"        os.packFloat(C);\n"
+"    \n"
+"        return true;\n"
+"    }\n"
+"    catch (IOException e)\n"
+"    {\n"
+"        return false;\n"
+"    }\n"
+"}"
 
 #. Tag: para
 #: Chapter_02.xml:98
@@ -638,6 +810,14 @@
 "    AtomicObject obj = new AtomicObject(ObjectType.ANDPERSISTENT, attr);\n"
 "                }"
 msgstr ""
+"{\n"
+"    ObjectName attr = new ObjectName(“SNS:myObjectName”);\n"
+"    \n"
+"    attr.setLongAttribute(ArjunaNames.StateManager_objectModel(),\n"
+"    ObjectModel.SINGLE);\n"
+"    \n"
+"    AtomicObject obj = new AtomicObject(ObjectType.ANDPERSISTENT, attr);\n"
+"                }"
 
 #. Tag: title
 #: Chapter_02.xml:161
@@ -661,7 +841,7 @@
 #: Chapter_02.xml:167
 #, no-c-format
 msgid "boolean save_state (OutputObjectState state, int ObjectType)"
-msgstr ""
+msgstr "boolean save_state (OutputObjectState state, int ObjectType)"
 
 #. Tag: para
 #: Chapter_02.xml:168
@@ -771,6 +951,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
@@ -844,6 +1046,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 &lt;= 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 &lt; ARRAY_SIZE)\n"
+"        {\n"
+"            if (i &lt;= 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
@@ -890,6 +1151,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
@@ -966,7 +1236,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
@@ -981,7 +1251,7 @@
 #: Chapter_02.xml:245
 #, no-c-format
 msgid "LockManager"
-msgstr ""
+msgstr "LockManager"
 
 #. Tag: para
 #: Chapter_02.xml:247
@@ -1076,6 +1346,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
@@ -1143,6 +1450,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
@@ -1216,6 +1539,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
@@ -1265,7 +1613,7 @@
 #: Chapter_02.xml:294
 #, no-c-format
 msgid "LockManager (int ObjectType, ObjectName attr)"
-msgstr ""
+msgstr "LockManager (int ObjectType, ObjectName attr)"
 
 #. Tag: para
 #: Chapter_02.xml:295
@@ -1302,7 +1650,7 @@
 #: Chapter_02.xml:301
 #, no-c-format
 msgid "LockManager(Uid objUid)"
-msgstr ""
+msgstr "LockManager(Uid objUid)"
 
 #. Tag: para
 #: Chapter_02.xml:302
@@ -1319,7 +1667,7 @@
 #: Chapter_02.xml:306
 #, no-c-format
 msgid "LockManager(Uid objUid, ObjectName attr)"
-msgstr ""
+msgstr "LockManager(Uid objUid, ObjectName attr)"
 
 #. Tag: para
 #: Chapter_02.xml:307
@@ -1353,3 +1701,4 @@
 "classname> class. As such, it is possible to set the "
 "<classname>StateManager</classname> object model as described earlier."
 msgstr ""
+

Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_03.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_03.po	2008-06-24 06:47:46 UTC (rev 74960)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_03.po	2008-06-24 07:11:17 UTC (rev 74961)
@@ -1,3 +1,4 @@
+# translation of Chapter_03.po to
 # Language es-ES translations for JBoss_TS_Programmers_Guide package.
 # Automatically generated, 2008.
 #
@@ -3,13 +4,14 @@
 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-24 17:09+1000\n"
+"Last-Translator: Angela Garcia\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
@@ -76,6 +78,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
@@ -196,6 +205,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 +299,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 +546,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 &gt; 0) &amp;&amp;(index &gt; 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 +672,4 @@
 "emphasis>, or <literal>com.arjuna.ats.jts.defaultTimeout</literal> if using "
 "<emphasis>ArjunaJTS</emphasis>, to the required timeout value in seconds."
 msgstr ""
+

Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_04.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_04.po	2008-06-24 06:47:46 UTC (rev 74960)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/es-ES/Chapter_04.po	2008-06-24 07:11:17 UTC (rev 74961)
@@ -1,3 +1,4 @@
+# translation of Chapter_04.po to
 # Language es-ES translations for JBoss_TS_Programmers_Guide package.
 # Automatically generated, 2008.
 #
@@ -3,13 +4,14 @@
 msgid ""
 msgstr ""
-"Project-Id-Version: JBoss_TS_Programmers_Guide 1.0\n"
+"Project-Id-Version: Chapter_04\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-24 17:10+1000\n"
+"Last-Translator: Angela Garcia\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
@@ -80,6 +82,17 @@
 "obj1\n"
 "A.commit(true);                                // obj2 saved but obj1 is not"
 msgstr ""
+"AtomicAction A = new AtomicAction();\n"
+"Object obj1;\n"
+"Object obj2;\n"
+"\n"
+"obj1 = new Object();                        // create new object\n"
+"obj2 = new Object(\"old\");                // existing object\n"
+"\n"
+"A.begin(0);\n"
+"obj2.remember(obj1.get_uid());        // obj2 now contains reference to "
+"obj1\n"
+"A.commit(true);                                // obj2 saved but obj1 is not"
 
 #. Tag: para
 #: Chapter_04.xml:22
@@ -180,6 +193,19 @@
 "    s2 = s;\n"
 "}"
 msgstr ""
+"public class Test\n"
+"{\n"
+"    public Test (String s);\n"
+"    ...\n"
+"    private String s1;\n"
+"    private String s2;\n"
+"};\n"
+"\n"
+"public Test (String s)\n"
+"{\n"
+"    s1 = s;\n"
+"    s2 = s;\n"
+"}"
 
 #. Tag: para
 #: Chapter_04.xml:43
@@ -255,6 +281,8 @@
 "boolean deactivate ()\n"
 "boolean deactivate (String storeRoot)"
 msgstr ""
+"boolean deactivate ()\n"
+"boolean deactivate (String storeRoot)"
 
 #. Tag: para
 #: Chapter_04.xml:61
@@ -281,3 +309,4 @@
 "If it is not called the object will not be saved in the object store by "
 "deactivate."
 msgstr ""
+




More information about the jboss-cvs-commits mailing list