當前位置: 首頁>>代碼示例>>Java>>正文


Java ServerStatus類代碼示例

本文整理匯總了Java中org.graylog2.plugin.ServerStatus的典型用法代碼示例。如果您正苦於以下問題:Java ServerStatus類的具體用法?Java ServerStatus怎麽用?Java ServerStatus使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ServerStatus類屬於org.graylog2.plugin包,在下文中一共展示了ServerStatus類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: S3Input

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@AssistedInject
public S3Input(@Assisted Configuration configuration,
               MetricRegistry metricRegistry,
               S3Transport.Factory transport,
               LocalMetricRegistry localRegistry,
               S3Codec.Factory codec,
               Config config,
               Descriptor descriptor,
               ServerStatus serverStatus) {
    super(
            metricRegistry,
            configuration,
            transport.create(configuration),
            localRegistry,
            codec.create(configuration),
            config,
            descriptor,
            serverStatus);
}
 
開發者ID:sherzberg,項目名稱:graylog-plugin-s3,代碼行數:20,代碼來源:S3Input.java

示例2: CEFUDPInput

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@AssistedInject
public CEFUDPInput(@Assisted Configuration configuration,
                    MetricRegistry metricRegistry,
                    final UdpTransport.Factory udpTransportFactory,
                    final LocalMetricRegistry localRegistry,
                    CEFCodec.Factory codec,
                    Config config,
                    Descriptor descriptor,
                    ServerStatus serverStatus) {
    super(
            metricRegistry,
            configuration,
            udpTransportFactory.create(configuration),
            localRegistry,
            codec.create(configuration),
            config,
            descriptor,
            serverStatus
    );
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-cef,代碼行數:21,代碼來源:CEFUDPInput.java

示例3: CEFTCPInput

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@AssistedInject
public CEFTCPInput(@Assisted Configuration configuration,
                   MetricRegistry metricRegistry,
                   final TcpTransport.Factory tcpTransportFactory,
                   final LocalMetricRegistry localRegistry,
                   CEFCodec.Factory codec,
                   Config config,
                   Descriptor descriptor,
                   ServerStatus serverStatus) {
    super(
            metricRegistry,
            configuration,
            tcpTransportFactory.create(configuration),
            localRegistry,
            codec.create(configuration),
            config,
            descriptor,
            serverStatus
    );
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-cef,代碼行數:21,代碼來源:CEFTCPInput.java

示例4: CEFKafkaInput

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@AssistedInject
public CEFKafkaInput(@Assisted Configuration configuration,
                     MetricRegistry metricRegistry,
                     final KafkaTransport.Factory kafkaTransportFactory,
                     final LocalMetricRegistry localRegistry,
                     CEFCodec.Factory codec,
                     Config config,
                     Descriptor descriptor,
                     ServerStatus serverStatus) {
    super(
            metricRegistry,
            configuration,
            kafkaTransportFactory.create(configuration),
            localRegistry,
            codec.create(configuration),
            config,
            descriptor,
            serverStatus
    );
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-cef,代碼行數:21,代碼來源:CEFKafkaInput.java

示例5: CEFAmqpInput

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@AssistedInject
public CEFAmqpInput(@Assisted Configuration configuration,
                    MetricRegistry metricRegistry,
                    final AmqpTransport.Factory amqpTransportFactory,
                    final LocalMetricRegistry localRegistry,
                    CEFCodec.Factory codec,
                    Config config,
                    Descriptor descriptor,
                    ServerStatus serverStatus) {
    super(
            metricRegistry,
            configuration,
            amqpTransportFactory.create(configuration),
            localRegistry,
            codec.create(configuration),
            config,
            descriptor,
            serverStatus
    );
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-cef,代碼行數:21,代碼來源:CEFAmqpInput.java

示例6: SFlowInput

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@Inject
public SFlowInput(@Assisted Configuration configuration,
                  UdpTransport.Factory transportFactory,
                  SFlowCodec.Factory codecFactory,
                  Config config,
                  Descriptor descriptor,
                  MetricRegistry metricRegistry,
                  LocalMetricRegistry localRegistry,
                  ServerStatus serverStatus)
{
    super(metricRegistry,
          configuration,
          transportFactory.create(configuration),
          localRegistry,
          codecFactory.create(configuration),
          config,
          descriptor,
          serverStatus);
}
 
開發者ID:tom-saunders,項目名稱:graylog-plugin-sflow-input,代碼行數:20,代碼來源:SFlowInput.java

示例7: UsageStatsNodePeriodical

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@Inject
public UsageStatsNodePeriodical(UsageStatsNodeService usageStatsNodeService,
                                NodeId nodeId,
                                ServerStatus serverStatus,
                                UsageStatsConfiguration config,
                                ClusterConfigService clusterConfigService,
                                @CompressingHttpClient OkHttpClient httpClient,
                                @SmileObjectMapper ObjectMapper objectMapper) {
    this(
            usageStatsNodeService,
            nodeId,
            serverStatus,
            config,
            clusterConfigService,
            EvictingQueue.<UsageStatsRequest>create(config.getMaxQueueSize()),
            httpClient,
            objectMapper);
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-anonymous-usage-statistics,代碼行數:19,代碼來源:UsageStatsNodePeriodical.java

示例8: NodeCollector

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@Inject
public NodeCollector(NodeId nodeId,
                     ServerStatus serverStatus,
                     MetricRegistry metricRegistry,
                     StatsService statsService,
                     InputService inputService,
                     ClusterConfigService clusterConfigService,
                     Set<PluginMetaData> plugins,
                     @Named("usage_statistics_report_interval") Duration reportInterval,
                     @Named("installation_source") String installationSource) {
    this.nodeId = checkNotNull(nodeId);
    this.serverStatus = checkNotNull(serverStatus);
    this.metricRegistry = checkNotNull(metricRegistry);
    this.statsService = checkNotNull(statsService);
    this.inputService = checkNotNull(inputService);
    this.clusterConfigService = checkNotNull(clusterConfigService);
    this.plugins = checkNotNull(plugins);
    this.reportIntervalMs = checkNotNull(reportInterval).toMilliseconds();
    this.installationSource = checkNotNull(installationSource);
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-anonymous-usage-statistics,代碼行數:21,代碼來源:NodeCollector.java

示例9: UsageStatsClusterPeriodical

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@Inject
public UsageStatsClusterPeriodical(UsageStatsClusterService usageStatsClusterService,
                                   ServerStatus serverStatus,
                                   UsageStatsConfiguration config,
                                   ClusterConfigService clusterConfigService,
                                   @CompressingHttpClient OkHttpClient httpClient,
                                   @SmileObjectMapper ObjectMapper objectMapper) {
    this(
            usageStatsClusterService,
            serverStatus,
            config,
            clusterConfigService,
            EvictingQueue.<UsageStatsRequest>create(config.getMaxQueueSize()),
            httpClient,
            objectMapper);
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-anonymous-usage-statistics,代碼行數:17,代碼來源:UsageStatsClusterPeriodical.java

示例10: testStartOnThisNode

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@Test
public void testStartOnThisNode() throws Exception {
    when(configuration.isEnabled()).thenReturn(true);
    when(serverStatus.hasCapability(ServerStatus.Capability.LOCALMODE)).thenReturn(false);
    assertThat(periodical.startOnThisNode()).isTrue();

    when(configuration.isEnabled()).thenReturn(false);
    when(serverStatus.hasCapability(ServerStatus.Capability.LOCALMODE)).thenReturn(false);
    assertThat(periodical.startOnThisNode()).isFalse();

    when(configuration.isEnabled()).thenReturn(true);
    when(serverStatus.hasCapability(ServerStatus.Capability.LOCALMODE)).thenReturn(true);
    assertThat(periodical.startOnThisNode()).isFalse();

    when(configuration.isEnabled()).thenReturn(false);
    assertThat(periodical.startOnThisNode()).isFalse();
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-anonymous-usage-statistics,代碼行數:18,代碼來源:UsageStatsNodePeriodicalTest.java

示例11: SpaceweatherInput

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@AssistedInject
public SpaceweatherInput(MetricRegistry metricRegistry,
                    @Assisted Configuration configuration,
                    SpaceweatherTransport.Factory transportFactory,
                    LocalMetricRegistry localRegistry,
                    SpaceweatherCodec.Factory codecFactory,
                    Config config,
                    Descriptor descriptor,
                    ServerStatus serverStatus) {
    super(metricRegistry,
            configuration,
            transportFactory.create(configuration),
            localRegistry,
            codecFactory.create(configuration),
            config, descriptor, serverStatus);
}
 
開發者ID:graylog-labs,項目名稱:graylog-plugin-spaceweather,代碼行數:17,代碼來源:SpaceweatherInput.java

示例12: CloudWatchLogsInput

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@Inject
public CloudWatchLogsInput(@Assisted Configuration configuration,
                           MetricRegistry metricRegistry,
                           KinesisTransport.Factory transport,
                           LocalMetricRegistry localRegistry,
                           CloudWatchRawLogCodec.Factory codec,
                           Config config,
                           Descriptor descriptor,
                           ServerStatus serverStatus) {
    super(
            metricRegistry,
            configuration,
            transport.create(configuration),
            localRegistry,
            codec.create(configuration),
            config,
            descriptor,
            serverStatus
    );
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-aws,代碼行數:21,代碼來源:CloudWatchLogsInput.java

示例13: CloudTrailInput

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@Inject
public CloudTrailInput(@Assisted Configuration configuration,
                       MetricRegistry metricRegistry,
                       CloudTrailTransport.Factory transport,
                       LocalMetricRegistry localRegistry,
                       CloudTrailCodec.Factory codec,
                       Config config,
                       Descriptor descriptor,
                       ServerStatus serverStatus) {
    super(
            metricRegistry,
            configuration,
            transport.create(configuration),
            localRegistry,
            codec.create(configuration),
            config,
            descriptor,
            serverStatus);
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-aws,代碼行數:20,代碼來源:CloudTrailInput.java

示例14: CloudTrailTransport

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@Inject
public CloudTrailTransport(@Assisted final Configuration configuration,
                           final ClusterConfigService clusterConfigService,
                           final EventBus serverEventBus,
                           final ServerStatus serverStatus,
                           @AWSObjectMapper ObjectMapper objectMapper,
                           @Named("http_proxy_uri") @Nullable URI httpProxyUri,
                           LocalMetricRegistry localRegistry) {
    super(serverEventBus, configuration);

    this.clusterConfigService = clusterConfigService;
    this.serverStatus = serverStatus;
    this.objectMapper = objectMapper;
    this.httpProxyUri = httpProxyUri;
    this.localRegistry = localRegistry;
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-aws,代碼行數:17,代碼來源:CloudTrailTransport.java

示例15: FlowLogsInput

import org.graylog2.plugin.ServerStatus; //導入依賴的package包/類
@Inject
public FlowLogsInput(@Assisted Configuration configuration,
                       MetricRegistry metricRegistry,
                       KinesisTransport.Factory transport,
                       LocalMetricRegistry localRegistry,
                       CloudWatchFlowLogCodec.Factory codec,
                       Config config,
                       Descriptor descriptor,
                       ServerStatus serverStatus) {
    super(
            metricRegistry,
            configuration,
            transport.create(configuration),
            localRegistry,
            codec.create(configuration),
            config,
            descriptor,
            serverStatus
    );
}
 
開發者ID:Graylog2,項目名稱:graylog-plugin-aws,代碼行數:21,代碼來源:FlowLogsInput.java


注:本文中的org.graylog2.plugin.ServerStatus類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。