[jboss-cvs] JBossAS SVN: r78762 - 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
Mon Sep 22 19:23:54 EDT 2008


Author: ldelima at redhat.com
Date: 2008-09-22 19:23:54 -0400 (Mon, 22 Sep 2008)
New Revision: 78762

Modified:
   projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Configuration.po
   projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Eviction_policies.po
Log:
proofread in progress

Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Configuration.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Configuration.po	2008-09-22 23:21:39 UTC (rev 78761)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Configuration.po	2008-09-22 23:23:54 UTC (rev 78762)
@@ -9,7 +9,7 @@
 "Project-Id-Version: Configuration\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-21 04:43+0000\n"
-"PO-Revision-Date: 2008-09-19 17:09+1000\n"
+"PO-Revision-Date: 2008-09-23 09:23+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"
@@ -305,6 +305,254 @@
 "&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=\"jboss.cache:"
+"service=TreeCache\"&gt;\n"
+"    &lt;depends&gt;jboss:service=Naming&lt;/depends&gt;\n"
+"    &lt;depends&gt;jboss:service=TransactionManager&lt;/depends&gt;\n"
+"\n"
+"\n"
+"    &lt;!-- Configure the TransactionManager --&gt;\n"
+"    &lt;attribute name=\"TransactionManagerLookupClass\"&gt;\n"
+"        org.jboss.cache.DummyTransactionManagerLookup\n"
+"    &lt;/attribute&gt;\n"
+"\n"
+"&lt;!-- \n"
+"Node locking scheme : \n"
+"PESSIMISTIC (default)\n"
+"OPTIMISTIC \n"
+"--&gt;\n"
+"&lt;attribute name=\"NodeLockingScheme\"&gt;PESSIMISTIC&lt;/attribute&gt;\n"
+"\n"
+"    &lt;!--\n"
+"            Node locking isolation level : \n"
+" SERIALIZABLE\n"
+"                                 REPEATABLE_READ (default)\n"
+"                                 READ_COMMITTED\n"
+"                                 READ_UNCOMMITTED\n"
+"                                 NONE\n"
+"\n"
+"(ignored if NodeLockingScheme is OPTIMISTIC)\n"
+"    --&gt;\n"
+"    &lt;attribute name=\"IsolationLevel\"&gt;REPEATABLE_READ&lt;/"
+"attribute&gt;\n"
+"\n"
+"    &lt;!-- Lock parent before doing node additions/removes --&gt;\n"
+"    &lt;attribute name=\"LockParentForChildInsertRemove\"&gt;true&lt;/"
+"attribute&gt;\n"
+"\n"
+"    &lt;!--     Valid modes are LOCAL\n"
+"                             REPL_ASYNC\n"
+"                             REPL_SYNC\n"
+"                             INVALIDATION_ASYNC\n"
+"                             INVALIDATION_SYNC\n"
+"    --&gt;\n"
+"    &lt;attribute name=\"CacheMode\"&gt;LOCAL&lt;/attribute&gt;\n"
+"    \n"
+"    &lt;!--  Whether each interceptor should have an mbean\n"
+"        registered to capture and display its statistics.  --&gt;\n"
+"    &lt;attribute name=\"UseInterceptorMbeans\"&gt;true&lt;/attribute&gt;\n"
+"\n"
+"    &lt;!-- Name of cluster. Needs to be the same for all TreeCache nodes in "
+"a\n"
+"    cluster, in order to find each other --&gt;\n"
+"    &lt;attribute name=\"ClusterName\"&gt;JBoss-Cache-Cluster&lt;/"
+"attribute&gt;\n"
+"\n"
+"    &lt;!-- Uncomment next three statements to enable JGroups multiplexer.\n"
+"         This configuration is dependent on the JGroups multiplexer being\n"
+"         registered in an MBean server such as JBossAS. --&gt;\n"
+"    &lt;!--\n"
+"    &lt;depends&gt;jgroups.mux:name=Multiplexer&lt;/depends&gt;\n"
+"    &lt;attribute name=\"MultiplexerService\"&gt;jgroups.mux:"
+"name=Multiplexer&lt;/attribute&gt;\n"
+"    &lt;attribute name=\"MultiplexerStack\"&gt;udp&lt;/attribute&gt;\n"
+"    --&gt;\n"
+"\n"
+"    &lt;!-- JGroups protocol stack properties. ClusterConfig isn't used if "
+"the\n"
+"     multiplexer is enabled and successfully initialized. --&gt;\n"
+"    &lt;attribute name=\"ClusterConfig\"&gt;\n"
+"      &lt;config&gt;\n"
+"        &lt;!-- UDP: if you have a multihomed machine,\n"
+"                set the bind_addr attribute to the appropriate NIC IP "
+"address\n"
+"        --&gt;\n"
+"        &lt;!-- UDP: On Windows machines, because of the media sense "
+"feature\n"
+"                 being broken with multicast (even after disabling media "
+"sense)\n"
+"                 set the loopback attribute to true\n"
+"        --&gt;\n"
+"        &lt;UDP mcast_addr=\"228.1.2.3\" mcast_port=\"45566\" ip_ttl=\"64\" "
+"ip_mcast=\"true\"\n"
+"           mcast_send_buf_size=\"150000\" mcast_recv_buf_size=\"80000\" \n"
+"           ucast_send_buf_size=\"150000\" ucast_recv_buf_size=\"80000\"\n"
+"           loopback=\"false\" /&gt;\n"
+"        &lt;PING timeout=\"2000\" num_initial_members=\"3\" up_thread=\"false"
+"\" \n"
+"            down_thread=\"false\" /&gt;\n"
+"        &lt;MERGE2 min_interval=\"10000\" max_interval=\"20000\" /&gt;\n"
+"        &lt;FD shun=\"true\" up_thread=\"true\" down_thread=\"true\" /&gt;\n"
+"        &lt;VERIFY_SUSPECT timeout=\"1500\" up_thread=\"false\" down_thread="
+"\"false\" /&gt;\n"
+"        &lt;pbcast.NAKACK gc_lag=\"50\" max_xmit_size=\"8192\" \n"
+"           retransmit_timeout=\"600,1200,2400,4800\" up_thread=\"false\"\n"
+"           down_thread=\"false\" /&gt;\n"
+"        &lt;UNICAST timeout=\"600,1200,2400\" window_size=\"100\" "
+"min_threshold=\"10\" \n"
+"            down_thread=\"false\" /&gt;\n"
+"        &lt;pbcast.STABLE desired_avg_gossip=\"20000\" up_thread=\"false\" "
+"down_thread=\"false\" /&gt;\n"
+"        &lt;FRAG frag_size=\"8192\" down_thread=\"false\" up_thread=\"false"
+"\" /&gt;\n"
+"        &lt;pbcast.GMS join_timeout=\"5000\" join_retry_timeout=\"2000\" "
+"shun=\"true\" \n"
+"            print_local_addr=\"true\" /&gt;\n"
+"        &lt;pbcast.STATE_TRANSFER up_thread=\"false\" down_thread=\"false\" /"
+"&gt;\n"
+"      &lt;/config&gt;\n"
+"    &lt;/attribute&gt;\n"
+"\n"
+"    &lt;!--    The max amount of time (in milliseconds) we wait until the\n"
+"            initial state (ie. the contents of the cache) are retrieved "
+"from\n"
+"            existing members in a clustered environment\n"
+"    --&gt;\n"
+"    &lt;attribute name=\"InitialStateRetrievalTimeout\"&gt;5000&lt;/"
+"attribute&gt;\n"
+"\n"
+"    &lt;!--    Number of milliseconds to wait until all responses for a\n"
+"            synchronous call have been received.\n"
+"    --&gt;\n"
+"    &lt;attribute name=\"SyncReplTimeout\"&gt;10000&lt;/attribute&gt;\n"
+"\n"
+"    &lt;!--  Max number of milliseconds to wait for a lock acquisition --"
+"&gt;\n"
+"    &lt;attribute name=\"LockAcquisitionTimeout\"&gt;15000&lt;/"
+"attribute&gt;\n"
+"\n"
+"    &lt;!--  Name of the eviction policy class. --&gt;\n"
+"    &lt;attribute name=\"EvictionPolicyClass\"&gt;org.jboss.cache.eviction."
+"LRUPolicy&lt;/attribute&gt;\n"
+"\n"
+"    &lt;!--  Specific eviction policy configurations. This is LRU --&gt;\n"
+"    &lt;attribute name=\"EvictionPolicyConfig\"&gt;\n"
+"      &lt;config&gt;\n"
+"        &lt;attribute name=\"wakeUpIntervalSeconds\"&gt;5&lt;/attribute&gt;\n"
+"        &lt;!--  Cache wide default --&gt;\n"
+"        &lt;region name=\"/_default_\"&gt;\n"
+"         &lt;attribute name=\"maxNodes\"&gt;5000&lt;/attribute&gt;\n"
+"         &lt;attribute name=\"timeToLiveSeconds\"&gt;1000&lt;/attribute&gt;\n"
+"         &lt;!-- Maximum time an object is kept in cache regardless of idle "
+"time --&gt;\n"
+"         &lt;attribute name=\"maxAgeSeconds\"&gt;120&lt;/attribute&gt;\n"
+"       &lt;/region&gt;\n"
+"\n"
+"       &lt;region name=\"/org/jboss/data\"&gt;\n"
+"         &lt;attribute name=\"maxNodes\"&gt;5000&lt;/attribute&gt;\n"
+"         &lt;attribute name=\"timeToLiveSeconds\"&gt;1000&lt;/attribute&gt;\n"
+"       &lt;/region&gt;\n"
+"\n"
+"       &lt;region name=\"/org/jboss/test/data\"&gt;\n"
+"         &lt;attribute name=\"maxNodes\"&gt;5&lt;/attribute&gt;\n"
+"         &lt;attribute name=\"timeToLiveSeconds\"&gt;4&lt;/attribute&gt;\n"
+"       &lt;/region&gt;\n"
+"      &lt;/config&gt;\n"
+"    &lt;/attribute&gt;\n"
+"\n"
+"        &lt;!-- New 1.3.x cache loader config block --&gt;\n"
+"        &lt;attribute name=\"CacheLoaderConfiguration\"&gt;\n"
+"            &lt;config&gt;\n"
+"                &lt;!-- if passivation is true, only the first cache loader "
+"is used; \n"
+"                    the rest are ignored --&gt;\n"
+"                &lt;passivation&gt;false&lt;/passivation&gt;\n"
+"                &lt;preload&gt;/a/b, /allTempObjects, /some/specific/fqn&lt;/"
+"preload&gt;\n"
+"                &lt;shared&gt;false&lt;/shared&gt;\n"
+"\n"
+"                &lt;!-- we can now have multiple cache loaders, which get "
+"chained --&gt;\n"
+"                &lt;cacheloader&gt;\n"
+"                    &lt;class&gt;org.jboss.cache.loader.FileCacheLoader&lt;/"
+"class&gt;\n"
+"                    &lt;!-- same as the old CacheLoaderConfig attribute --"
+"&gt;\n"
+"                    &lt;properties&gt;\n"
+"                        location=/tmp/myFileStore\n"
+"                    &lt;/properties&gt;\n"
+"                    &lt;!-- whether the cache loader writes are asynchronous "
+"--&gt;\n"
+"                    &lt;async&gt;false&lt;/async&gt;\n"
+"                    &lt;!-- only one cache loader in the chain may set \n"
+"                        fetchPersistentState \n"
+"                        to true.\n"
+"                        An exception is thrown if more than one cache "
+"loader \n"
+"                        sets this to \n"
+"                        true. --&gt;\n"
+"                    &lt;fetchPersistentState&gt;true&lt;/"
+"fetchPersistentState&gt;\n"
+"                    &lt;!-- determines whether this cache loader ignores "
+"writes - \n"
+"                        defaults to \n"
+"                        false. --&gt;\n"
+"                    &lt;ignoreModifications&gt;false&lt;/"
+"ignoreModifications&gt;\n"
+"                    &lt;!-- if set to true, purges the contents of this "
+"cache loader \n"
+"                          when the cache starts up. Defaults to false.  --"
+"&gt;\n"
+"                    &lt;purgeOnStartup&gt;false&lt;/purgeOnStartup&gt;\n"
+"                &lt;/cacheloader&gt;\n"
+"\n"
+"                &lt;cacheloader&gt;\n"
+"                    &lt;class&gt;org.jboss.cache.loader.JDBCCacheLoader&lt;/"
+"class&gt;\n"
+"                    &lt;!-- same as the old CacheLoaderConfig attribute --"
+"&gt;\n"
+"                    &lt;properties&gt;\n"
+"                        cache.jdbc.driver=com.mysql.jdbc.Driver\n"
+"                        cache.jdbc.url=jdbc:mysql://localhost:3306/jbossdb\n"
+"                        cache.jdbc.user=root\n"
+"                        cache.jdbc.password=\n"
+"                    &lt;/properties&gt;\n"
+"                    &lt;!-- whether the cache loader writes are asynchronous "
+"--&gt;\n"
+"                    &lt;async&gt;true&lt;/async&gt;\n"
+"                    &lt;!-- only one cache loader in the chain may set "
+"fetchPersistentState\n"
+"                        to true. An exception is thrown if more than one "
+"cache loader \n"
+"                        sets this to true. --&gt;\n"
+"                    &lt;fetchPersistentState&gt;false&lt;/"
+"fetchPersistentState&gt;\n"
+"                    &lt;!-- determines whether this cache loader ignores "
+"writes - defaults \n"
+"                        to false. --&gt;\n"
+"                    &lt;ignoreModifications&gt;true&lt;/"
+"ignoreModifications&gt;\n"
+"                    &lt;!-- if set to true, purges the contents of this "
+"cache loader when the \n"
+"                        cache starts up. Defaults to false.  --&gt;\n"
+"                    &lt;purgeOnStartup&gt;false&lt;/purgeOnStartup&gt;\n"
+"                &lt;/cacheloader&gt;\n"
+"\n"
+"            &lt;/config&gt;\n"
+"        &lt;/attribute&gt;\n"
+"\n"
+"\n"
+"  &lt;/mbean&gt;\n"
+"&lt;/server&gt;"
 
 #. Tag: para
 #: Configuration.xml:15
@@ -410,7 +658,7 @@
 #: Configuration.xml:92
 #, no-c-format
 msgid "ClusterName"
-msgstr ""
+msgstr "ClusterName"
 
 #. Tag: para
 #: Configuration.xml:97
@@ -439,7 +687,7 @@
 #: Configuration.xml:116
 #, no-c-format
 msgid "EvictionPolicyConfig"
-msgstr ""
+msgstr "EvictionPolicyConfig"
 
 #. Tag: para
 #: Configuration.xml:121
@@ -468,7 +716,7 @@
 #: Configuration.xml:140
 #, no-c-format
 msgid "InactiveOnStartup"
-msgstr ""
+msgstr "InactiveOnStartup"
 
 #. Tag: para
 #: Configuration.xml:145
@@ -486,7 +734,7 @@
 #: Configuration.xml:152
 #, no-c-format
 msgid "InitialStateRetrievalTimeout"
-msgstr ""
+msgstr "InitialStateRetrievalTimeout"
 
 #. Tag: para
 #: Configuration.xml:157
@@ -502,7 +750,7 @@
 #: Configuration.xml:164
 #, no-c-format
 msgid "IsolationLevel"
-msgstr ""
+msgstr "IsolationLevel"
 
 #. Tag: para
 #: Configuration.xml:169
