com.activequant.archive.hbase
Class HBaseArchiveFactory

java.lang.Object
  extended by com.activequant.archive.hbase.HBaseArchiveFactory
All Implemented Interfaces:
IArchiveFactory

public class HBaseArchiveFactory
extends Object
implements IArchiveFactory

Instantiates readers and writers for different time frames. Stores them internally in a hashmap. Access to the getReader and getWriter methods is synchronized.

Author:
ustaudinger

Constructor Summary
HBaseArchiveFactory(String zookeeperHost)
           
HBaseArchiveFactory(String zookeeperHost, int zookeeperPort)
           
 
Method Summary
 IArchiveReader getReader(TimeFrame tf)
           
 IArchiveWriter getWriter(TimeFrame tf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HBaseArchiveFactory

public HBaseArchiveFactory(String zookeeperHost)

HBaseArchiveFactory

public HBaseArchiveFactory(String zookeeperHost,
                           int zookeeperPort)
Method Detail

getReader

public IArchiveReader getReader(TimeFrame tf)
Specified by:
getReader in interface IArchiveFactory

getWriter

public IArchiveWriter getWriter(TimeFrame tf)
Specified by:
getWriter in interface IArchiveFactory


Copyright © 2012 ActiveQuant GmbH. All Rights Reserved.