com.bigdata.service.jini.lookup
Class LoadBalancerClient

java.lang.Object
  extended by com.bigdata.service.jini.lookup.AbstractCachingServiceClient<S>
      extended by com.bigdata.service.jini.lookup.BigdataCachingServiceClient<ILoadBalancerService>
          extended by com.bigdata.service.jini.lookup.LoadBalancerClient

public class LoadBalancerClient
extends BigdataCachingServiceClient<ILoadBalancerService>

Class handles discovery of an ILoadBalancerService. Clients are responsible for generating notification events.

Version:
$Id$
Author:
Bryan Thompson

Field Summary
 
Fields inherited from class com.bigdata.service.jini.lookup.AbstractCachingServiceClient
cacheMissTimeout, filter, log, lookupCache, serviceCache, template
 
Constructor Summary
LoadBalancerClient(JiniFederation fed, long timeout)
           
 
Method Summary
 ILoadBalancerService getLoadBalancerService()
          Return the ILoadBalancerService service from the cache -or- null if there is no such service in the cache and a remote lookup times out.
 
Methods inherited from class com.bigdata.service.jini.lookup.AbstractCachingServiceClient
destroyDiscoveredServices, destroyService, getLookupCache, getService, getService, getServiceCache, getServiceDiscoveryManager, getServiceItem, getServiceItem, getServiceItems, getServiceUUIDs, shutdownDiscoveredServices, shutdownService, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadBalancerClient

public LoadBalancerClient(JiniFederation fed,
                          long timeout)
                   throws RemoteException
Throws:
RemoteException
Method Detail

getLoadBalancerService

public ILoadBalancerService getLoadBalancerService()
Return the ILoadBalancerService service from the cache -or- null if there is no such service in the cache and a remote lookup times out.

TODO:
handle multiple service instances for failover but always designate a primary.


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