@@ -518,7 +766,7 @@
 #: Configuration.xml:176
 #, no-c-format
 msgid "LockAcquisitionTimeout"
-msgstr ""
+msgstr "LockAcquisitionTimeout"
 
 #. Tag: para
 #: Configuration.xml:181
@@ -532,7 +780,7 @@
 #: Configuration.xml:188
 #, no-c-format
 msgid "MultiplexerService"
-msgstr ""
+msgstr "MultiplexerService"
 
 #. Tag: para
 #: Configuration.xml:193
@@ -551,7 +799,7 @@
 #: Configuration.xml:200
 #, no-c-format
 msgid "MultiplexerStack"
-msgstr ""
+msgstr "MultiplexerStack"
 
 #. Tag: para
 #: Configuration.xml:205
@@ -569,7 +817,7 @@
 #: Configuration.xml:212
 #, no-c-format
 msgid "NodeLockingScheme"
-msgstr ""
+msgstr "NodeLockingScheme"
 
 #. Tag: para
 #: Configuration.xml:217
@@ -583,7 +831,7 @@
 #: Configuration.xml:224
 #, no-c-format
 msgid "ReplicationVersion"
-msgstr ""
+msgstr "ReplicationVersion"
 
 #. Tag: para
 #: Configuration.xml:229
