本文整理汇总了Java中org.elasticsearch.common.collect.ImmutableList.of方法的典型用法代码示例。如果您正苦于以下问题:Java ImmutableList.of方法的具体用法?Java ImmutableList.of怎么用?Java ImmutableList.of使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.elasticsearch.common.collect.ImmutableList
的用法示例。
在下文中一共展示了ImmutableList.of方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: services
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
@Override
public Collection<Class<? extends LifecycleComponent>> services() {
if (!clientMode) {
return ImmutableList.<Class<? extends LifecycleComponent>> of(AuditService.class);
}
return ImmutableList.<Class<? extends LifecycleComponent>> of();
}
示例2: spawnModules
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
@Override
public Iterable<? extends Module> spawnModules() {
if (!clientMode) {
return ImmutableList.<Module> of(new AuditActionModule(), new AuditRestModule());
}
return ImmutableList.<Module> of(new AuditActionModule());
}
示例3: modules
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
@Override
public Collection<Class<? extends Module>> modules() {
return ImmutableList.<Class<? extends Module>> of(AuditModule.class);
}
示例4: modules
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
@Override
public Collection<Class<? extends Module>> modules() {
return ImmutableList
.<Class<? extends Module>> of(SherlokAnalysisModule.class);
}
示例5: indicesCreated
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
public List<String> indicesCreated() {
if (event == null) {
return ImmutableList.<String> of();
}
return event.indicesCreated();
}
示例6: indicesDeleted
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
public List<String> indicesDeleted() {
if (event == null) {
return ImmutableList.<String> of();
}
return event.indicesDeleted();
}
示例7: spawnModules
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
@Override
public Iterable<? extends Module> spawnModules() {
return ImmutableList.of(Modules.createModule(settings.getAsClass("redis.type", NettyRedisServerTransportModule.class, "org.elasticsearch.redis.", "RedisServerTransportModule"), settings));
}
示例8: GetRiverStateResponse
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
public GetRiverStateResponse() {
states = ImmutableList.of();
}
示例9: modules
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
@Override
public Collection<Class<? extends Module>> modules() {
return ImmutableList.<Class<? extends Module>>of(AnnotationIndicesAnalysisModule.class);
}
示例10: resolveProjectKeys
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
private Iterable<String> resolveProjectKeys(String projectKey) {
if ("*".equals(projectKey)) {
return getAllStashProjectKeys();
}
return ImmutableList.of(projectKey);
}
示例11: emptyTargetNodes
import org.elasticsearch.common.collect.ImmutableList; //导入方法依赖的package包/类
public void emptyTargetNodes() {
this.targetNodes = ImmutableList.of();
}