public class FabricDiscovery extends org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.discovery.Discovery> implements org.elasticsearch.discovery.Discovery, org.elasticsearch.discovery.zen.DiscoveryNodesProvider, org.osgi.util.tracker.ServiceTrackerCustomizer<org.apache.curator.framework.CuratorFramework,org.apache.curator.framework.CuratorFramework>, org.elasticsearch.discovery.zen.publish.PublishClusterStateAction.NewClusterStateListener, GroupListener<org.elasticsearch.discovery.fabric.FabricDiscovery.ESNode>
GroupListener.GroupEvent| Modifier and Type | Field and Description |
|---|---|
protected org.elasticsearch.cluster.ClusterName |
clusterName |
protected org.elasticsearch.cluster.ClusterService |
clusterService |
protected org.osgi.framework.BundleContext |
context |
protected org.elasticsearch.cluster.node.DiscoveryNodeService |
discoveryNodeService |
protected org.elasticsearch.node.settings.NodeSettingsService |
nodeSettingsService |
protected org.elasticsearch.threadpool.ThreadPool |
threadPool |
protected org.osgi.util.tracker.ServiceTracker<org.apache.curator.framework.CuratorFramework,org.apache.curator.framework.CuratorFramework> |
tracker |
protected org.elasticsearch.transport.TransportService |
transportService |
| Constructor and Description |
|---|
FabricDiscovery(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.cluster.ClusterName clusterName,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.transport.TransportService transportService,
org.elasticsearch.cluster.ClusterService clusterService,
org.elasticsearch.node.settings.NodeSettingsService nodeSettingsService,
org.elasticsearch.cluster.node.DiscoveryNodeService discoveryNodeService) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.curator.framework.CuratorFramework |
addingService(org.osgi.framework.ServiceReference<org.apache.curator.framework.CuratorFramework> reference) |
void |
addListener(org.elasticsearch.discovery.InitialStateDiscoveryListener listener) |
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
void |
groupEvent(Group<org.elasticsearch.discovery.fabric.FabricDiscovery.ESNode> group,
GroupListener.GroupEvent event) |
org.elasticsearch.cluster.node.DiscoveryNode |
localNode() |
void |
modifiedService(org.osgi.framework.ServiceReference<org.apache.curator.framework.CuratorFramework> reference,
org.apache.curator.framework.CuratorFramework service) |
java.lang.String |
nodeDescription() |
org.elasticsearch.cluster.node.DiscoveryNodes |
nodes() |
org.elasticsearch.node.service.NodeService |
nodeService() |
void |
onNewClusterState(org.elasticsearch.cluster.ClusterState newState) |
void |
publish(org.elasticsearch.cluster.ClusterState clusterState) |
void |
removedService(org.osgi.framework.ServiceReference<org.apache.curator.framework.CuratorFramework> reference,
org.apache.curator.framework.CuratorFramework service) |
void |
removeListener(org.elasticsearch.discovery.InitialStateDiscoveryListener listener) |
void |
setAllocationService(org.elasticsearch.cluster.routing.allocation.AllocationService allocationService) |
void |
setNodeService(org.elasticsearch.node.service.NodeService nodeService) |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final org.elasticsearch.cluster.ClusterName clusterName
protected final org.elasticsearch.threadpool.ThreadPool threadPool
protected final org.elasticsearch.transport.TransportService transportService
protected final org.elasticsearch.cluster.ClusterService clusterService
protected final org.elasticsearch.node.settings.NodeSettingsService nodeSettingsService
protected final org.elasticsearch.cluster.node.DiscoveryNodeService discoveryNodeService
protected final org.osgi.framework.BundleContext context
protected final org.osgi.util.tracker.ServiceTracker<org.apache.curator.framework.CuratorFramework,org.apache.curator.framework.CuratorFramework> tracker
@Inject
public FabricDiscovery(org.elasticsearch.common.settings.Settings settings,
org.elasticsearch.cluster.ClusterName clusterName,
org.elasticsearch.threadpool.ThreadPool threadPool,
org.elasticsearch.transport.TransportService transportService,
org.elasticsearch.cluster.ClusterService clusterService,
org.elasticsearch.node.settings.NodeSettingsService nodeSettingsService,
org.elasticsearch.cluster.node.DiscoveryNodeService discoveryNodeService)
protected void doStart()
throws org.elasticsearch.ElasticSearchException
doStart in class org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.discovery.Discovery>org.elasticsearch.ElasticSearchExceptionprotected void doStop()
throws org.elasticsearch.ElasticSearchException
doStop in class org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.discovery.Discovery>org.elasticsearch.ElasticSearchExceptionprotected void doClose()
throws org.elasticsearch.ElasticSearchException
doClose in class org.elasticsearch.common.component.AbstractLifecycleComponent<org.elasticsearch.discovery.Discovery>org.elasticsearch.ElasticSearchExceptionpublic org.elasticsearch.cluster.node.DiscoveryNode localNode()
localNode in interface org.elasticsearch.discovery.Discoverypublic void addListener(org.elasticsearch.discovery.InitialStateDiscoveryListener listener)
addListener in interface org.elasticsearch.discovery.Discoverypublic void removeListener(org.elasticsearch.discovery.InitialStateDiscoveryListener listener)
removeListener in interface org.elasticsearch.discovery.Discoverypublic java.lang.String nodeDescription()
nodeDescription in interface org.elasticsearch.discovery.Discoverypublic void setNodeService(@Nullable
org.elasticsearch.node.service.NodeService nodeService)
setNodeService in interface org.elasticsearch.discovery.Discoverypublic void setAllocationService(org.elasticsearch.cluster.routing.allocation.AllocationService allocationService)
setAllocationService in interface org.elasticsearch.discovery.Discoverypublic void publish(org.elasticsearch.cluster.ClusterState clusterState)
publish in interface org.elasticsearch.discovery.Discoverypublic org.elasticsearch.cluster.node.DiscoveryNodes nodes()
nodes in interface org.elasticsearch.discovery.zen.DiscoveryNodesProviderpublic org.elasticsearch.node.service.NodeService nodeService()
nodeService in interface org.elasticsearch.discovery.zen.DiscoveryNodesProviderpublic org.apache.curator.framework.CuratorFramework addingService(org.osgi.framework.ServiceReference<org.apache.curator.framework.CuratorFramework> reference)
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.apache.curator.framework.CuratorFramework,org.apache.curator.framework.CuratorFramework>public void modifiedService(org.osgi.framework.ServiceReference<org.apache.curator.framework.CuratorFramework> reference, org.apache.curator.framework.CuratorFramework service)
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.apache.curator.framework.CuratorFramework,org.apache.curator.framework.CuratorFramework>public void removedService(org.osgi.framework.ServiceReference<org.apache.curator.framework.CuratorFramework> reference, org.apache.curator.framework.CuratorFramework service)
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer<org.apache.curator.framework.CuratorFramework,org.apache.curator.framework.CuratorFramework>public void groupEvent(Group<org.elasticsearch.discovery.fabric.FabricDiscovery.ESNode> group, GroupListener.GroupEvent event)
groupEvent in interface GroupListener<org.elasticsearch.discovery.fabric.FabricDiscovery.ESNode>public void onNewClusterState(org.elasticsearch.cluster.ClusterState newState)
onNewClusterState in interface org.elasticsearch.discovery.zen.publish.PublishClusterStateAction.NewClusterStateListenerCopyright © 2014 Red Hat. All Rights Reserved.