本文整理汇总了Java中org.elasticsearch.action.ActionModule类的典型用法代码示例。如果您正苦于以下问题:Java ActionModule类的具体用法?Java ActionModule怎么用?Java ActionModule使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ActionModule类属于org.elasticsearch.action包,在下文中一共展示了ActionModule类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testSearchGuardFilterIsRegisteredLast
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
@Test
public void testSearchGuardFilterIsRegisteredLast() {
ActionModule module = Mockito.spy(new ActionModule(true));
Settings settings = Settings.EMPTY;
OpenShiftElasticSearchPlugin plugin = new OpenShiftElasticSearchPlugin(settings );
plugin.onModule(module);
InOrder inOrder = Mockito.inOrder(module);
inOrder.verify(module).registerFilter(FieldStatsResponseFilter.class);
inOrder.verify(module).registerFilter(KibanaUserReindexAction.class);
inOrder.verify(module).registerFilter(SearchGuardFilter.class);
}
开发者ID:fabric8io,项目名称:openshift-elasticsearch-plugin,代码行数:14,代码来源:OpenShiftElasticSearchPluginTest.java
示例2: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(ActionModule module) {
module.registerAction(TermsByQueryAction.INSTANCE, TransportTermsByQueryAction.class);
module.registerAction(CoordinateSearchAction.INSTANCE, TransportCoordinateSearchAction.class);
module.registerAction(CoordinateMultiSearchAction.INSTANCE, TransportCoordinateMultiSearchAction.class);
module.registerAction(ClearFilterJoinCacheAction.INSTANCE, TransportClearFilterJoinCacheAction.class);
module.registerAction(StatsFilterJoinCacheAction.INSTANCE, TransportStatsFilterJoinCacheAction.class);
module.registerAction(GetIndicesVersionAction.INSTANCE, TransportGetIndicesVersionAction.class);
}
示例3: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(ActionModule module) {
if (enabled && !client) {
module.registerFilter(ArmorActionFilter.class);
module.registerFilter(RequestActionFilter.class);
module.registerFilter(DLSActionFilter.class);
module.registerFilter(FLSActionFilter.class);
}
}
示例4: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(final ActionModule module) {
module.registerAction(BenchmarkAction.INSTANCE,
TransportBenchmarkAction.class);
module.registerAction(AbortBenchmarkAction.INSTANCE,
TransportAbortBenchmarkAction.class);
module.registerAction(BenchmarkStatusAction.INSTANCE,
TransportBenchmarkStatusAction.class);
}
示例5: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(ActionModule module) {
module.registerAction(FullUpdateAction.INSTANCE, TransportFullUpdateAction.class);
module.registerAction(IncrementalUpdateAction.INSTANCE, TransportIncrementalUpdateAction.class);
module.registerAction(JRStateAction.INSTANCE, TransportJRStateAction.class);
module.registerAction(JRLifecycleAction.INSTANCE, TransportJRLifecycleAction.class);
module.registerAction(ListRiversAction.INSTANCE, TransportListRiversAction.class);
}
示例6: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(ActionModule module) {
module.registerAction(PutChunkAction.INSTANCE, TransportPutChunkAction.class);
module.registerAction(StartBlobAction.INSTANCE, TransportStartBlobAction.class);
module.registerAction(DeleteBlobAction.INSTANCE, TransportDeleteBlobAction.class);
}
示例7: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(ActionModule actionModule) {
actionModule.registerAction(SQLAction.INSTANCE, TransportSQLAction.class);
actionModule.registerAction(SQLBulkAction.INSTANCE, TransportSQLBulkAction.class);
}
示例8: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(ActionModule module) {
module.registerFilter(AuthActionFilter.class);
}
示例9: build
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
/**
* Builds a new instance of the transport client.
*/
public TransportClient build() {
Settings settings = InternalSettingsPreparer.prepareSettings(this.settings);
settings = settingsBuilder()
.put(NettyTransport.PING_SCHEDULE, "5s") // enable by default the transport schedule ping interval
.put(settings)
.put("network.server", false)
.put("node.client", true)
.put(CLIENT_TYPE_SETTING, CLIENT_TYPE)
.build();
PluginsService pluginsService = new PluginsService(settings, null, null, pluginClasses);
this.settings = pluginsService.updatedSettings();
Version version = Version.CURRENT;
final ThreadPool threadPool = new ThreadPool(settings);
NamedWriteableRegistry namedWriteableRegistry = new NamedWriteableRegistry();
boolean success = false;
try {
ModulesBuilder modules = new ModulesBuilder();
modules.add(new Version.Module(version));
// plugin modules must be added here, before others or we can get crazy injection errors...
for (Module pluginModule : pluginsService.nodeModules()) {
modules.add(pluginModule);
}
modules.add(new PluginsModule(pluginsService));
modules.add(new SettingsModule(this.settings));
modules.add(new NetworkModule(namedWriteableRegistry));
modules.add(new ClusterNameModule(this.settings));
modules.add(new ThreadPoolModule(threadPool));
modules.add(new TransportModule(this.settings, namedWriteableRegistry));
modules.add(new SearchModule() {
@Override
protected void configure() {
// noop
}
});
modules.add(new ActionModule(true));
modules.add(new ClientTransportModule());
modules.add(new CircuitBreakerModule(this.settings));
pluginsService.processModules(modules);
Injector injector = modules.createInjector();
final TransportService transportService = injector.getInstance(TransportService.class);
transportService.start();
transportService.acceptIncomingRequests();
TransportClient transportClient = new TransportClient(injector);
success = true;
return transportClient;
} finally {
if (!success) {
ThreadPool.terminate(threadPool, 10, TimeUnit.SECONDS);
}
}
}
示例10: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(ActionModule actionModule) {
actionModule.registerFilter(FieldStatsResponseFilter.class);
actionModule.registerFilter(KibanaUserReindexAction.class);
searchguard.onModule(actionModule);
}
示例11: processModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
@Override
public void processModule(final Module module) {
if ((module instanceof ActionModule)) {
((ActionModule) module).registerAction(FlushAction.INSTANCE, TransportFlushAction.class);
}
}
示例12: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(ActionModule actionModule) {
actionModule.registerAction(VectorizeAction.INSTANCE, TransportVectorizeAction.class);
}
示例13: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(final ActionModule module) {
module.registerFilter(CreateSnapshotActionFilter.class);
module.registerFilter(RestoreSnapshotActionFilter.class);
module.registerFilter(DeleteSnapshotActionFilter.class);
}
示例14: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(ActionModule module) {
module.registerAction(SimpleAction.INSTANCE, TransportSimpleAction.class);
}
示例15: onModule
import org.elasticsearch.action.ActionModule; //导入依赖的package包/类
public void onModule(ActionModule module) {
module.registerAction(DeployAction.INSTANCE, TransportDeployAction.class);
}