[jboss-cvs] JBossAS SVN: r78839 - projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 25 01:18:43 EDT 2008


Author: ldelima at redhat.com
Date: 2008-09-25 01:18:42 -0400 (Thu, 25 Sep 2008)
New Revision: 78839

Modified:
   projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Replication.po
   projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Transactions.po
   projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Treecache_marshaller.po
Log:
proofread in progress

Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Replication.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Replication.po	2008-09-25 04:38:11 UTC (rev 78838)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Replication.po	2008-09-25 05:18:42 UTC (rev 78839)
@@ -9,7 +9,7 @@
 "Project-Id-Version: Replication\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-21 04:44+0000\n"
-"PO-Revision-Date: 2008-09-25 14:12+1000\n"
+"PO-Revision-Date: 2008-09-25 15: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"
@@ -78,7 +78,7 @@
 "also offers a replication queue, where modifications are replicated "
 "periodically (i.e. interval-based), or when the queue size exceeds a number "
 "of elements, or a combination thereof."
-msgstr ""
+msgstr "A replicação pode ser síncrona ou assíncrona. O uso de uma destas opções é uma dependência do aplicativo. A replicação síncrona bloqueia o chamador (por exemplo: um put()) até que as modificações tenham sido replicadas com sucesso a todos os nós num cluster. A replicação assíncrona desempenha a replicação no plano de fundo (o put() retorna imediatamente). O <literal>TreeCache</literal> também oferece a fila de replicação, onde as modificações são replicadas periodicamente (por exemplo: intervalo baseado) ou quando o tamanho da fila excede um número de elementos, ou combinação disto."
 
 #. Tag: para
 #: Replication.xml:24
@@ -93,7 +93,7 @@
 "asynchronous replication, errors are simply written to a log. Even when "
 "using transactions, a transaction may succeed but replication may not "
 "succeed on all <literal>TreeCache</literal> instances."
-msgstr ""
+msgstr "A replicação assíncrona é rápida (sem chamador realizando o bloqueamento), pois a replicação síncrona requer conhecimento de todos os nós num cluster que eles "
 
 #. Tag: title
 #: Replication.xml:28

Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Transactions.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Transactions.po	2008-09-25 04:38:11 UTC (rev 78838)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Transactions.po	2008-09-25 05:18:42 UTC (rev 78839)
@@ -1,18 +1,21 @@
+# translation of Transactions.po to Brazilian Portuguese
 # Language /tmp/mike/JBEAP420/Cache translations for JBEAP package.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+#
 # Automatically generated, 2007.
-#
+# Leticia de Lima <ldelima at redhat.com>, 2008.
 msgid ""
 msgstr ""
-"Project-Id-Version: JBEAP 420\n"
+"Project-Id-Version: Transactions\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-21 04:44+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-25 15:16+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
 #: Transactions.xml:5
@@ -168,6 +171,10 @@
 "       W\n"
 " R"
 msgstr ""
+"Tx1   Tx2\n"
+" R\n"
+"       W\n"
+" R"
 
 #. Tag: para
 #: Transactions.xml:53
@@ -335,6 +342,14 @@
 "&lt;attribute name=\"NodeLockingScheme\"&gt;OPTIMISTIC&lt;/attribute&gt;\n"
 "..."
 msgstr ""
+"...\n"
+"&lt;!--\n"
+"Node locking scheme:\n"
+"    OPTIMISTIC\n"
+"    PESSIMISTIC (default)\n"
+"--&gt;\n"
+"&lt;attribute name=\"NodeLockingScheme\"&gt;OPTIMISTIC&lt;/attribute&gt;\n"
+"..."
 
 #. Tag: title
 #: Transactions.xml:116
@@ -424,6 +439,17 @@
 "    }\n"
 "}"
 msgstr ""