@@ -604,7 +852,7 @@
 #: Configuration.xml:236
 #, no-c-format
 msgid "ReplQueueInterval"
-msgstr ""
+msgstr "ReplQueueInterval"
 
 #. Tag: para
 #: Configuration.xml:241
@@ -618,20 +866,19 @@
 #: Configuration.xml:248
 #, no-c-format
 msgid "ReplQueueMaxElements"
-msgstr ""
+msgstr "ReplQueueMaxElements"
 
 #. Tag: para
 #: Configuration.xml:253
 #, no-c-format
-msgid ""
-"Max number of elements in the replication queue until replication kicks in."
+msgid "Max number of elements in the replication queue until replication kicks in."
 msgstr ""
 
 #. Tag: para
 #: Configuration.xml:260
 #, no-c-format
 msgid "SyncCommitPhase"
-msgstr ""
+msgstr "SyncCommitPhase"
 
 #. Tag: para
 #: Configuration.xml:265
@@ -649,7 +896,7 @@
 #: Configuration.xml:272
 #, no-c-format
 msgid "SyncReplTimeout"
-msgstr ""
+msgstr "SyncReplTimeout"
 
 #. Tag: para
 #: Configuration.xml:277
@@ -663,7 +910,7 @@
 #: Configuration.xml:284
 #, no-c-format
 msgid "SyncRollbackPhase"
