本文整理匯總了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);
}