+"public class JBossTransactionManagerLookup implements "
+"TransactionManagerLookup {\n"
+"\n"
+"    public JBossTransactionManagerLookup() {}\n"
+"\n"
+"    public TransactionManager getTransactionManager() throws Exception {\n"
+"       Object tmp=new InitialContext().lookup(\"java:/TransactionManager"
+"\");\n"
+"       return (TransactionManager)tmp;\n"
+"    }\n"
+"}"
 
 #. Tag: para
 #: Transactions.xml:148
@@ -537,6 +563,26 @@
 "   try { tx.rollback(); } catch(Throwable t) {}\n"
 "}"
 msgstr ""
+"Properties prop = new Properties();\n"
+"prop.put(Context.INITIAL_CONTEXT_FACTORY, \"org.jboss.cache.transaction."
+"DummyContextFactory\");\n"
+"User Transaction tx=(UserTransaction)new InitialContext(prop).lookup"
+"(\"UserTransaction\");\n"
+"TreeCache tree = new TreeCache();\n"
+"PropertyConfigurator config = new PropertyConfigurator();\n"
+"config.configure(tree, \"META-INF/replSync-service.xml\");\n"
+"tree.createService(); // not necessary\n"
+"tree.startService(); // kick start tree cache\n"
+"\n"
+"try {\n"
+"   tx.begin();\n"
+"   tree.put(\"/classes/cs-101\", \"description\", \"the basics\");\n"
+"   tree.put(\"/classes/cs-101\", \"teacher\", \"Ben\");\n"
+"   tx.commit();\n"
+"}\n"
+"catch(Throwable ex) {\n"
+"   try { tx.rollback(); } catch(Throwable t) {}\n"
+"}"
 
 #. Tag: para
 #: Transactions.xml:178
@@ -553,6 +599,8 @@
 "UserTransaction tx = new DummyUserTransaction(DummyTransactionManager."
 "getInstance());"
 msgstr ""
+"UserTransaction tx = new DummyUserTransaction(DummyTransactionManager."
+"getInstance());"
 
 #. Tag: para
 #: Transactions.xml:184
@@ -577,3 +625,4 @@
 "commit protocol applying the modifications to all nodes in the cluster, the "
 "transaction is rolled back."
 msgstr ""
+

Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Treecache_marshaller.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Treecache_marshaller.po	2008-09-25 04:38:11 UTC (rev 78838)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Treecache_marshaller.po	2008-09-25 05:18:42 UTC (rev 78839)
@@ -1,24 +1,27 @@
+# translation of Treecache_marshaller.po to Brazilian Portuguese
 # Language /tmp/mike/JBEAP420/Cache translations for JBEAP package.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+#
 # Automatically generated, 2007.
-#
+# Leticia de Lima <ldelima at redhat.com>, 2008.
 msgid ""
 msgstr ""
-"Project-Id-Version: JBEAP 420\n"
+"Project-Id-Version: Treecache_marshaller\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-21 04:44+0000\n"
-"PO-Revision-Date: 2001-02-09 01:25+0100\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-09-25 15:18+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
 #: Treecache_marshaller.xml:5
 #, no-c-format
 msgid "TreeCacheMarshaller"
-msgstr ""
+msgstr "TreeCacheMarshaller"
 
 #. Tag: para
 #: Treecache_marshaller.xml:6
@@ -118,6 +121,57 @@
 " */\n"
 "void unregisterClassLoader(String fqn) throws RegionNotFoundException;"
 msgstr ""