-msgstr ""
+msgstr "SyncRollbackPhase"
 
 #. Tag: para
 #: Configuration.xml:289
@@ -681,7 +928,7 @@
 #: Configuration.xml:296
 #, no-c-format
 msgid "TransactionManagerLookupClass"
-msgstr ""
+msgstr "TransactionManagerLookupClass"
 
 #. Tag: para
 #: Configuration.xml:301
@@ -696,7 +943,7 @@
 #: Configuration.xml:308
 #, no-c-format
 msgid "UseInterceptorMbeans"
-msgstr ""
+msgstr "UseInterceptorMbeans"
 
 #. Tag: para
 #: Configuration.xml:313
@@ -712,7 +959,7 @@
 #: Configuration.xml:320
 #, no-c-format
 msgid "UseRegionBasedMarshalling"
-msgstr ""
+msgstr "UseRegionBasedMarshalling"
 
 #. Tag: para
 #: Configuration.xml:325
@@ -727,7 +974,7 @@
 #: Configuration.xml:332
 #, no-c-format
 msgid "UseReplQueue"
-msgstr ""
+msgstr "UseReplQueue"
 
 #. Tag: para
 #: Configuration.xml:337
@@ -741,7 +988,7 @@
 #: Configuration.xml:344
 #, no-c-format
 msgid "LockParentForChildInsertRemove"
