| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <link rel="canonical" href="https://ignite.apache.org/releases/2.1.0/javadoc/org/apache/ignite/configuration/MemoryConfiguration.html" /> |
| <META NAME="ROBOTS" CONTENT="NOINDEX"> |
| |
| <!-- Generated by javadoc (version 1.7.0_80) on Thu Jul 20 19:37:42 UTC 2017 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>MemoryConfiguration (Ignite 2.1.0)</title> |
| <meta name="date" content="2017-07-20"> |
| <link rel="stylesheet" type="text/css" href="../../../../javadoc.css" title="Style"> |
| |
| <script> |
| (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
| |
| ga('create', 'UA-61232409-1', 'auto'); |
| ga('send', 'pageview'); |
| |
| </script></head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="MemoryConfiguration (Ignite 2.1.0)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/MemoryConfiguration.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><em>Ignite - In-Memory Data Fabric</em></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/ignite/configuration/IgniteReflectionFactory.html" title="class in org.apache.ignite.configuration"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/ignite/configuration/MemoryConfiguration.html" target="_top">Frames</a></li> |
| <li><a href="MemoryConfiguration.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.ignite.configuration</div> |
| <h2 title="Class MemoryConfiguration" class="title">Class MemoryConfiguration</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.ignite.configuration.MemoryConfiguration</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="strong">MemoryConfiguration</span> |
| extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> |
| implements <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> |
| <div class="block">A page memory configuration for an Apache Ignite node. The page memory is a manageable off-heap based memory |
| architecture that divides all expandable memory regions into pages of fixed size |
| (see <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#getPageSize()"><code>getPageSize()</code></a>. An individual page can store one or many cache key-value entries |
| that allows reusing the memory in the most efficient way and avoid memory fragmentation issues. |
| <p> |
| By default, the page memory allocates a single expandable memory region using settings of |
| <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#createDefaultPolicyConfig()"><code>createDefaultPolicyConfig()</code></a>. All the caches that will be configured in an application |
| will be mapped to this memory region by default, thus, all the cache data will reside in that memory region. |
| <p> |
| If initial size of the default memory region doesn't satisfy requirements or it's required to have multiple memory |
| regions with different properties then <a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration"><code>MemoryPolicyConfiguration</code></a> can be used for both scenarios. |
| For instance, using memory policies you can define memory regions of different maximum size, eviction policies, |
| swapping options, etc. Once you define a new memory region you can bind particular Ignite caches to it. |
| <p> |
| To learn more about memory policies refer to <a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration"><code>MemoryPolicyConfiguration</code></a> documentation. |
| <p>Sample configuration below shows how to make 5 GB memory regions the default one for Apache Ignite:</p> |
| <pre> |
| <code><property name="memoryConfiguration"> |
| <bean class="org.apache.ignite.configuration.MemoryConfiguration"> |
| <property name="systemCacheInitialSize" value="#{100 * 1024 * 1024}"/> |
| <property name="defaultMemoryPolicyName" value="default_mem_plc"/> |
| |
| <property name="memoryPolicies"> |
| <list> |
| <bean class="org.apache.ignite.configuration.MemoryPolicyConfiguration"> |
| <property name="name" value="default_mem_plc"/> |
| <property name="initialSize" value="#{5 * 1024 * 1024 * 1024}"/> |
| </bean> |
| </list> |
| </property> |
| </bean> |
| </property> |
| </code> |
| </pre></div> |
| <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#org.apache.ignite.configuration.MemoryConfiguration">Serialized Form</a></dd></dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#DFLT_MEM_PLC_DEFAULT_NAME">DFLT_MEM_PLC_DEFAULT_NAME</a></strong></code> |
| <div class="block">This name is assigned to default MemoryPolicy if no user-defined default MemPlc is specified</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static long</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#DFLT_MEMORY_POLICY_INITIAL_SIZE">DFLT_MEMORY_POLICY_INITIAL_SIZE</a></strong></code> |
| <div class="block">Default memory policy start size (256 MB).</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static long</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#DFLT_MEMORY_POLICY_MAX_SIZE">DFLT_MEMORY_POLICY_MAX_SIZE</a></strong></code> |
| <div class="block">Default memory policy's size is 80% of physical memory available on current machine.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#DFLT_PAGE_SIZE">DFLT_PAGE_SIZE</a></strong></code> |
| <div class="block">Default memory page size.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#MemoryConfiguration()">MemoryConfiguration</a></strong>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration">MemoryPolicyConfiguration</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#createDefaultPolicyConfig()">createDefaultPolicyConfig</a></strong>()</code> |
| <div class="block">Creates a configuration for the default memory policy that will instantiate the default memory region.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#getConcurrencyLevel()">getConcurrencyLevel</a></strong>()</code> |
| <div class="block">Returns the number of concurrent segments in Ignite internal page mapping tables.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#getDefaultMemoryPolicyName()">getDefaultMemoryPolicyName</a></strong>()</code> |
| <div class="block">Gets a name of default memory policy.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#getDefaultMemoryPolicySize()">getDefaultMemoryPolicySize</a></strong>()</code> |
| <div class="block">Gets a size for default memory policy overridden by user.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration">MemoryPolicyConfiguration</a>[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#getMemoryPolicies()">getMemoryPolicies</a></strong>()</code> |
| <div class="block">Gets an array of all memory policies configured.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#getPageSize()">getPageSize</a></strong>()</code> |
| <div class="block">The pages memory consists of one or more expandable memory regions defined by <a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration"><code>MemoryPolicyConfiguration</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#getSystemCacheInitialSize()">getSystemCacheInitialSize</a></strong>()</code> |
| <div class="block">Initial size of a memory region reserved for system cache.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>long</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#getSystemCacheMaxSize()">getSystemCacheMaxSize</a></strong>()</code> |
| <div class="block">Maximum memory region size reserved for system cache.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#setConcurrencyLevel(int)">setConcurrencyLevel</a></strong>(int concLvl)</code> |
| <div class="block">Sets the number of concurrent segments in Ignite internal page mapping tables.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#setDefaultMemoryPolicyName(java.lang.String)">setDefaultMemoryPolicyName</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> dfltMemPlcName)</code> |
| <div class="block">Sets the name for the default memory policy that will initialize the default memory region.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#setDefaultMemoryPolicySize(long)">setDefaultMemoryPolicySize</a></strong>(long dfltMemPlcSize)</code> |
| <div class="block">Overrides size of default memory policy which is created automatically.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#setMemoryPolicies(org.apache.ignite.configuration.MemoryPolicyConfiguration...)">setMemoryPolicies</a></strong>(<a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration">MemoryPolicyConfiguration</a>... memPlcs)</code> |
| <div class="block">Sets memory policies configurations.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#setPageSize(int)">setPageSize</a></strong>(int pageSize)</code> |
| <div class="block">Changes the page size.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#setSystemCacheInitialSize(long)">setSystemCacheInitialSize</a></strong>(long sysCacheInitSize)</code> |
| <div class="block">Sets initial size of a memory region reserved for system cache.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#setSystemCacheMaxSize(long)">setSystemCacheMaxSize</a></strong>(long sysCacheMaxSize)</code> |
| <div class="block">Sets maximum memory region size reserved for system cache.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="DFLT_MEMORY_POLICY_INITIAL_SIZE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DFLT_MEMORY_POLICY_INITIAL_SIZE</h4> |
| <pre>public static final long DFLT_MEMORY_POLICY_INITIAL_SIZE</pre> |
| <div class="block">Default memory policy start size (256 MB).</div> |
| <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.apache.ignite.configuration.MemoryConfiguration.DFLT_MEMORY_POLICY_INITIAL_SIZE">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| <a name="DFLT_MEMORY_POLICY_MAX_SIZE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DFLT_MEMORY_POLICY_MAX_SIZE</h4> |
| <pre>public static final long DFLT_MEMORY_POLICY_MAX_SIZE</pre> |
| <div class="block">Default memory policy's size is 80% of physical memory available on current machine.</div> |
| </li> |
| </ul> |
| <a name="DFLT_PAGE_SIZE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DFLT_PAGE_SIZE</h4> |
| <pre>public static final int DFLT_PAGE_SIZE</pre> |
| <div class="block">Default memory page size.</div> |
| <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.apache.ignite.configuration.MemoryConfiguration.DFLT_PAGE_SIZE">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| <a name="DFLT_MEM_PLC_DEFAULT_NAME"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>DFLT_MEM_PLC_DEFAULT_NAME</h4> |
| <pre>public static final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> DFLT_MEM_PLC_DEFAULT_NAME</pre> |
| <div class="block">This name is assigned to default MemoryPolicy if no user-defined default MemPlc is specified</div> |
| <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.apache.ignite.configuration.MemoryConfiguration.DFLT_MEM_PLC_DEFAULT_NAME">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="MemoryConfiguration()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>MemoryConfiguration</h4> |
| <pre>public MemoryConfiguration()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getSystemCacheInitialSize()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSystemCacheInitialSize</h4> |
| <pre>public long getSystemCacheInitialSize()</pre> |
| <div class="block">Initial size of a memory region reserved for system cache.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Size in bytes.</dd></dl> |
| </li> |
| </ul> |
| <a name="setSystemCacheInitialSize(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSystemCacheInitialSize</h4> |
| <pre>public <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a> setSystemCacheInitialSize(long sysCacheInitSize)</pre> |
| <div class="block">Sets initial size of a memory region reserved for system cache. |
| |
| Default value is <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#DFLT_SYS_CACHE_INIT_SIZE"><code>DFLT_SYS_CACHE_INIT_SIZE</code></a></div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>sysCacheInitSize</code> - Size in bytes.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>this</code> for chaining.</dd></dl> |
| </li> |
| </ul> |
| <a name="getSystemCacheMaxSize()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSystemCacheMaxSize</h4> |
| <pre>public long getSystemCacheMaxSize()</pre> |
| <div class="block">Maximum memory region size reserved for system cache.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Size in bytes.</dd></dl> |
| </li> |
| </ul> |
| <a name="setSystemCacheMaxSize(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSystemCacheMaxSize</h4> |
| <pre>public <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a> setSystemCacheMaxSize(long sysCacheMaxSize)</pre> |
| <div class="block">Sets maximum memory region size reserved for system cache. The total size should not be less than 10 MB |
| due to internal data structures overhead.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>sysCacheMaxSize</code> - Maximum size in bytes for system cache memory region.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>this</code> for chaining.</dd></dl> |
| </li> |
| </ul> |
| <a name="getPageSize()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getPageSize</h4> |
| <pre>public int getPageSize()</pre> |
| <div class="block">The pages memory consists of one or more expandable memory regions defined by <a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration"><code>MemoryPolicyConfiguration</code></a>. |
| Every memory region is split on pages of fixed size that store actual cache entries.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Page size in bytes.</dd></dl> |
| </li> |
| </ul> |
| <a name="setPageSize(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setPageSize</h4> |
| <pre>public <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a> setPageSize(int pageSize)</pre> |
| <div class="block">Changes the page size. |
| |
| Default value is <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#DFLT_PAGE_SIZE"><code>DFLT_PAGE_SIZE</code></a></div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>pageSize</code> - Page size in bytes.</dd></dl> |
| </li> |
| </ul> |
| <a name="getMemoryPolicies()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMemoryPolicies</h4> |
| <pre>public <a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration">MemoryPolicyConfiguration</a>[] getMemoryPolicies()</pre> |
| <div class="block">Gets an array of all memory policies configured. Apache Ignite will instantiate a dedicated memory region per |
| policy. An Apache Ignite cache can be mapped to a specific policy with |
| <a href="../../../../org/apache/ignite/configuration/CacheConfiguration.html#setMemoryPolicyName(java.lang.String)"><code>CacheConfiguration.setMemoryPolicyName(String)</code></a> method.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Array of configured memory policies.</dd></dl> |
| </li> |
| </ul> |
| <a name="setMemoryPolicies(org.apache.ignite.configuration.MemoryPolicyConfiguration...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setMemoryPolicies</h4> |
| <pre>public <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a> setMemoryPolicies(<a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration">MemoryPolicyConfiguration</a>... memPlcs)</pre> |
| <div class="block">Sets memory policies configurations.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>memPlcs</code> - Memory policies configurations.</dd></dl> |
| </li> |
| </ul> |
| <a name="createDefaultPolicyConfig()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createDefaultPolicyConfig</h4> |
| <pre>public <a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration">MemoryPolicyConfiguration</a> createDefaultPolicyConfig()</pre> |
| <div class="block">Creates a configuration for the default memory policy that will instantiate the default memory region. |
| To override settings of the default memory policy in order to create the default memory region with different |
| parameters, create own memory policy first, pass it to |
| <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#setMemoryPolicies(org.apache.ignite.configuration.MemoryPolicyConfiguration...)"><code>setMemoryPolicies(MemoryPolicyConfiguration...)</code></a> method and change the name of the |
| default memory policy with <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#setDefaultMemoryPolicyName(java.lang.String)"><code>setDefaultMemoryPolicyName(String)</code></a>.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>default Memory policy configuration.</dd></dl> |
| </li> |
| </ul> |
| <a name="getConcurrencyLevel()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getConcurrencyLevel</h4> |
| <pre>public int getConcurrencyLevel()</pre> |
| <div class="block">Returns the number of concurrent segments in Ignite internal page mapping tables. By default equals |
| to the number of available CPUs multiplied by 4.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Mapping table concurrency level.</dd></dl> |
| </li> |
| </ul> |
| <a name="setConcurrencyLevel(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setConcurrencyLevel</h4> |
| <pre>public <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a> setConcurrencyLevel(int concLvl)</pre> |
| <div class="block">Sets the number of concurrent segments in Ignite internal page mapping tables.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>concLvl</code> - Mapping table concurrency level.</dd></dl> |
| </li> |
| </ul> |
| <a name="getDefaultMemoryPolicySize()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDefaultMemoryPolicySize</h4> |
| <pre>public long getDefaultMemoryPolicySize()</pre> |
| <div class="block">Gets a size for default memory policy overridden by user.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>Default memory policy size overridden by user or <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#DFLT_MEMORY_POLICY_MAX_SIZE"><code>DFLT_MEMORY_POLICY_MAX_SIZE</code></a> if nothing was specified.</dd></dl> |
| </li> |
| </ul> |
| <a name="setDefaultMemoryPolicySize(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setDefaultMemoryPolicySize</h4> |
| <pre>public <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a> setDefaultMemoryPolicySize(long dfltMemPlcSize)</pre> |
| <div class="block">Overrides size of default memory policy which is created automatically. |
| |
| If user doesn't specify any memory policy configuration, a default one with default size |
| (80% of available RAM) is created by Ignite. |
| |
| This property allows user to specify desired size of default memory policy |
| without having to use more verbose syntax of MemoryPolicyConfiguration elements.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>dfltMemPlcSize</code> - Size of default memory policy overridden by user.</dd></dl> |
| </li> |
| </ul> |
| <a name="getDefaultMemoryPolicyName()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDefaultMemoryPolicyName</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getDefaultMemoryPolicyName()</pre> |
| <div class="block">Gets a name of default memory policy.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>A name of a custom memory policy configured with <code>MemoryConfiguration</code> or <code>null</code> of the |
| default policy is used.</dd></dl> |
| </li> |
| </ul> |
| <a name="setDefaultMemoryPolicyName(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setDefaultMemoryPolicyName</h4> |
| <pre>public <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html" title="class in org.apache.ignite.configuration">MemoryConfiguration</a> setDefaultMemoryPolicyName(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> dfltMemPlcName)</pre> |
| <div class="block">Sets the name for the default memory policy that will initialize the default memory region. |
| To set own default memory policy, create the policy first, pass it to |
| <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#setMemoryPolicies(org.apache.ignite.configuration.MemoryPolicyConfiguration...)"><code>setMemoryPolicies(MemoryPolicyConfiguration...)</code></a> method and change the name of the |
| default memory policy with <code>MemoryConfiguration#setDefaultMemoryPolicyName(String)</code>. |
| |
| If nothing is specified by user, it is set to <a href="../../../../org/apache/ignite/configuration/MemoryConfiguration.html#DFLT_MEM_PLC_DEFAULT_NAME"><code>DFLT_MEM_PLC_DEFAULT_NAME</code></a> value.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>dfltMemPlcName</code> - Name of a memory policy to be used as default one.</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/MemoryConfiguration.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage"><em>Ignite - In-Memory Data Fabric</em></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/ignite/configuration/IgniteReflectionFactory.html" title="class in org.apache.ignite.configuration"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/ignite/configuration/MemoryPolicyConfiguration.html" title="class in org.apache.ignite.configuration"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/ignite/configuration/MemoryConfiguration.html" target="_top">Frames</a></li> |
| <li><a href="MemoryConfiguration.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small><table width="100%" border="0" cellspacing=0 cellpadding=0 style="padding: 5px"> <tr> <td> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <a target=_blank href="https://ignite.apache.org"><nobr>2017 Copyright © Apache Software Foundation</nobr></a> </td> </tr> </tbody> </table> </td> <td width="100%" align="right" valign="center"> <a href="https://twitter.com/ApacheIgnite" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @ApacheIgnite</a> </td> </tr> <tr> <td colspan="2" valign="top" align="left"> <table style="padding-left: 0; margin: 0"> <tbody style="padding: 0; margin: 0"> <tr style="padding: 0; margin: 0"> <td> <b>Ignite Fabric</b> </td> <td>: ver. <strong>2.1.0</strong> </td> </tr> <tr style="padding: 0; margin: 0"> <td> <b>Release Date</b> </td> <td>: July 20 2017 </td> </tr> </tbody> </table> </td> </tr> </table></small></p> |
| </body> |
| </html> |