+"/**\n"
+" * Sets whether marshalling uses scoped class loaders on a per region "
+"basis.\n"
+" *\n"
+" * This property must be set to true before any call to\n"
+" * {@link #registerClassLoader(String, ClassLoader)} or\n"
+" * {@link #activateRegion(String)}\n"
+" *\n"
+" * @param isTrue\n"
+" */\n"
+"void setUseRegionBasedMarshalling(boolean isTrue);\n"
+"\n"
+"/**\n"
+" * Gets whether marshalling uses scoped class loaders on a per region "
+"basis.\n"
+" */\n"
+"boolean getUseRegionBasedMarshalling();\n"
+"\n"
+"/**\n"
+" * Registers the given classloader with <code>TreeCacheMarshaller</code> "
+"for\n"
+" * use in unmarshalling replicated objects for the specified region.\n"
+" *\n"
+" * @param fqn The fqn region. This fqn and its children will use this "
+"classloader for \n"
+" * (un)marshalling.\n"
+" * @param cl The class loader to use\n"
+" *\n"
+" * @throws RegionNameConflictException if <code>fqn</code> is a descendant "
+"of\n"
+" * an FQN that already has a classloader registered.\n"
+" * @throws IllegalStateException if <code>useMarshalling</code> is "
+"<code>false</code>\n"
+" */\n"
+"void registerClassLoader(String fqn, ClassLoader cl) throws "
+"RegionNameConflictException;\n"
+"\n"
+"/**\n"
+" * Instructs the <code>TreeCacheMarshaller</code> to no longer use a "
+"special\n"
+" * classloader to unmarshal replicated objects for the specified region.\n"
+" *\n"
+" * @param fqn The fqn of the root node of region.\n"
+" *\n"
+" * @throws RegionNotFoundException if no classloader has been registered "
+"for\n"
+" * <code>fqn</code>.\n"
+" * @throws IllegalStateException if <code>useMarshalling</code> is "
+"<code>false</code>\n"
+" */\n"
+"void unregisterClassLoader(String fqn) throws RegionNotFoundException;"
 
 #. Tag: para
 #: Treecache_marshaller.xml:18
@@ -132,9 +186,8 @@
 #. Tag: programlisting
 #: Treecache_marshaller.xml:21
 #, no-c-format
-msgid ""
-"&lt;attribute name=\"UseRegionBasedMarshalling\"&gt;true&lt;/attribute&gt;"
-msgstr ""
+msgid "&lt;attribute name=\"UseRegionBasedMarshalling\"&gt;true&lt;/attribute&gt;"
+msgstr "&lt;attribute name=\"UseRegionBasedMarshalling\"&gt;true&lt;/attribute&gt;"
 
 #. Tag: para
 #: Treecache_marshaller.xml:22
@@ -224,8 +277,7 @@
 #. Tag: para
 #: Treecache_marshaller.xml:55
 #, no-c-format
-msgid ""
-"Replication to B fails, as the required classloader is not yet registered."
+msgid "Replication to B fails, as the required classloader is not yet registered."
 msgstr ""
 
 #. Tag: para
@@ -351,6 +403,71 @@
 "RegionNameConflictException,\n"
 "CacheException;"
 msgstr ""
