com.bigdata.service.jini.lookup
Class TransactionServiceClient

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

public class TransactionServiceClient
extends BigdataCachingServiceClient<ITransactionService>

Client manages discovery of an ITransactionService.

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
TransactionServiceClient(JiniFederation fed, long timeout)
           
 
Method Summary
 ITransactionService getTransactionService()
          Return the ITransactionService 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

TransactionServiceClient

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

getTransactionService

public ITransactionService getTransactionService()
Return the ITransactionService 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. secondaries MUST listen to the primary so that time continues to move forward.


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