com.bigdata.service
Interface IServiceShutdown

All Known Subinterfaces:
IConcurrencyManager, ILocalTransactionManager, IResourceManager
All Known Implementing Classes:
AbstractHTTPD, AbstractLocalTransactionManager, AbstractServicesManagerService, AbstractTransactionService, ConcurrencyManager, CounterSetHTTPD, DataServer.AdministrableDataService, DataService, DataService.DataServiceTransactionManager, DistributedTransactionService, IndexManager, Journal, JournalTransactionService, LoadBalancerServer.AdministrableLoadBalancer, LoadBalancerService, MetadataServer.AdministrableMetadataService, MetadataService, NanoHTTPD, OverflowManager, ResourceManager, ServicesManagerServer.AdministrableServicesManagerService, StoreManager, TransactionServer.AdministrableTransactionService

public interface IServiceShutdown

Local API for service shutdown.

Version:
$Id: IServiceShutdown.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson
TODO:
declare on the various "Manager" interfaces, all of which use these method signatures. Perhaps rename as "IShutdown".

Nested Class Summary
static interface IServiceShutdown.Options
          Options for IServiceShutdown implementations.
 
Method Summary
 boolean isOpen()
          Return true iff the service is running.
 void shutdown()
          The service will no longer accept new requests, but existing requests will be processed (sychronous).
 void shutdownNow()
          The service will no longer accept new requests and will make a best effort attempt to terminate all existing requests and return ASAP.
 

Method Detail

isOpen

boolean isOpen()
Return true iff the service is running.


shutdown

void shutdown()
The service will no longer accept new requests, but existing requests will be processed (sychronous). This method should await the termination of pending requests, but no longer than the timeout specified by IServiceShutdown.Options.SHUTDOWN_TIMEOUT. Implementations SHOULD be synchronized. If the service is aleady shutdown, then this method should be a NOP.


shutdownNow

void shutdownNow()
The service will no longer accept new requests and will make a best effort attempt to terminate all existing requests and return ASAP. This method should terminate any asynchronous processing, release all resources and return immediately. Implementations SHOULD be synchronized. If the service is aleady shutdown, then this method should be a NOP.



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