+"/**\n"
+" * Sets whether the entire tree is inactive upon startup, only responding\n"
+" * to replication messages after {@link #activateRegion(String)} is\n"
+" * called to activate one or more parts of the tree.\n"
+" * &lt;p&gt;\n"
+" * This property is only relevant if {@link #getUseRegionBasedMarshalling()} "
+"is\n"
+" * <code>true</code>.\n"
+" *\n"
+" */\n"
+"public void setInactiveOnStartup(boolean inactiveOnStartup);\n"
+"\n"
+"/**\n"
+" * Gets whether the entire tree is inactive upon startup, only responding\n"
+" * to replication messages after {@link #activateRegion(String)} is\n"
+" * called to activate one or more parts of the tree.\n"
+" * &lt;p&gt;\n"
+" * This property is only relevant if {@link #getUseRegionBasedMarshalling()} "
+"is\n"
+" * <code>true</code>.\n"
+" */\n"
+"public boolean isInactiveOnStartup();\n"
+"\n"
+"/**\n"
+" * Causes the cache to transfer state for the subtree rooted at\n"
+" * <code>subtreeFqn</code> and to begin accepting replication messages\n"
+" * for that subtree.\n"
+" * \n"
+" * NOTE: This method will cause the creation of a node\n"
+" * in the local tree at <code>subtreeFqn</code> whether or not that\n"
+" * node exists anywhere else in the cluster.  If the node does not exist\n"
+" * elsewhere, the local node will be empty.  The creation of this node will\n"
+" * not be replicated.\n"
+" *\n"
+" * @param subtreeFqn Fqn string indicating the uppermost node in the\n"
+" * portion of the tree that should be activated.\n"
+" *\n"
+" * @throws RegionNotEmptyException if the node <code>subtreeFqn</code>\n"
+" * exists and has either data or children\n"
+" *\n"
+" * @throws IllegalStateException if useRegionBasedMarshalling is "
+"<code>false</code>\n"
+" */\n"
+"public void activateRegion(String subtreeFqn)\n"
+"    throws RegionNotEmptyException, RegionNameConflictException, "
+"CacheException;\n"
+"\n"
+"/**\n"
+" * Causes the cache to stop accepting replication events for the subtree\n"
+" * rooted at <code>subtreeFqn</code> and evict all nodes in that subtree.\n"
+" *\n"
+" * @param subtreeFqn Fqn string indicating the uppermost node in the\n"
+" * portion of the tree that should be activated.\n"
+" * @throws RegionNameConflictException if <code>subtreeFqn</code> indicates\n"
+" * a node that is part of another subtree that is being specially\n"
+" * managed (either by activate/inactiveRegion()\n"
+" * or by registerClassLoader())\n"
+" * @throws CacheException if there is a problem evicting nodes\n"
+" *\n"
+" * @throws IllegalStateException if useRegionBasedMarshalling is "
+"<code>false</code>\n"
+" */\n"
+"public void inactivateRegion(String subtreeFqn) throws "
+"RegionNameConflictException,\n"
+"CacheException;"
 
 #. Tag: para
 #: Treecache_marshaller.xml:79
@@ -367,7 +484,7 @@
 #: Treecache_marshaller.xml:82
 #, no-c-format
 msgid "&lt;attribute name=\"InactiveOnStartup\"&gt;true&lt;/attribute&gt;"
-msgstr ""
+msgstr "&lt;attribute name=\"InactiveOnStartup\"&gt;true&lt;/attribute&gt;"
 
 #. Tag: para
 #: Treecache_marshaller.xml:83
@@ -479,6 +596,33 @@
 "  &lt;/mbean&gt;\n"
 "&lt;/server&gt;"
 msgstr ""
+"&lt;?xml version=\"1.0\" encoding=\"UTF-8\" ?&gt;\n"
+"&lt;server&gt;\n"
+"  &lt;classpath codebase=\"./lib\" archives=\"jboss-cache.jar, jgroups.jar"
+"\" /&gt;\n"
+"\n"
+"  &lt;!--  "
+"====================================================================  --"
+"&gt;\n"
+"  &lt;!--  Defines TreeCache "
+"configuration                                       --&gt;\n"
+"  &lt;!--  "
+"====================================================================  --"
+"&gt;\n"
+"  &lt;mbean code=\"org.jboss.cache.TreeCache\" name=\"com.xyz.cache:"
+"service=SharedCache\"&gt;\n"
+"\n"
+"    .......\n"
+"\n"
+"    &lt;!-- Configure Marshalling --&gt;\n"
+"    &lt;attribute name=\"getUseRegionBasedMarshalling\"&gt;true&lt;/"
+"attribute&gt;\n"
+"    &lt;attribute name=\"InactiveOnStartup\"&gt;true&lt;/attribute&gt;\n"
+"\n"
+"    ........\n"
+"\n"
+"  &lt;/mbean&gt;\n"
+"&lt;/server&gt;"
 
 #. Tag: para
 #: Treecache_marshaller.xml:104
@@ -538,6 +682,48 @@
 "   }\n"
 "}"
 msgstr ""
