@Inject public GuiceHolder(final RepositoriesService repositoriesService, final TransportService remoteClusterService) { GuiceHolder.repositoriesService = repositoriesService; GuiceHolder.remoteClusterService = remoteClusterService.getRemoteClusterService(); }
RemoteClusterAwareClient(Settings settings, ThreadPool threadPool, TransportService service, String clusterAlias) { super(settings, threadPool); this.service = service; this.clusterAlias = clusterAlias; this.remoteClusterService = service.getRemoteClusterService(); }
public RemoteClusterService getRemoteClusterService() { return transportService.getRemoteClusterService(); }
@Inject public TransportFieldCapabilitiesAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, TransportFieldCapabilitiesIndexAction shardAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) { super(settings, FieldCapabilitiesAction.NAME, threadPool, transportService, actionFilters, indexNameExpressionResolver, FieldCapabilitiesRequest::new); this.clusterService = clusterService; this.remoteClusterService = transportService.getRemoteClusterService(); this.shardAction = shardAction; }
/** * Returns a client to the remote cluster if the given cluster alias exists. * @param threadPool the {@link ThreadPool} for the client * @param clusterAlias the cluster alias the remote cluster is registered under * * @throws IllegalArgumentException if the given clusterAlias doesn't exist */ public Client getRemoteClusterClient(ThreadPool threadPool, String clusterAlias) { if (transportService.getRemoteClusterService().getRemoteClusterNames().contains(clusterAlias) == false) { throw new IllegalArgumentException("unknown cluster alias [" + clusterAlias + "]"); } return new RemoteClusterAwareClient(settings, threadPool, transportService, clusterAlias); }
/** * Returns a connection to the given node on the provided cluster. If the cluster alias is <code>null</code> the node will be resolved * against the local cluster. * @param clusterAlias the cluster alias the node should be resolve against * @param node the node to resolve * @return a connection to the given node belonging to the cluster with the provided alias. */ Transport.Connection getConnection(String clusterAlias, DiscoveryNode node) { if (clusterAlias == null) { return transportService.getConnection(node); } else { return transportService.getRemoteClusterService().getConnection(node, clusterAlias); } }
RemoteClusterAwareClient(Settings settings, ThreadPool threadPool, TransportService service, String clusterAlias) { super(settings, threadPool); this.service = service; this.clusterAlias = clusterAlias; this.remoteClusterService = service.getRemoteClusterService(); }
RemoteClusterAwareClient(Settings settings, ThreadPool threadPool, TransportService service, String clusterAlias) { super(settings, threadPool); this.service = service; this.clusterAlias = clusterAlias; this.remoteClusterService = service.getRemoteClusterService(); }
public RemoteClusterService getRemoteClusterService() { return transportService.getRemoteClusterService(); }
public RemoteClusterService getRemoteClusterService() { return transportService.getRemoteClusterService(); }
public RemoteClusterService getRemoteClusterService() { return transportService.getRemoteClusterService(); }
this.pluginLifecycleComponents = Collections.unmodifiableList(pluginLifecycleComponents); client.initialize(injector.getInstance(new Key<Map<GenericAction, TransportAction>>() {}), () -> clusterService.localNode().getId(), transportService.getRemoteClusterService());
@Inject public GuiceHolder(final RepositoriesService repositoriesService, final TransportService remoteClusterService) { GuiceHolder.repositoriesService = repositoriesService; GuiceHolder.remoteClusterService = remoteClusterService.getRemoteClusterService(); }
@Inject public TransportFieldCapabilitiesAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, TransportFieldCapabilitiesIndexAction shardAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) { super(settings, FieldCapabilitiesAction.NAME, threadPool, transportService, actionFilters, indexNameExpressionResolver, FieldCapabilitiesRequest::new); this.clusterService = clusterService; this.remoteClusterService = transportService.getRemoteClusterService(); this.shardAction = shardAction; }
@Inject public TransportFieldCapabilitiesAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, TransportFieldCapabilitiesIndexAction shardAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) { super(settings, FieldCapabilitiesAction.NAME, threadPool, transportService, actionFilters, indexNameExpressionResolver, FieldCapabilitiesRequest::new); this.clusterService = clusterService; this.remoteClusterService = transportService.getRemoteClusterService(); this.shardAction = shardAction; }
@Inject public TransportFieldCapabilitiesAction(Settings settings, TransportService transportService, ClusterService clusterService, ThreadPool threadPool, TransportFieldCapabilitiesIndexAction shardAction, ActionFilters actionFilters, IndexNameExpressionResolver indexNameExpressionResolver) { super(settings, FieldCapabilitiesAction.NAME, threadPool, transportService, actionFilters, indexNameExpressionResolver, FieldCapabilitiesRequest::new); this.clusterService = clusterService; this.remoteClusterService = transportService.getRemoteClusterService(); this.transportService = transportService; this.shardAction = shardAction; }
/** * Returns a client to the remote cluster if the given cluster alias exists. * @param threadPool the {@link ThreadPool} for the client * @param clusterAlias the cluster alias the remote cluster is registered under * * @throws IllegalArgumentException if the given clusterAlias doesn't exist */ public Client getRemoteClusterClient(ThreadPool threadPool, String clusterAlias) { if (transportService.getRemoteClusterService().getRemoteClusterNames().contains(clusterAlias) == false) { throw new IllegalArgumentException("unknown cluster alias [" + clusterAlias + "]"); } return new RemoteClusterAwareClient(settings, threadPool, transportService, clusterAlias); }
/** * Returns a client to the remote cluster if the given cluster alias exists. * @param threadPool the {@link ThreadPool} for the client * @param clusterAlias the cluster alias the remote cluster is registered under * * @throws IllegalArgumentException if the given clusterAlias doesn't exist */ public Client getRemoteClusterClient(ThreadPool threadPool, String clusterAlias) { if (transportService.getRemoteClusterService().getRemoteClusterNames().contains(clusterAlias) == false) { throw new IllegalArgumentException("unknown cluster alias [" + clusterAlias + "]"); } return new RemoteClusterAwareClient(settings, threadPool, transportService, clusterAlias); } }
/** * Returns a connection to the given node on the provided cluster. If the cluster alias is <code>null</code> the node will be resolved * against the local cluster. * @param clusterAlias the cluster alias the node should be resolve against * @param node the node to resolve * @return a connection to the given node belonging to the cluster with the provided alias. */ Transport.Connection getConnection(String clusterAlias, DiscoveryNode node) { if (clusterAlias == null) { return transportService.getConnection(node); } else { return transportService.getRemoteClusterService().getConnection(node, clusterAlias); } }
/** * Returns a connection to the given node on the provided cluster. If the cluster alias is <code>null</code> the node will be resolved * against the local cluster. * @param clusterAlias the cluster alias the node should be resolve against * @param node the node to resolve * @return a connection to the given node belonging to the cluster with the provided alias. */ Transport.Connection getConnection(String clusterAlias, DiscoveryNode node) { if (clusterAlias == null) { return transportService.getConnection(node); } else { return transportService.getRemoteClusterService().getConnection(node, clusterAlias); } } }