本文整理汇总了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);
}
示例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;
}
示例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;
}
}
示例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;
}
示例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();
}
示例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();
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}