当前位置: 首页>>代码示例>>Java>>正文


Java TenantAwareHttpClient类代码示例

本文整理汇总了Java中com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient的典型用法代码示例。如果您正苦于以下问题:Java TenantAwareHttpClient类的具体用法?Java TenantAwareHttpClient怎么用?Java TenantAwareHttpClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TenantAwareHttpClient类属于com.jivesoftware.os.routing.bird.http.client包,在下文中一共展示了TenantAwareHttpClient类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initialize

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
MiruStumptownIntakeService initialize(boolean enabled,
    MiruStumptownIntakeConfig config,
    StumptownSchemaService stumptownSchemaService,
    LogMill logMill,
    ObjectMapper activityMapper,
    TenantAwareHttpClient<String> miruWriters,
    MiruStumptownPayloadStorage payloadStorage) {

    return new MiruStumptownIntakeService(enabled,
        stumptownSchemaService,
        logMill,
        config.getMiruIngressEndpoint(),
        activityMapper,
        miruWriters,
        payloadStorage);
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:17,代码来源:MiruStumptownIntakeInitializer.java

示例2: StumptownQueryPluginRegion

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
public StumptownQueryPluginRegion(String template,
    String logEventTemplate,
    String noEventsTemplate,
    MiruSoyRenderer renderer,
    TenantAwareHttpClient<String> readerClient,
    ObjectMapper requestMapper,
    HttpResponseMapper responseMapper,
    MiruStumptownPayloadStorage payloads) {

    this.template = template;
    this.logEventTemplate = logEventTemplate;
    this.noEventsTemplate = noEventsTemplate;
    this.renderer = renderer;
    this.readerClient = readerClient;
    this.requestMapper = requestMapper;
    this.responseMapper = responseMapper;
    this.payloads = payloads;
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:19,代码来源:StumptownQueryPluginRegion.java

示例3: HttpMiruMetricSampler

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
public HttpMiruMetricSampler(String datacenter,
    String cluster,
    String host,
    String service,
    String instance,
    String version,
    TenantAwareHttpClient<String> client,
    int sampleIntervalInMillis,
    boolean tenantLevelMetricsEnable,
    boolean jvmMetricsEnabled) {
    this.datacenter = datacenter;
    this.host = host;
    this.service = service;
    this.instance = instance;
    this.version = version;
    this.client = client;
    this.cluster = cluster;
    this.sampleIntervalInMillis = sampleIntervalInMillis;
    this.tenantLevelMetricsEnable = tenantLevelMetricsEnable;
    this.jvmMetricsEnabled = jvmMetricsEnabled;
    if (this.jvmMetricsEnabled) {
        this.jvmMetrics = new JVMMetrics();
    } else {
        this.jvmMetrics = null;
    }
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:27,代码来源:HttpMiruMetricSampler.java

示例4: RoutingBirdRealtimeDelivery

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
public RoutingBirdRealtimeDelivery(MiruHost miruHost,
    TenantAwareHttpClient<String> deliveryClient,
    String deliveryEndpoint,
    ObjectMapper objectMapper, MiruStats miruStats,
    TimestampedOrderIdProvider orderIdProvider,
    long dropRealtimeDeliveryOlderThanNMillis,
    ExecutorService tasExecutors,
    int tasWindowSize,
    float tasPercentile,
    long tasInitialSLAMillis) {

    this.miruHost = miruHost;
    this.deliveryClient = deliveryClient;
    this.tasExecutors = tasExecutors;
    this.tasWindowSize = tasWindowSize;
    this.tasPercentile = tasPercentile;
    this.deliveryEndpoint = deliveryEndpoint;
    this.objectMapper = objectMapper;
    this.miruStats = miruStats;
    this.orderIdProvider = orderIdProvider;
    this.dropRealtimeDeliveryOlderThanNMillis = dropRealtimeDeliveryOlderThanNMillis;
    this.tasInitialSLAMillis = tasInitialSLAMillis;
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:24,代码来源:RoutingBirdRealtimeDelivery.java

示例5: AmzaHttpWALClient

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
public AmzaHttpWALClient(String routingTenantId,
    TenantAwareHttpClient<String> walClient,
    ExecutorService tasExecutors,
    int tasWindowSize,
    float tasPercentile,
    long tasInitialSLAMillis,
    ObjectMapper requestMapper,
    HttpResponseMapper responseMapper,
    SickThreads sickThreads, long sleepOnFailureMillis) {

    this.routingTenantId = routingTenantId;
    this.walClient = walClient;
    this.tasExecutors = tasExecutors;
    this.tasWindowSize = tasWindowSize;
    this.tasPercentile = tasPercentile;
    this.tasInitialSLAMillis = tasInitialSLAMillis;
    this.requestMapper = requestMapper;
    this.responseMapper = responseMapper;
    this.sickThreads = sickThreads;
    this.sleepOnFailureMillis = sleepOnFailureMillis;
    this.tenantRoutingCache = CacheBuilder.newBuilder()
        .maximumSize(50_000) //TODO config
        .expireAfterWrite(5, TimeUnit.MINUTES) //TODO config
        .build();
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:26,代码来源:AmzaHttpWALClient.java

示例6: RCVSHttpWALClient

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
public RCVSHttpWALClient(String routingTenantId,
    TenantAwareHttpClient<String> walClient,
    ExecutorService tasExecutors,
    int tasWindowSize,
    float tasPercentile,
    long tasInitialSLAMillis,
    ObjectMapper requestMapper,
    HttpResponseMapper responseMapper,
    SickThreads sickThreads,
    long sleepOnFailureMillis) {

    this.routingTenantId = routingTenantId;
    this.walClient = walClient;
    this.tasExecutors = tasExecutors;
    this.tasWindowSize = tasWindowSize;
    this.tasPercentile = tasPercentile;
    this.tasInitialSLAMillis = tasInitialSLAMillis;
    this.requestMapper = requestMapper;
    this.responseMapper = responseMapper;
    this.sickThreads = sickThreads;
    this.sleepOnFailureMillis = sleepOnFailureMillis;
    this.tenantRoutingCache = CacheBuilder.newBuilder()
        .maximumSize(50_000) //TODO config
        .expireAfterWrite(5, TimeUnit.MINUTES) //TODO config
        .build();
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:27,代码来源:RCVSHttpWALClient.java

示例7: initialize

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
public RCVSHttpWALClient initialize(String routingTenantId,
    TenantAwareHttpClient<String> client,
    ExecutorService tasExecutors,
    int tasWindowSize,
    float tasPercentile,
    long tasInitialSLAMillis,
    ObjectMapper mapper,
    SickThreads sickThreads,
    long sleepOnFailureMillis) throws Exception {

    return new RCVSHttpWALClient(routingTenantId,
        client,
        tasExecutors,
        tasWindowSize,
        tasPercentile,
        tasInitialSLAMillis,
        mapper,
        new HttpResponseMapper(mapper),
        sickThreads,
        sleepOnFailureMillis);
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:22,代码来源:RCVSWALClientInitializer.java

示例8: initialize

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
public AmzaHttpWALClient initialize(String routingTenantId,
    TenantAwareHttpClient<String> client,
    ExecutorService tasExecutors,
    int tasWindowSize,
    float tasPercentile,
    long tasInitialSLAMillis,
    ObjectMapper mapper,
    SickThreads sickThreads,
    long sleepOnFailureMillis) throws Exception {

    return new AmzaHttpWALClient(routingTenantId,
        client,
        tasExecutors,
        tasWindowSize,
        tasPercentile,
        tasInitialSLAMillis,
        mapper,
        new HttpResponseMapper(mapper),
        sickThreads,
        sleepOnFailureMillis);
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:22,代码来源:AmzaWALClientInitializer.java

示例9: MiruQueryTASRouting

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
public MiruQueryTASRouting(
    TenantAwareHttpClient<String> readerClient,
    ObjectMapper requestMapper,
    HttpResponseMapper responseMapper,
    Executor executor,
    int windowSize,
    float percentile,
    long initialSLAMillis,
    MiruQueryEvent queryEvent) {

    this.readerClient = readerClient;
    this.requestMapper = requestMapper;
    this.responseMapper = responseMapper;

    this.executor = executor;
    this.windowSize = windowSize;
    this.percentile = percentile;
    this.initialSLAMillis = initialSLAMillis;
    this.queryEvent = queryEvent;
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:21,代码来源:MiruQueryTASRouting.java

示例10: StrutModelCache

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
public StrutModelCache(TenantAwareHttpClient<String> catwalkClient,
    ExecutorService tasExecutors,
    int tasWindowSize,
    float tasPercentile,
    long tasInitialSLAMillis,
    ObjectMapper requestMapper,
    HttpResponseMapper responseMapper,
    Cache<String, byte[]> modelCache) {

    this.catwalkClient = catwalkClient;
    this.tasExecutors = tasExecutors;
    this.tasWindowSize = tasWindowSize;
    this.tasPercentile = tasPercentile;
    this.tasInitialSLAMillis = tasInitialSLAMillis;
    this.requestMapper = requestMapper;
    this.responseMapper = responseMapper;
    this.modelCache = modelCache;
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:19,代码来源:StrutModelCache.java

示例11: initialize

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
MiruBotDistinctsService initialize(MiruBotConfig miruBotConfig,
    MiruBotDistinctsConfig miruBotDistinctsConfig,
    OrderIdProvider orderIdProvider,
    MiruBotSchemaService miruBotSchemaService,
    TenantAwareHttpClient<String> miruReader,
    TenantAwareHttpClient<String> miruWriter) {
    return new MiruBotDistinctsService(
        miruBotConfig.getMiruIngressEndpoint(),
        miruBotDistinctsConfig,
        orderIdProvider,
        miruBotSchemaService,
        miruReader,
        miruWriter);
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:15,代码来源:MiruBotDistinctsInitializer.java

示例12: MiruBotDistinctsWorker

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
MiruBotDistinctsWorker(String miruIngressEndpoint,
    MiruBotDistinctsConfig miruBotDistinctsConfig,
    OrderIdProvider orderIdProvider,
    MiruBotSchemaService miruBotSchemaService,
    TenantAwareHttpClient<String> miruReaderClient,
    TenantAwareHttpClient<String> miruWriterClient) {
    this.miruIngressEndpoint = miruIngressEndpoint;
    this.miruBotDistinctsConfig = miruBotDistinctsConfig;
    this.orderIdProvider = orderIdProvider;
    this.miruBotSchemaService = miruBotSchemaService;
    this.miruReaderClient = miruReaderClient;
    this.miruWriterClient = miruWriterClient;
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:14,代码来源:MiruBotDistinctsWorker.java

示例13: MiruBotDistinctsService

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
MiruBotDistinctsService(String miruIngressEndpoint,
    MiruBotDistinctsConfig miruBotDistinctsConfig,
    OrderIdProvider orderIdProvider,
    MiruBotSchemaService miruBotSchemaService,
    TenantAwareHttpClient<String> miruClientReader,
    TenantAwareHttpClient<String> miruClientWriter) {
    this.miruIngressEndpoint = miruIngressEndpoint;
    this.miruBotDistinctsConfig = miruBotDistinctsConfig;
    this.orderIdProvider = orderIdProvider;
    this.miruBotSchemaService = miruBotSchemaService;
    this.miruClientReader = miruClientReader;
    this.miruClientWriter = miruClientWriter;
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:14,代码来源:MiruBotDistinctsService.java

示例14: initialize

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
MiruBotUniquesService initialize(MiruBotConfig miruBotConfig,
    MiruBotUniquesConfig miruBotUniquesConfig,
    OrderIdProvider orderIdProvider,
    MiruBotSchemaService miruBotSchemaService,
    TenantAwareHttpClient<String> miruReader,
    TenantAwareHttpClient<String> miruWriter) {
    return new MiruBotUniquesService(
        miruBotConfig.getMiruIngressEndpoint(),
        miruBotUniquesConfig,
        orderIdProvider,
        miruBotSchemaService,
        miruReader,
        miruWriter);
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:15,代码来源:MiruBotUniquesInitializer.java

示例15: StatedMiruValueWriter

import com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient; //导入依赖的package包/类
StatedMiruValueWriter(String endpoint,
    MiruBotDistinctsConfig config,
    TenantAwareHttpClient<String> client,
    OrderIdProvider order) {
    this.endpoint = endpoint;
    this.config = config;
    this.client = client;
    this.order = order;
}
 
开发者ID:jivesoftware,项目名称:miru,代码行数:10,代码来源:StatedMiruValueWriter.java


注:本文中的com.jivesoftware.os.routing.bird.http.client.TenantAwareHttpClient类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。