public class TribeService extends AbstractLifecycleComponent<TribeService>
The processSettings(org.elasticsearch.common.settings.Settings) method should be called before
starting the node, so it will make sure to configure this current node properly with the relevant tribe node
settings.
The tribe node settings make sure the discovery used is "local", but with no master elected. This means no
write level master node operations will work (MasterNotDiscoveredException
will be thrown), and state level metadata operations with automatically use the local flag.
The state merged from different clusters include the list of nodes, metadata, and routing table. Each node merged will have in its tribe which tribe member it came from. Each index merged will have in its settings which tribe member it came from. In case an index has already been merged from one cluster, and the same name index is discovered in another cluster, the conflict one will be discarded. This happens because we need to have the correct index name to propagate to the relevant cluster.
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static ClusterBlock |
TRIBE_METADATA_BLOCK |
static String |
TRIBE_NAME |
static ClusterBlock |
TRIBE_WRITE_BLOCK |
lifecycledeprecationLogger, logger, settings| コンストラクタと説明 |
|---|
TribeService(Settings settings,
ClusterService clusterService,
DiscoveryService discoveryService) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
static Settings |
processSettings(Settings settings) |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeNamepublic static final ClusterBlock TRIBE_METADATA_BLOCK
public static final ClusterBlock TRIBE_WRITE_BLOCK
@Inject public TribeService(Settings settings, ClusterService clusterService, DiscoveryService discoveryService)
protected void doStart()
doStart クラス内 AbstractLifecycleComponent<TribeService>protected void doStop()
doStop クラス内 AbstractLifecycleComponent<TribeService>protected void doClose()
doClose クラス内 AbstractLifecycleComponent<TribeService>Copyright © 2009–2016. All rights reserved.