[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Data is storing in in-memory (Disk) ?  XML
Forum Index -> Terracotta Platform
Author Message
sam1234

neo

Joined: 05/08/2013 08:31:22
Messages: 9
Offline

Hi,

I'm using trail version "bigmemory-max-4.1.3".
When I used both config & progamatticBased 'Cache Manager' and 'Cache' getting created & I can see the values in LocalHeap using 'TMC'. Could you please tell me how can I store the values in DISK (Distributed memory)? What configuration should I use?

Below is the progammatic configuration I use:

Configuration managerConfiguration = new Configuration()
.name("bigmemory-config")
.terracotta(new TerracottaClientConfiguration().url("localhost:9510"))
.cache(new CacheConfiguration()
.name("bigMemory_putgetCache_PgmBase")
.maxBytesLocalHeap(128, MemoryUnit.MEGABYTES)
.copyOnRead(true)
.eternal(true)
.terracotta(new TerracottaConfiguration())

Below is the configuration base I use:

<cache name="bigMemory"
maxBytesLocalHeap="128M"
copyOnRead="true" eternal="true">
<terracotta/>
</cache>
<terracottaConfig url="localhost:9510" rejoin="false"/>
[Thumb - bigM_Servernw.png]
 Filename bigM_Servernw.png [Disk] Download
 Description TMC
 Filesize 53 Kbytes
 Downloaded:  563 time(s)

sam1234

neo

Joined: 05/08/2013 08:31:22
Messages: 9
Offline

Hi,

We have to set the persistent i.e. <restartable> to true; This will store the values into disk.

Sam.
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team