-msgstr ""
+msgstr "LockParentForChildInsertRemove"
 
 #. Tag: para
 #: Configuration.xml:349
@@ -759,7 +1006,7 @@
 #: Configuration.xml:360
 #, no-c-format
 msgid "Overriding options"
-msgstr ""
+msgstr "Overriding options"
 
 #. Tag: para
 #: Configuration.xml:361
@@ -774,3 +1021,4 @@
 "literal>. See the javadocs on the <literal>Option</literal> class for "
 "details on these options."
 msgstr ""
+

Modified: projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Eviction_policies.po
===================================================================
--- projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Eviction_policies.po	2008-09-22 23:21:39 UTC (rev 78761)
+++ projects/docs/enterprise/4.3/Cache/Cache_Tree_Cache_Guide/pt-BR/Eviction_policies.po	2008-09-22 23:23:54 UTC (rev 78762)
@@ -1,18 +1,21 @@
+# translation of Eviction_policies.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: Eviction_policies\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-23 09:23+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
 #: Eviction_policies.xml:5
@@ -139,6 +142,57 @@
 "\n"
 "}"
 msgstr ""
+"public interface EvictionPolicy\n"
+"{\n"
+"   /**\n"
+"    * Evict a node form the underlying cache.\n"
+"    *\n"
+"    * @param fqn DataNode corresponds to this fqn.\n"
+"    * @throws Exception\n"
+"    */\n"
+"   void evict(Fqn fqn) throws Exception;\n"
+"\n"
+"   /**\n"
+"    * Return children names as Objects\n"
+"    *\n"
+"    * @param fqn\n"
+"    * @return Child names under given fqn\n"
+"    */\n"
+"   Set getChildrenNames(Fqn fqn);\n"
+"\n"
+"   /**\n"
+"    * Is this a leaf node?\n"
+"    *\n"
+"    * @param fqn\n"
+"    * @return true/false if leaf node.\n"
+"    */\n"
+"   boolean hasChild(Fqn fqn);\n"
+"\n"
+"   Object getCacheData(Fqn fqn, Object key);\n"
+"\n"
+"   /**\n"
+"    * Method called to configure this implementation.\n"
+"    */\n"
+"   void configure(TreeCache cache);\n"
+"\n"
+"   /**\n"
+"    * Get the associated EvictionAlgorithm used by the EvictionPolicy.\n"
+"    * &lt;p/&gt;\n"
+"    * This relationship should be 1-1.\n"
+"    *\n"
+"    * @return An EvictionAlgorithm implementation.\n"
+"    */\n"
+"   EvictionAlgorithm getEvictionAlgorithm();\n"
+"\n"
+"   /**\n"
+"    * The EvictionConfiguration implementation class used by this "
+"EvictionPolicy.\n"
+"    *\n"
+"    * @return EvictionConfiguration implementation class.\n"
+"    */\n"
+"   Class getEvictionConfigurationClass();\n"
+"\n"
+"}"
 
 #. Tag: programlisting
 #: Eviction_policies.xml:29
@@ -174,6 +228,35 @@
 "\n"
 "}"
 msgstr ""
