org.elasticsearch.common.component
Interface LifecycleComponent<T>

All Superinterfaces:
CloseableComponent
All Known Subinterfaces:
ClusterService, Discovery, Gateway, HttpServerTransport, IndicesService, Transport, ZenPing
All Known Implementing Classes:
AbstractLifecycleComponent, BlobStoreGateway, BulkUdpService, DiscoveryService, FsGateway, GatewayService, HttpServer, IndexingMemoryController, IndicesClusterStateService, IndicesTTLService, InternalClusterService, InternalIndicesService, JvmMonitorService, LocalDiscovery, LocalGateway, LocalTransport, MonitorService, MulticastZenPing, NettyHttpServerTransport, NettyTransport, NoneGateway, RestController, RiverClusterService, RiversManager, RiversRouter, RiversService, RoutingService, SearchService, SharedStorageGateway, TransportService, UnicastZenPing, ZenDiscovery, ZenPingService

public interface LifecycleComponent<T>
extends CloseableComponent


Method Summary
 void addLifecycleListener(LifecycleListener listener)
           
 Lifecycle.State lifecycleState()
           
 void removeLifecycleListener(LifecycleListener listener)
           
 T start()
           
 T stop()
           
 
Methods inherited from interface org.elasticsearch.common.component.CloseableComponent
close
 

Method Detail

lifecycleState

Lifecycle.State lifecycleState()

addLifecycleListener

void addLifecycleListener(LifecycleListener listener)

removeLifecycleListener

void removeLifecycleListener(LifecycleListener listener)

start

T start()
        throws ElasticSearchException
Throws:
ElasticSearchException

stop

T stop()
       throws ElasticSearchException
Throws:
ElasticSearchException


Copyright © 2009-2012. All Rights Reserved.