com.bigdata.service
Class DataService.DataServiceFederationDelegate

java.lang.Object
  extended by com.bigdata.service.DefaultServiceFederationDelegate<DataService>
      extended by com.bigdata.service.DataService.DataServiceFederationDelegate
All Implemented Interfaces:
IFederationDelegate<DataService>
Enclosing class:
DataService

public static class DataService.DataServiceFederationDelegate
extends DefaultServiceFederationDelegate<DataService>

Delegate handles custom counters for the ResourceManager, local AbstractTransactionService and the ConcurrencyManager, dynamic re-attachment of counters, etc. This delegate must be set on the AbstractClient for those additional features to work.

Version:
$Id: DataService.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Field Summary
 
Fields inherited from class com.bigdata.service.DefaultServiceFederationDelegate
log, service
 
Constructor Summary
DataService.DataServiceFederationDelegate(DataService service)
           
 
Method Summary
 void didStart()
          Extended to setup DataService specific counters and to write the client URL onto a file in the service's data directory.
 boolean isServiceReady()
          Returns true
 void reattachDynamicCounters()
          Dynamically detach and attach the counters for the named indices underneath of the IndexManager.
protected  void setupCounters()
          Sets up DataService specific counters.
 
Methods inherited from class com.bigdata.service.DefaultServiceFederationDelegate
getService, getServiceIface, getServiceName, getServiceUUID, logHttpdURL, newHttpd, serviceJoin, serviceLeave
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataService.DataServiceFederationDelegate

public DataService.DataServiceFederationDelegate(DataService service)
Method Detail

reattachDynamicCounters

public void reattachDynamicCounters()
Dynamically detach and attach the counters for the named indices underneath of the IndexManager.

Note: This method limits the frequency of update to no more than once every 5 seconds.

Note: OverflowManager.overflow() is responsible for reattaching the counters for the live StoreManager.ManagedJournal during synchronous overflow.

Specified by:
reattachDynamicCounters in interface IFederationDelegate<DataService>
Overrides:
reattachDynamicCounters in class DefaultServiceFederationDelegate<DataService>

isServiceReady

public boolean isServiceReady()
Description copied from class: DefaultServiceFederationDelegate
Returns true

Specified by:
isServiceReady in interface IFederationDelegate<DataService>
Overrides:
isServiceReady in class DefaultServiceFederationDelegate<DataService>

didStart

public void didStart()
Extended to setup DataService specific counters and to write the client URL onto a file in the service's data directory.

Specified by:
didStart in interface IFederationDelegate<DataService>
Overrides:
didStart in class DefaultServiceFederationDelegate<DataService>

setupCounters

protected void setupCounters()
Sets up DataService specific counters.

See Also:
DataService.IDataServiceCounters


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