org.sourceforge.jemm.sample.demo1
Class Demo1Speed

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

public final class Demo1Speed
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
static int NO_UPDATES
           
 
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 configured store
 
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
 

Field Detail

NO_UPDATES

public static final int NO_UPDATES
See Also:
Constant Field Values
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 configured store



Copyright © 2009. All Rights Reserved.