+"public interface EvictionAlgorithm\n"
+"{\n"
+"   /**\n"
+"    * Entry point for evictin algorithm. This is an api called by the "
+"EvictionTimerTask\n"
+"    * to process the node events in waiting and actual pruning, if "
+"necessary.\n"
+"    *\n"
+"    * @param region Region that this algorithm will operate on.\n"
+"    */\n"
+"   void process(Region region) throws EvictionException;\n"
+"\n"
+"   /**\n"
+"    * Reset the whole eviction queue. Queue may needs to be reset due to "
+"corrupted state, \n"
+"    * for example.\n"
+"    *\n"
+"    * @param region Region that this algorithm will operate on.\n"
+"    */\n"
+"   void resetEvictionQueue(Region region);\n"
+"\n"
+"   /**\n"
+"    * Get the EvictionQueue implementation used by this algorithm.\n"
+"    *\n"
+"    * @return the EvictionQueue implementation.\n"
+"    */\n"
+"   EvictionQueue getEvictionQueue();\n"
+"\n"
+"}"
 
 #. Tag: programlisting
 #: Eviction_policies.xml:30
@@ -243,6 +326,69 @@
 "\n"
 "}"
 msgstr ""
+"public interface EvictionQueue\n"
+"{\n"
+"   /**\n"
+"    * Get the first entry in the queue.\n"
+"    * &lt;p/&gt;\n"
+"    * If there are no entries in queue, this method will return null.\n"
+"    * &lt;p/&gt;\n"
+"    * The first node returned is expected to be the first node to evict.\n"
+"    *\n"
+"    * @return first NodeEntry in queue.\n"
+"    */\n"
+"   public NodeEntry getFirstNodeEntry();\n"
+"\n"
+"   /**\n"
+"    * Retrieve a node entry by Fqn.\n"
+"    * &lt;p/&gt;\n"
+"    * This will return null if the entry is not found.\n"
+"    *\n"
+"    * @param fqn Fqn of the node entry to retrieve.\n"
+"    * @return Node Entry object associated with given Fqn param.\n"
+"    */\n"
+"   public NodeEntry getNodeEntry(Fqn fqn);\n"
+"\n"
+"   public NodeEntry getNodeEntry(String fqn);\n"
+"\n"
+"   /**\n"
+"    * Check if queue contains the given NodeEntry.\n"
+"    *\n"
+"    * @param entry NodeEntry to check for existence in queue.\n"
+"    * @return true/false if NodeEntry exists in queue.\n"
+"    */\n"
+"   public boolean containsNodeEntry(NodeEntry entry);\n"
+"\n"
+"   /**\n"
+"    * Remove a NodeEntry from queue.\n"
+"    * &lt;p/&gt;\n"
+"    * If the NodeEntry does not exist in the queue, this method will return "
+"normally.\n"
+"    *\n"
+"    * @param entry The NodeEntry to remove from queue.\n"
+"    */\n"
+"   public void removeNodeEntry(NodeEntry entry);\n"
+"\n"
+"   /**\n"
+"    * Add a NodeEntry to the queue.\n"
+"    *\n"
+"    * @param entry The NodeEntry to add to queue.\n"
+"    */\n"
+"   public void addNodeEntry(NodeEntry entry);\n"
+"\n"
+"   /**\n"
+"    * Get the size of the queue.\n"
+"    *\n"
+"    * @return The number of items in the queue.\n"
+"    */\n"
+"   public int size();\n"
+"\n"
+"   /**\n"
+"    * Clear the queue.\n"
+"    */\n"
+"   public void clear();\n"
+"\n"
+"}"
 
 #. Tag: programlisting
 #: Eviction_policies.xml:31
@@ -996,8 +1142,7 @@
 #. Tag: para
 #: Eviction_policies.xml:97
 #, no-c-format
-msgid ""
-"Here is an example of configuring a different eviction provider per region"
+msgid "Here is an example of configuring a different eviction provider per region"
 msgstr ""
 
 #. Tag: programlisting
@@ -1281,3 +1426,4 @@
 "cache is pruned down to the 10 most frequently used nodes when the eviction "
 "timer makes a pass through the eviction algorithm."
 msgstr ""
+




More information about the jboss-cvs-commits mailing list