+"package example;\n"
+"\n"
+"import javax.management.MalformedObjectNameException;\n"
+"import javax.management.ObjectName;\n"
+"import javax.servlet.ServletContextEvent;\n"
+"import javax.servlet.ServletContextListener;\n"
+"\n"
+"import org.jboss.cache.TreeCacheMBean;\n"
+"import org.jboss.mx.util.MBeanProxyExt;\n"
+"\n"
+"public class ActiveInactiveRegionExample implements ServletContextListener\n"
+"{\n"
+"   private TreeCacheMBean cache;\n"
+"\n"
+"   public void contextInitialized(ServletContextEvent arg0) {\n"
+"      try {\n"
+"         findCache();\n"
+"\n"
+"         cache.registerClassLoader(\"/example\", Thread.currentThread()."
+"getContextClassLoader());\n"
+"         cache.activeRegion(\"/example\");\n"
+"      }\n"
+"      catch (Exception e) {\n"
+"         // ... handle exception\n"
+"      }\n"
+"\n"
+"   }\n"
+"\n"
+"   public void contextDestroyed(ServletContextEvent arg0) {\n"
+"      cache.inactivateRegion(\"/example\");\n"
+"      cache.unregisterClassLoader(\"/example\");\n"
+"   }\n"
+"\n"
+"   private void findCache() throws MalformedObjectNameException {\n"
+"      // Find the shared cache service in JMX and create a proxy to it\n"
+"      ObjectName cacheServiceName_ = new ObjectName(\"com.xyz.cache:"
+"service=SharedCache\");\n"
+"      // Create Proxy-Object for this service\n"
+"      cache = (TreeCacheMBean) MBeanProxyExt.create(TreeCacheMBean.class, "
+"cacheServiceName_);\n"
+"   }\n"
+"}"
 
 #. Tag: para
 #: Treecache_marshaller.xml:108
@@ -623,6 +809,45 @@
 "    */\n"
 "   void setRegionManager(RegionManager manager);"
 msgstr ""
+"/**\n"
+"    * Fetch a portion of the state for this cache from secondary storage\n"
+"    * (disk, DB) and return it as a byte buffer.\n"
+"    * This is for activation of a portion of new cache from a remote cache.\n"
+"    * The new cache would then call {@link #storeState(byte[], Fqn)}.\n"
+"    *\n"
+"    * @param subtree Fqn naming the root (i.e. highest level parent) node "
+"of\n"
+"    *                the subtree for which state is requested.\n"
+"    *\n"
+"    * @see org.jboss.cache.TreeCache#activateRegion(String)\n"
+"    */\n"
+"   byte[] loadState(Fqn subtree) throws Exception;\n"
+"\n"
+"   /**\n"
+"    * Store the given portion of the cache tree's state in secondary "
+"storage.\n"
+"    * Overwrite whatever is currently in secondary storage.\n"
+"    *\n"
+"    * @param state   the state to store\n"
+"    * @param subtree Fqn naming the root (i.e. highest level parent) node "
+"of\n"
+"    *                the subtree included in <code>state</code>.\n"
+"    */\n"
+"   void storeState(byte[] state, Fqn subtree) throws Exception;\n"
+"\n"
+"   /**\n"
+"    * Sets the RegionManager this object should use to manage\n"
+"    * marshalling/unmarshalling of different regions using different\n"
+"    * classloaders.\n"
+"    * \n"
+"    * NOTE: This method is only intended to be used\n"
+"    * by the <code>TreeCache</code> instance this cache loader is\n"
+"    * associated with.\n"
+"    * \n"
+"    *\n"
+"    * @param manager the region manager to use, or <code>null</code>.\n"
+"    */\n"
+"   void setRegionManager(RegionManager manager);"
 
 #. Tag: para
 #: Treecache_marshaller.xml:124
@@ -706,3 +931,6 @@
 "&lt;!-- takes values such as 1.2.3, 1.2.4 and 1.3.0 --&gt;\n"
 "&lt;attribute name=\"ReplicationVersion\"&gt;1.2.4&lt;/attribute&gt;"
 msgstr ""
+"&lt;!-- takes values such as 1.2.3, 1.2.4 and 1.3.0 --&gt;\n"
+"&lt;attribute name=\"ReplicationVersion\"&gt;1.2.4&lt;/attribute&gt;"
+




More information about the jboss-cvs-commits mailing list