com.bigdata.samples
Class Concurrency

java.lang.Object
  extended by com.bigdata.samples.Concurrency

public class Concurrency
extends Object

This class demonstrates concurrent reading and writing with the U10 data set on the scale-out architecture. One thread writes the U10 data files, doing a commit after every file (this is not the fastest way to perform load, as it simulates incremental updates vs bulk load). Another thread asks for the number of "FullProfessors" every three seconds. You can watch the number of results rise as more data is loaded.

Author:
mikep

Field Summary
protected static org.apache.log4j.Logger log
           
 
Constructor Summary
Concurrency()
           
 
Method Summary
static void main(String[] args)
          Manage the control flow of the program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log
Constructor Detail

Concurrency

public Concurrency()
Method Detail

main

public static final void main(String[] args)
Manage the control flow of the program. Open a bigdata repository, kick off the writer, kick off the readers, wait for the writer to complete, kill the readers, wait for the readers to complete, shutdown the repository.

Parameters:
args -


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.