net.sf.farrago.util
Class MdrUtil

java.lang.Object
  extended by net.sf.farrago.util.MdrUtil

public abstract class MdrUtil
extends Object

Static MDR utilities.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/util/MdrUtil.java#18 $
Author:
John V. Sichi

Constructor Summary
MdrUtil()
           
 
Method Summary
static void integrateTracing(Logger mdrTracer)
          Integrates MDR tracing with Farrago tracing.
static EnkiMDRepository loadRepository(String storageFactoryClassName, Properties storageProps)
          Loads an MDRepository instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdrUtil

public MdrUtil()
Method Detail

loadRepository

public static EnkiMDRepository loadRepository(String storageFactoryClassName,
                                              Properties storageProps)
Loads an MDRepository instance.

Parameters:
storageFactoryClassName - fully qualified name of the class used to implement repository storage (if null, this defaults to BtreeFactory if not specified as an entry in storageProps)
storageProps - storage-specific properties (with or without the MDRStorageProperty prefix)
Returns:
loaded repository

integrateTracing

public static void integrateTracing(Logger mdrTracer)
Integrates MDR tracing with Farrago tracing. Must be called before first usage of MDR.

Parameters:
mdrTracer - Logger for MDR tracing