com.senseidb.svc.impl
Class ClusteredSenseiServiceImpl

java.lang.Object
  extended by com.senseidb.svc.impl.ClusteredSenseiServiceImpl
All Implemented Interfaces:
SenseiService

public class ClusteredSenseiServiceImpl
extends Object
implements SenseiService


Constructor Summary
ClusteredSenseiServiceImpl(String zkurl, int zkTimeout, String clusterClientName, String clusterName, int connectTimeoutMillis, int writeTimeoutMillis, int maxConnectionsPerNode, int staleRequestTimeoutMins, int staleRequestCleanupFrequencyMins, SenseiLoadBalancerFactory loadBalancerFactory, Comparator<String> versionComparator)
           
 
Method Summary
 SenseiResult doQuery(SenseiRequest req)
           
 SenseiSystemInfo getSystemInfo()
           
 void shutdown()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusteredSenseiServiceImpl

public ClusteredSenseiServiceImpl(String zkurl,
                                  int zkTimeout,
                                  String clusterClientName,
                                  String clusterName,
                                  int connectTimeoutMillis,
                                  int writeTimeoutMillis,
                                  int maxConnectionsPerNode,
                                  int staleRequestTimeoutMins,
                                  int staleRequestCleanupFrequencyMins,
                                  SenseiLoadBalancerFactory loadBalancerFactory,
                                  Comparator<String> versionComparator)
Method Detail

start

public void start()

doQuery

public SenseiResult doQuery(SenseiRequest req)
                     throws SenseiException
Specified by:
doQuery in interface SenseiService
Throws:
SenseiException

getSystemInfo

public SenseiSystemInfo getSystemInfo()
                               throws SenseiException
Specified by:
getSystemInfo in interface SenseiService
Throws:
SenseiException

shutdown

public void shutdown()
Specified by:
shutdown in interface SenseiService


Copyright © 2010-2012. All Rights Reserved.