[jboss-cvs] JBossAS SVN: r78623 - 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
Wed Sep 17 00:46:29 EDT 2008
Author: ldelima at redhat.com
Date: 2008-09-17 00:46:29 -0400 (Wed, 17 Sep 2008)
New Revision: 78623
Modified:
projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Basic_api.po
projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Book_Info.po
projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Cache_loaders.po
Log:
proofread in progress
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Basic_api.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Basic_api.po 2008-09-17 04:44:31 UTC (rev 78622)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Basic_api.po 2008-09-17 04:46:29 UTC (rev 78623)
@@ -9,7 +9,7 @@
"Project-Id-Version: Basic_api\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-05-30 04:03+0000\n"
-"PO-Revision-Date: 2008-09-16 16:46+1000\n"
+"PO-Revision-Date: 2008-09-17 09:54+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"
@@ -122,7 +122,7 @@
"The <literal>TreeCache</literal> has 4 nodes \"a\", \"b\", \"c\" and \"d\". "
"Nodes \"/a/b/c\" has values \"name\" associated with \"Ben\" in its map, and "
"node \"/a/b/c/d\" has values \"uid\" and 322649."
-msgstr "O <literal>TreeCache</literal> possui quatro nós \"a\", \"b\", \"c\" e \"d\". Os nós \"/a/b/c\" possuem os valores \"nome\" associado com \"Ben\" neste mapa e o nó \"/a/b/c/d\" possui valores \"uid\" e 322649."
+msgstr "O <literal>TreeCache</literal> possui quatro nós \"a\", \"b\", \"c\" e \"d\". Os nós \"/a/b/c\" possuem os valores de \"nome\" associados com \"Ben\" neste mapa e o nó \"/a/b/c/d\" possui valores \"uid\" e 322649."
#. Tag: para
#: Basic_api.xml:41
@@ -131,7 +131,7 @@
"Each node can be retrieved by its absolute name (e.g. \"/a/b/c\") or by "
"navigating from parent to children (e.g. navigate from \"a\" to \"b\", then "
"from \"b\" to \"c\")."
-msgstr "Cada nó pode ser reativado pelo próprio nome absoluto ( por exemplo: \"/a/b/c\") ou pela navegação de um parent a um children (por exemplo: navegar a partir do \"a\" para o \"b\", e então do \"b\" para o \"c\")."
+msgstr "Cada nó pode ser reativado pelo próprio nome absoluto (por exemplo: \"/a/b/c\") ou pela navegação de um parent a um children (por exemplo: navegar a partir do \"a\" para o \"b\", e então do \"b\" para o \"c\")."
#. Tag: para
#: Basic_api.xml:44
@@ -160,7 +160,7 @@
"stopped, all contents will be deleted. And when it is restarted, if it joins "
"a cache group, the state will be replicated initially. So potentially you "
"can recreate the contents."
-msgstr "Finalmente, o <literal>TreeCache</literal> é interrompido. Isto levará com que ele deixe o cluster e cada nó no cluster será notificado. Perceba que o <literal>TreeCache</literal> pode ser interrompido e inicializado novamente. Quando ele for interrompido, todos os conteúdos serão deletados. Adicionado a isto, quando ele for reinicializado, caso isto una-se ao grupo do cache, o estado será replicado inicialmente. Desta forma, você pode recriar os conteúdos potencialmente. "
+msgstr "Finalmente, o <literal>TreeCache</literal> é interrompido. Isto levará com que ele deixe o cluster e cada nó no cluster será notificado. Perceba que o <literal>TreeCache</literal> pode ser interrompido e inicializado novamente. Quando ele for interrompido, todos os conteúdos serão deletados. Adicionado a isto, quando ele for reinicializado, caso isto una-se ao grupo do cache, o estado será replicado inicialmente. Desta forma, você pode recriar os conteúdos com um grande potencial. "
#. Tag: para
#: Basic_api.xml:53
@@ -169,7 +169,7 @@
"In the sample, replication was enabled, which caused the 2 put() and the 1 "
"remove() methods to replicated their changes to all nodes in the cluster. "
"The get() method was executed on the local cache only."
-msgstr "Nesta amostra, a replicação foi ativada que causou dois métodos put() e um método remove() a replicar suas alterações a todos os nós num cluster. O método get() foi executado apenas no cache local."
+msgstr "Nesta amostra, a replicação foi ativada e levou os dois métodos put() e um método remove() a replicarem suas alterações em todos os nós num cluster. O método get() foi executado apenas no cache local."
#. Tag: para
#: Basic_api.xml:56
@@ -241,7 +241,7 @@
"node)</literal>. The first removes the given key from the node. The second "
"removes the entire node and all subnodes, and the third removes all elements "
"from the given node's map."
-msgstr "Existem três remove() methods: <literal>remove(Fqn node, Object key)</literal>, <literal>remove(Fqn node)</literal> e <literal>removeData(Fqn node)</literal>. O primeiro remove a tecla gerada a partir de um nó. O segundo remove o nó por completo e todos os sub-nós, e o terceiro remove todos os elementos a partir de um mapa de nó gerado."
+msgstr "Existem três métodos remove(): <literal>remove(Fqn node, Object key)</literal>, <literal>remove(Fqn node)</literal> e <literal>removeData(Fqn node)</literal>. O primeiro remove a tecla gerada a partir de um nó. O segundo remove o nó por completo e todos os sub-nós, e o terceiro remove todos os elementos a partir de um mapa de nó gerado."
#. Tag: para
#: Basic_api.xml:75
@@ -253,7 +253,7 @@
"Node in a future release. </para> </footnote> object, allowing for direct "
"navigation, the latter returns the value for the given key for a node."
msgstr ""
-"Os métodos get são: <literal>get(Fqn node)</literal> e <literal>get(Fqn "
+"Os métodos get são: <literal>get(Fqn node)</literal> e <literal>get(Fqn "
"node, Object key)</literal>. O primeiro retorna a um Node<footnote><para> Isto é basicamente usado internamente e poderemos remover o acesso público ao Nó na versão futura. </para> </footnote> objeto, permitindo a navegação direta. O segundo retorna o valor para a tecla gerada para um nó."
#. Tag: para
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Book_Info.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Book_Info.po 2008-09-17 04:44:31 UTC (rev 78622)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Book_Info.po 2008-09-17 04:46:29 UTC (rev 78623)
@@ -1,39 +1,43 @@
+# translation of Book_Info.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: Book_Info\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-05-30 04:03+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-17 10:17+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
#: Book_Info.xml:10
#, no-c-format
msgid "JBoss Cache Tree Cache 1.4.1"
-msgstr ""
+msgstr "JBoss Cache Tree Cache 1.4.1"
#. Tag: subtitle
#: Book_Info.xml:11
#, no-c-format
msgid "A Structured, Replicated, Transactional Cache"
-msgstr ""
+msgstr "Um Cache Transacional, Replicado e Estruturado"
#. Tag: para
#: Book_Info.xml:15
#, no-c-format
msgid "This book is about the JBoss Cache Tree Cache."
-msgstr ""
+msgstr "Este livro fala a respeito do JBoss Cache Tree Cache."
#. Tag: holder
#: Book_Info.xml:36
#, no-c-format
msgid "&HOLDER;"
-msgstr ""
+msgstr "&HOLDER;"
+
Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Cache_loaders.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Cache_loaders.po 2008-09-17 04:44:31 UTC (rev 78622)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Cache_loaders.po 2008-09-17 04:46:29 UTC (rev 78623)
@@ -1,24 +1,27 @@
+# translation of Cache_loaders.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: Cache_loaders\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-05-30 04:03+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-17 14:46+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
#: Cache_loaders.xml:10
#, no-c-format
msgid "Cache Loaders"
-msgstr ""
+msgstr "Cache Loaders"
#. Tag: para
#: Cache_loaders.xml:11
@@ -27,7 +30,7 @@
"JBoss Cache can use a <emphasis>cache loader</emphasis> to back up the in-"
"memory cache to a backend datastore. If JBoss Cache is configured with a "
"cache loader, then the following features are provided:"
-msgstr ""
+msgstr "O JBoss Cache pode usar o <emphasis>carregador de cache</emphasis> para cobrir o cache em memória para o armazenamento de dados backend. Caso o JBoss Cache seja configurado com o carregador de cache, os seguintes recursos serão fornecidos:"
#. Tag: para
#: Cache_loaders.xml:14
@@ -36,7 +39,7 @@
"Whenever a cache element is accessed, and that element is not in the cache "
"(e.g. due to eviction or due to server restart), then the cache loader "
"transparently loads the element into the cache if found in the backend store."
-msgstr ""
+msgstr "A todo instante em que um elemento de cache é acessado e aquele elemento não estiver no cache (por exemplo: devido a remoção ou devido a reinicialização do servidor), o carregador do cache carregará o elemento no cache caso encontrado no armazenamento backend. "
#. Tag: para
#: Cache_loaders.xml:17
@@ -47,7 +50,7 @@
"used, all modifications created within a transaction are persisted. To this "
"end, the cache loader takes part in the two phase commit protocol run by the "
"transaction manager."
-msgstr ""
+msgstr "A modificação é prosseguida no armazenamento backend através do carregador do cache quando um elemento for modificado, adicionado ou removido. Todas as modificações criadas com a transação são prosseguidas, caso as transações forem usadas. Neste caso, o carregador do cache assume lugar em duas fases do protocolo de confirmação rodado pelo gerenciador de transação."
#. Tag: para
#: Cache_loaders.xml:21
@@ -58,7 +61,7 @@
"The goal is to be able to form hierarchical cache topologies, where one "
"cache can delegate to another, which in turn may delegate to yet another "
"cache."
-msgstr ""
+msgstr "No momento, o API do carregador do cache se parece com o TreeCache API. Adiante, ambos implementarão a <emphasis>mesma</emphasis> interface. O objetivo é estar apto a formar topologias do cache hierárquico, onde um cache poderá delegar outro cache, que em troca delegará outro cache. "
#. Tag: para
#: Cache_loaders.xml:24
@@ -70,7 +73,7 @@
"of data. When performing writes, all cache loaders are written to (except if "
"the ignoreModifications element has been set to true for a specific cache "
"loader. See the configuration section below for details."
-msgstr ""
+msgstr "A partir do JBossCache 1.3.0, você poderá definir diversos carregadores de cache numa corrente. O impacto será que o cache observará a todos os carregadores do cache na ordem em que eles foram configurados até que o mesmo encontre um elemento de dados válido e não-nulo. Todos os carregadores de cache são gravados quando realizando gravações (a não ser que o elemento ignoreModifications tenha sido configurado como verdadeiro para o carregador de cache específico. Consulte abaixo a seção de configuração para maiores detalhes):"
#. Tag: para
#: Cache_loaders.xml:27
@@ -78,7 +81,7 @@
msgid ""
"The cache loader interface is defined in org.jboss.cache.loader.CacheLoader "
"as follows (edited for brevity):"
-msgstr ""
+msgstr "A interface do carregador de cache é definida em org.jboss.cache.loader.CacheLoader, como segue abaixo (editada à redução):"
#. Tag: programlisting
#: Cache_loaders.xml:30
@@ -255,6 +258,176 @@
" void storeEntireState(byte[] state) throws Exception;\n"
"}"
msgstr ""
+"public interface CacheLoader extends Service {\n"
+"\n"
+" /**\n"
+" * Sets the configuration. Will be called before {@link #create()} and "
+"{@link #start()}\n"
+" * @param props A set of properties specific to a given CacheLoader\n"
+" */\n"
+" void setConfig(Properties props);\n"
+"\n"
+" void setCache(TreeCache c);\n"
+"\n"
+"\n"
+" /**\n"
+" * Returns a list of children names, all names are <em>relative</"
+"em>. Returns null if \n"
+" * the parent node is not found.\n"
+" * The returned set must not be modified, e.g. use Collections."
+"unmodifiableSet(s) to \n"
+" * return the result\n"
+" * @param fqn The FQN of the parent\n"
+" * @return Set<String>. A list of children. Returns null if no "
+"children nodes are present,\n"
+" * or the parent is not present\n"
+" */\n"
+" Set getChildrenNames(Fqn fqn) throws Exception;\n"
+"\n"
+"\n"
+" /**\n"
+" * Returns the value for a given key. Returns null if the node doesn't "
+"exist, or the value \n"
+" * is not bound\n"
+" */\n"
+" Object get(Fqn name, Object key) throws Exception;\n"
+"\n"
+"\n"
+" /**\n"
+" * Returns all keys and values from the persistent store, given a fully "
+"qualified name.\n"
+" * \n"
+" * NOTE that the expected return value of this method has changed from "
+"JBossCache 1.2.x \n"
+" * and before! This will affect cache loaders written prior to "
+"JBossCache 1.3.0 and such \n"
+" * implementations should be checked for compliance with the behaviour "
+"expected.\n"
+" * \n"
+" * @param name\n"
+" * @return Map<Object,Object> of keys and values for the given "
+"node. Returns null if the \n"
+" * node is not found. If the node is found but has no attributes, this "
+"method returns \n"
+" * an empty Map.\n"
+" * @throws Exception\n"
+" */\n"
+" Map get(Fqn name) throws Exception;\n"
+"\n"
+"\n"
+"\n"
+" /**\n"
+" * Checks whether the CacheLoader has a node with Fqn\n"
+" * @return True if node exists, false otherwise\n"
+" */\n"
+" boolean exists(Fqn name) throws Exception;\n"
+"\n"
+"\n"
+" /**\n"
+" * Inserts key and value into the attributes hashmap of the given node. "
+"If the node does \n"
+" * not exist, all parent nodes from the root down are created "
+"automatically\n"
+" */\n"
+" void put(Fqn name, Object key, Object value) throws Exception;\n"
+"\n"
+" /**\n"
+" * Inserts all elements of attributes into the attributes hashmap of the "
+"given node, \n"
+" * overwriting existing attributes, but not clearing the existing hashmap "
+"before\n"
+" * insertion (making it a union of existing and new attributes)\n"
+" * If the node does not exist, all parent nodes from the root down are "
+"created \n"
+" * automatically\n"
+" * @param name The fully qualified name of the node\n"
+" * @param attributes A Map of attributes. Can be null\n"
+" */\n"
+" void put(Fqn name, Map attributes) throws Exception;\n"
+"\n"
+" /**\n"
+" * Inserts all modifications to the backend store. Overwrite whatever is "
+"already in\n"
+" * the datastore.\n"
+" * @param modifications A List<Modification> of modifications\n"
+" * @throws Exception\n"
+" */\n"
+" void put(List modifications) throws Exception;\n"
+"\n"
+" /** Removes the given key and value from the attributes of the given "
+"node. \n"
+" * No-op if node doesn't exist */\n"
+" void remove(Fqn name, Object key) throws Exception;\n"
+"\n"
+" /**\n"
+" * Removes the given node. If the node is the root of a subtree, this "
+"will recursively \n"
+" * remove all subnodes, depth-first\n"
+" */\n"
+" void remove(Fqn name) throws Exception;\n"
+"\n"
+" /** Removes all attributes from a given node, but doesn't delete the node "
+"itself */\n"
+" void removeData(Fqn name) throws Exception;\n"
+"\n"
+"\n"
+" /**\n"
+" * Prepare the modifications. For example, for a DB-based CacheLoader:\n"
+" * \n"
+" * Create a local (JDBC) transaction\n"
+" * Associate the local transaction with tx (tx is the key)\n"
+" * Execute the coresponding SQL statements against the DB (statements "
+"derived from \n"
+" *modifications)\n"
+" * \n"
+" * For non-transactional CacheLoader (e.g. file-based), this could be a "
+"null operation\n"
+" * @param tx The transaction, just used as a hashmap key\n"
+" * @param modifications List<Modification>, a list of all "
+"modifications within the given \n"
+" * transaction\n"
+" * @param one_phase Persist immediately and (for example) commit the "
+"local JDBC \n"
+" * transaction as well. When true, we won't get a {@link #commit(Object)} "
+"or \n"
+" * {@link #rollback(Object)} method call later\n"
+" */\n"
+" void prepare(Object tx, List modifications, boolean one_phase) throws "
+"Exception;\n"
+"\n"
+" /**\n"
+" * Commit the transaction. A DB-based CacheLoader would look up the local "
+"JDBC transaction \n"
+" * associated with tx and commit that transaction\n"
+" * Non-transactional CacheLoaders could simply write the data that was "
+"previously saved \n"
+" * transiently under the given tx key, to (for example) a file system "
+"(note this only holds if \n"
+" * the previous prepare() did not define one_phase=true\n"
+" */\n"
+" void commit(Object tx) throws Exception;\n"
+"\n"
+" /**\n"
+" * Roll the transaction back. A DB-based CacheLoader would look up the "
+"local JDBC \n"
+" * transaction associated with tx and roll back that transaction\n"
+" */\n"
+" void rollback(Object tx);\n"
+"\n"
+" /**\n"
+" * Fetch the entire state for this cache from secondary storage (disk, "
+"DB) and return\n"
+" * it as a byte buffer. This is for initialization of a new cache from a "
+"remote cache. \n"
+" * The new cache would then call storeEntireState()\n"
+" * todo: define binary format for exchanging state\n"
+" */\n"
+" byte[] loadEntireState() throws Exception;\n"
+"\n"
+" /** Store the given state in secondary storage. Overwrite whatever is "
+"currently in storage */\n"
+" void storeEntireState(byte[] state) throws Exception;\n"
+"}"
#. Tag: para
#: Cache_loaders.xml:31
@@ -269,6 +442,8 @@
"page=JBossCacheCacheLoaders\">this wiki page</ulink> for more discussion on "
"this."
msgstr ""
+"<emphasis role=\"bold\">NOTE:</emphasis> o contrato definido pela interface do CacheLOader foi modificado a partir do JBoss Cache 1.3.0, especificamente com o método <literal>get(Fqn fqn)</literal>. É recomendável um cuidado especial com as implementações CacheLoader personalizadas para garantia que este novo contrato continua aderindo as mesmas. Consulte o javadoc a respeito deste método para maiores informações ou visite: <ulink url=\"http://wiki.jboss.org/wiki/Wiki.jsp?"
+"page=JBossCacheCacheLoaders\">this wiki page</ulink>, para detalhes mais aprofundados sobre este assunto."
#. Tag: para
#: Cache_loaders.xml:34
@@ -278,6 +453,8 @@
"should also implement the subinterface org.jboss.cache.loader."
"ExtendedCacheLoader:"
msgstr ""
+"As implementações CacheLoader que precisam tranferir o estado parcial de suporte devem também implementar a sub-interface org.jboss.cache.loader."
+"ExtendedCacheLoader:"
#. Tag: programlisting
#: Cache_loaders.xml:37
@@ -343,6 +520,65 @@
"\n"
"}"
msgstr ""
+"public interface ExtendedCacheLoader extends CacheLoader\n"
+"{\n"
+" /**\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. If the "
+"transferred \n"
+" * state has Fqns equal to or children of parameter <code>subtree</"
+"code>, \n"
+" * then no special behavior is required. Otherwise, ensure that\n"
+" * the state is integrated under the given 'subtree'. Typically\n"
+" * in the latter case 'subtree' would be the Fqn of the buddy \n"
+" * backup region for a buddy group; e.g.\n"
+" * \n"
+" * If the the transferred state had Fqns starting with \"/a\" and\n"
+" * 'subtree' was \"/_BUDDY_BACKUP_/192.168.1.2:5555\" then the\n"
+" * state should be stored in the local persistent store under\n"
+" * \"/_BUDDY_BACKUP_/192.168.1.2:5555/a\"\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 'state'. If the Fqns \n"
+" * of the data included in 'state' are not \n"
+" * already children of 'subtree', then their\n"
+" * Fqns should be altered to make them children of \n"
+" * 'subtree' before they are persisted.\n"
+" */ \n"
+" void storeState(byte[] state, Fqn subtree) throws Exception;\n"
+" \n"
+" /**\n"
+" * Sets the {@link 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 by the TreeCache "
+"instance \n"
+" * this cache loader is associated with.\n"
+" * \n"
+" * @param manager the region manager to use, or <code>null</code>.\n"
+" */\n"
+" void setRegionManager(RegionManager manager);\n"
+"\n"
+"}"
#. Tag: para
#: Cache_loaders.xml:38
@@ -352,7 +588,7 @@
"with buddy replication, the cache loader must implement "
"<literal>ExtendedCacheLoader</literal> unless its "
"<literal>FetchPersistentState</literal> property is set to false."
-msgstr ""
+msgstr "<emphasis role=\"bold\">NOTE:</emphasis> Caso o carregador do cache for usado com a replicação buddy, o carregador do cache deverá implementar o <literal>ExtendedCacheLoader</literal>, a não ser que sua propriedade <literal>FetchPersistentState</literal> seja configurada para falso."
#. Tag: para
#: Cache_loaders.xml:41
@@ -366,13 +602,13 @@
"necessary to properly support buddy replication. Special care must be taken "
"with custom ExtendedCacheLoader implementations to ensure this new contract "
"is still adhered to."
-msgstr ""
+msgstr "<emphasis role=\"bold\">NOTE:</emphasis> o contrato definido pela interface <literal>ExtendedCacheLoader</literal> foi alterado a partir do JBoss Cache 1.4.0, especificamente com a solicitação que os dados passados ao método <literal>storeState</literal> estão integrados sob a subtree gerada, mesmo que os dados não originam-se naquela subtree. Este comportamento é necessário para suportar a replicação buddy apropriadamente. Deve-se tomar um cuidado especial com as implementações ExtendedCacheLoader personalizadas para garantia de que elas estão adicionadas a este novo contrato."
#. Tag: title
#: Cache_loaders.xml:45
#, no-c-format
msgid "The CacheLoader Interface"
-msgstr ""
+msgstr "A Interface CacheLoader"
#. Tag: para
#: Cache_loaders.xml:46
@@ -383,7 +619,7 @@
"null, an instance of each configured <literal>cacheloader</literal> is "
"created when the cache is created. Since <literal>CacheLoader</literal> "
"extends <literal>Service</literal>,"
-msgstr ""
+msgstr "A interação entre o JBoss Cache e a implementação CacheLoader é a seguinte; quando a <literal>CacheLoaderConfiguration</literal> (veja abaixo) for não nula, uma instância de cada <literal>cacheloader</literal> configurado é criada a cada cache criado. Uma vez que o <literal>CacheLoader</literal> estenda o <literal>Service</literal>:"
#. Tag: programlisting
#: Cache_loaders.xml:49
@@ -399,6 +635,15 @@
" void destroy();\n"
"}"
msgstr ""
+"public interface Service {\n"
+" void create() throws Exception;\n"
+"\n"
+" void start() throws Exception;\n"
+"\n"
+" void stop();\n"
+"\n"
+" void destroy();\n"
+"}"
#. Tag: para
#: Cache_loaders.xml:50
@@ -409,6 +654,9 @@
"()</literal> and <literal>destroy()</literal> are called when the cache is "
"stopped."
msgstr ""
+"O <literal>CacheLoader.create()</literal> e <literal>CacheLoader.start()</"
+"literal> são chamados quando o cache é inicializado. Por conseqüência o <literal>stop"
+"()</literal> e <literal>destroy()</literal> são chamados quando o cache é interrompido."
#. Tag: para
#: Cache_loaders.xml:53
@@ -418,7 +666,7 @@
"called. The latter can be used to store a reference to the cache, the former "
"is used to configure this instance of the CacheLoader. For example, here a "
"database CacheLoader could establish a connection to the database."
-msgstr ""
+msgstr "A seguir, o literal>setConfig()</literal> e <literal>setCache()</literal> são chamados. O último pode ser utilizado para armazenar uma referência a um cache, já o primeiro é usado para configurar esta instância do CacheLoader. Por exemplo: aqui o CacheLoader do banco de dados pode estabelecer uma conexão ao banco de dados."
#. Tag: para
#: Cache_loaders.xml:56
@@ -430,6 +678,8 @@
"set/remove the value immediately. These methods are described as javadoc "
"comments in the above interface."
msgstr ""
+"A interface CacheLoader possui um conjunto de métodos que são chamados quando não houver transações sendo utilizadas: <literal>get()</literal>, <literal>put()</literal>, "
+"<literal>remove()</literal> e <literal>removeData()</literal>. Eles obtêm/configuram/removem o valor imediatamente. Estes métodos são descritos como comentários javadoc na interface acima."
#. Tag: para
#: Cache_loaders.xml:59
@@ -447,6 +697,9 @@
"the CacheLoader <emphasis>must</emphasis> be able to commit (or rollback) "
"the transaction successfully."
msgstr ""
+"Então existem três métodos que são usados com as transações: <literal>prepare()</literal>, <literal>commit()</literal> e"
+"<literal>rollback()</literal>. O método <literal>prepare()</literal> é chamado quando a transação está prestes a ser confirmada. Isto possui um objeto de transação e uma lista de modificações como um argumento. O objeto da transação pode ser usado como uma tecla num hashmap de transações, onde os valores são as listas de modificações. Cada lista de modificação possue um número de elementos de <literal>Modification</"
+"literal>, que representa as alterações feitas ao cache por uma transação gerada. Quando o <literal>prepare()</literal> retornar com êxito o CacheLoader <emphasis>deverá</emphasis> estar apto a confirmar (ou reverter) a transação com sucesso."
#. Tag: para
#: Cache_loaders.xml:62
@@ -458,6 +711,8 @@
"those methods on a loader, the cache will only enlist the loader with the "
"TransactionManager on the same transaction."
msgstr ""
+"O TreeCache cuida da chamada prepare(), commit() e"
+"rollback() no CacheLoaders no momento exato. Pretendemos realizar ambos recursos TreeCache e CacheLoaders XA, de forma que ao invés de chamar este método num carregador o cache irá inscrever o carregador com o TransactionManager na mesma transação."
#. Tag: para
#: Cache_loaders.xml:65
@@ -466,7 +721,7 @@
"The <literal>commit()</literal> method tells the CacheLoader to commit the "
"transaction, and the <literal>rollback()</literal> method tells the "
"CacheLoader to discard the changes associated with that transaction."
-msgstr ""
+msgstr "O método <literal>commit()</literal> informa ao CacheLoader para confirmar a transação, e o método <literal>rollback()</literal> informa ao CacheLoader para discartar as alterações associadas com aquela transação."
#. Tag: para
#: Cache_loaders.xml:68
@@ -482,6 +737,8 @@
"the contents of the backend store of an existing member. See below for "
"deails."
msgstr ""
+"Os dois últimos métodos são <literal>loadEntireState()</literal> e "
+"<literal>storeEntireState()</literal>. O primeiro método pede ao CacheLoader para obter "
#. Tag: para
#: Cache_loaders.xml:71
@@ -914,8 +1171,7 @@
#. Tag: para
#: Cache_loaders.xml:185
#, no-c-format
-msgid ""
-"The following figure shows 2 JBossCache nodes sharing the same backend store:"
+msgid "The following figure shows 2 JBossCache nodes sharing the same backend store:"
msgstr ""
#. Tag: title
@@ -1218,8 +1474,7 @@
#. Tag: para
#: Cache_loaders.xml:309
#, no-c-format
-msgid ""
-"An example set of a TcpCacheServer running inside of JBoss is shown below:"
+msgid "An example set of a TcpCacheServer running inside of JBoss is shown below:"
msgstr ""
#. Tag: programlisting
@@ -1361,8 +1616,7 @@
#. Tag: para
#: Cache_loaders.xml:349
#, no-c-format
-msgid ""
-"An example set of an RmiCacheServer running inside of JBoss is shown below:"
+msgid "An example set of an RmiCacheServer running inside of JBoss is shown below:"
msgstr ""
#. Tag: programlisting
@@ -1639,8 +1893,7 @@
#. Tag: para
#: Cache_loaders.xml:449
#, no-c-format
-msgid ""
-"<emphasis>cache.jdbc.driver</emphasis> - fully qualified JDBC driver name."
+msgid "<emphasis>cache.jdbc.driver</emphasis> - fully qualified JDBC driver name."
msgstr ""
#. Tag: para
@@ -1652,8 +1905,7 @@
#. Tag: para
#: Cache_loaders.xml:455
#, no-c-format
-msgid ""
-"<emphasis>cache.jdbc.user</emphasis> - user name to connect to the database."
+msgid "<emphasis>cache.jdbc.user</emphasis> - user name to connect to the database."
msgstr ""
#. Tag: para
@@ -1770,3 +2022,4 @@
" </config>\n"
"</attribute>"
msgstr ""
+
More information about the jboss-cvs-commits
mailing list