org.sourceforge.jemm.sample.demo1
Class Demo1

java.lang.Object
  extended by org.sourceforge.jemm.sample.AbstractDemo
      extended by org.sourceforge.jemm.sample.demo1.Demo1

public final class Demo1
extends AbstractDemo

A simple demonstration program. The demo uses a persistent memory store (the data is stored in memory and persisted to disk on shutdown. It is a simple example that looks to see if a Foo is already stored, if so it finds the associated Bar and increments the counter. If no Foo is found it creates a new one and places it into the store.

Author:
Rory Graves

Field Summary
 
Fields inherited from class org.sourceforge.jemm.sample.AbstractDemo
store
 
Method Summary
static void main(java.lang.String[] args)
          Main method, runs the example using the command line store configuration
 void runDemo()
          Runs the actual demo with the given store implementation.
 
Methods inherited from class org.sourceforge.jemm.sample.AbstractDemo
generateStats
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
Main method, runs the example using the command line store configuration

Parameters:
args - Program arguments - see AbstractDemo.

runDemo

public void runDemo()
Runs the actual demo with the given store implementation.



Copyright © 2009. All Rights Reserved.