Support task status
This is the x-content buddy of https://github.com/elastic/elasticsearch/issues/16344 Original commit: elastic/x-pack-elasticsearch@db216f7b46
This commit is contained in:
parent
96b2930ac7
commit
8fe5afd8a7
|
@ -7,6 +7,7 @@ package org.elasticsearch.shield.transport;
|
||||||
|
|
||||||
import org.elasticsearch.cluster.node.DiscoveryNode;
|
import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.threadpool.ThreadPool;
|
import org.elasticsearch.threadpool.ThreadPool;
|
||||||
import org.elasticsearch.transport.Transport;
|
import org.elasticsearch.transport.Transport;
|
||||||
|
@ -22,8 +23,9 @@ public class ShieldClientTransportService extends TransportService {
|
||||||
private final ClientTransportFilter clientFilter;
|
private final ClientTransportFilter clientFilter;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public ShieldClientTransportService(Settings settings, Transport transport, ThreadPool threadPool, ClientTransportFilter clientFilter) {
|
public ShieldClientTransportService(Settings settings, Transport transport, ThreadPool threadPool, ClientTransportFilter clientFilter,
|
||||||
super(settings, transport, threadPool);
|
NamedWriteableRegistry namedWriteableRegistry) {
|
||||||
|
super(settings, transport, threadPool, namedWriteableRegistry);
|
||||||
this.clientFilter = clientFilter;
|
this.clientFilter = clientFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ package org.elasticsearch.shield.transport;
|
||||||
|
|
||||||
import org.elasticsearch.cluster.node.DiscoveryNode;
|
import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
import org.elasticsearch.common.util.concurrent.ThreadContext;
|
||||||
import org.elasticsearch.shield.action.ShieldActionMapper;
|
import org.elasticsearch.shield.action.ShieldActionMapper;
|
||||||
|
@ -66,8 +67,9 @@ public class ShieldServerTransportService extends TransportService {
|
||||||
AuthorizationService authzService,
|
AuthorizationService authzService,
|
||||||
ShieldActionMapper actionMapper,
|
ShieldActionMapper actionMapper,
|
||||||
ClientTransportFilter clientTransportFilter,
|
ClientTransportFilter clientTransportFilter,
|
||||||
ShieldLicenseState licenseState) {
|
ShieldLicenseState licenseState,
|
||||||
super(settings, transport, threadPool);
|
NamedWriteableRegistry namedWriteableRegistry) {
|
||||||
|
super(settings, transport, threadPool, namedWriteableRegistry);
|
||||||
this.authcService = authcService;
|
this.authcService = authcService;
|
||||||
this.authzService = authzService;
|
this.authzService = authzService;
|
||||||
this.actionMapper = actionMapper;
|
this.actionMapper = actionMapper;
|
||||||
|
|
|
@ -10,6 +10,7 @@ import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.common.inject.AbstractModule;
|
import org.elasticsearch.common.inject.AbstractModule;
|
||||||
import org.elasticsearch.common.inject.Inject;
|
import org.elasticsearch.common.inject.Inject;
|
||||||
import org.elasticsearch.common.inject.Module;
|
import org.elasticsearch.common.inject.Module;
|
||||||
|
import org.elasticsearch.common.io.stream.NamedWriteableRegistry;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
import org.elasticsearch.common.io.stream.StreamOutput;
|
import org.elasticsearch.common.io.stream.StreamOutput;
|
||||||
import org.elasticsearch.common.network.NetworkModule;
|
import org.elasticsearch.common.network.NetworkModule;
|
||||||
|
@ -300,8 +301,11 @@ public class TransportFilterTests extends ESIntegTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public InternalPluginServerTransportService(Settings settings, Transport transport, ThreadPool threadPool, AuthenticationService authcService, AuthorizationService authzService, ShieldActionMapper actionMapper, ClientTransportFilter clientTransportFilter) {
|
public InternalPluginServerTransportService(Settings settings, Transport transport, ThreadPool threadPool,
|
||||||
super(settings, transport, threadPool, authcService, authzService, actionMapper, clientTransportFilter, mock(ShieldLicenseState.class));
|
AuthenticationService authcService, AuthorizationService authzService, ShieldActionMapper actionMapper,
|
||||||
|
ClientTransportFilter clientTransportFilter, NamedWriteableRegistry namedWriteableRegistry) {
|
||||||
|
super(settings, transport, threadPool, authcService, authzService, actionMapper, clientTransportFilter,
|
||||||
|
mock(ShieldLicenseState.class), namedWriteableRegistry);
|
||||||
when(licenseState.securityEnabled()).thenReturn(true);
|
when(licenseState.securityEnabled()).thenReturn(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue