public class LocalGateway extends AbstractLifecycleComponent<Gateway> implements Gateway, ClusterStateListener
Gateway.GatewayStateRecoveredListenerlifecyclecomponentSettings, logger, settings| Constructor and Description |
|---|
LocalGateway(Settings settings,
ClusterService clusterService,
NodeEnvironment nodeEnv,
LocalGatewayShardsState shardsState,
LocalGatewayMetaState metaState,
TransportNodesListGatewayMetaState listGatewayMetaState,
ClusterName clusterName) |
| Modifier and Type | Method and Description |
|---|---|
void |
clusterChanged(ClusterChangedEvent event)
Called when cluster state changes.
|
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
void |
performStateRecovery(Gateway.GatewayStateRecoveredListener listener) |
void |
reset() |
Class<? extends Module> |
suggestIndexGateway() |
String |
type() |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stopnodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclose@Inject public LocalGateway(Settings settings, ClusterService clusterService, NodeEnvironment nodeEnv, LocalGatewayShardsState shardsState, LocalGatewayMetaState metaState, TransportNodesListGatewayMetaState listGatewayMetaState, ClusterName clusterName)
protected void doStart()
throws ElasticsearchException
doStart in class AbstractLifecycleComponent<Gateway>ElasticsearchExceptionprotected void doStop()
throws ElasticsearchException
doStop in class AbstractLifecycleComponent<Gateway>ElasticsearchExceptionprotected void doClose()
throws ElasticsearchException
doClose in class AbstractLifecycleComponent<Gateway>ElasticsearchExceptionpublic void performStateRecovery(Gateway.GatewayStateRecoveredListener listener) throws GatewayException
performStateRecovery in interface GatewayGatewayExceptionpublic Class<? extends Module> suggestIndexGateway()
suggestIndexGateway in interface Gatewaypublic void reset()
throws Exception
public void clusterChanged(ClusterChangedEvent event)
ClusterStateListenerclusterChanged in interface ClusterStateListenerCopyright © 2009–2016. All rights reserved.