本文整理汇总了Java中org.graylog2.plugin.ServerStatus.Capability方法的典型用法代码示例。如果您正苦于以下问题:Java ServerStatus.Capability方法的具体用法?Java ServerStatus.Capability怎么用?Java ServerStatus.Capability使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.graylog2.plugin.ServerStatus
的用法示例。
在下文中一共展示了ServerStatus.Capability方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRequiredCapabilities
import org.graylog2.plugin.ServerStatus; //导入方法依赖的package包/类
@Override
public Set<ServerStatus.Capability> getRequiredCapabilities() {
return Collections.emptySet();
}
示例2: getRequiredCapabilities
import org.graylog2.plugin.ServerStatus; //导入方法依赖的package包/类
@Override
public Set<ServerStatus.Capability> getRequiredCapabilities() {
return new ImmutableSet.Builder<ServerStatus.Capability>()
/*
* This plugin will only start on the graylog-server master node because we are
* mostly working with the AWS REST APIs and running on multiple graylog-server
* nodes would result in data duplication.
*/
.add(ServerStatus.Capability.MASTER)
.build();
}
示例3: getRequiredCapabilities
import org.graylog2.plugin.ServerStatus; //导入方法依赖的package包/类
@Override
public Set<ServerStatus.Capability> getRequiredCapabilities() {
return Sets.newHashSet(ServerStatus.Capability.SERVER);
}
示例4: getRequiredCapabilities
import org.graylog2.plugin.ServerStatus; //导入方法依赖的package包/类
@Override
public Set<ServerStatus.Capability> getRequiredCapabilities() {
return EnumSet.of(ServerStatus.Capability.SERVER);
}
示例5: getRequiredCapabilities
import org.graylog2.plugin.ServerStatus; //导入方法依赖的package包/类
@Override
public Set<ServerStatus.Capability> getRequiredCapabilities()
{
return Collections.emptySet();
}
示例6: getRequiredCapabilities
import org.graylog2.plugin.ServerStatus; //导入方法依赖的package包/类
@Override
public Set<ServerStatus.Capability> getRequiredCapabilities() {
return java.util.EnumSet.of(ServerStatus.Capability.SERVER);
}
开发者ID:dfch,项目名称:biz.dfch.j.graylog2.plugin.alarm.execscript,代码行数:5,代码来源:dfchBizExecScriptMetadata.java
示例7: getRequiredCapabilities
import org.graylog2.plugin.ServerStatus; //导入方法依赖的package包/类
@Override
public Set<ServerStatus.Capability> getRequiredCapabilities()
{
return Collections.emptySet();
}
开发者ID:dfch,项目名称:biz.dfch.j.graylog2.plugin.output.execscript,代码行数:6,代码来源:dfchBizExecScriptMetadata.java
示例8: getRequiredCapabilities
import org.graylog2.plugin.ServerStatus; //导入方法依赖的package包/类
@Override
public Set<ServerStatus.Capability> getRequiredCapabilities() {
return Collections.singleton(ServerStatus.Capability.SERVER);
}