本文整理汇总了Java中com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider类的典型用法代码示例。如果您正苦于以下问题:Java TenantRoutingProvider类的具体用法?Java TenantRoutingProvider怎么用?Java TenantRoutingProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TenantRoutingProvider类属于com.jivesoftware.os.routing.bird.shared包,在下文中一共展示了TenantRoutingProvider类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public MiruSyncUIService initialize(String cluster,
int instance,
MiruSoyRenderer renderer,
MiruSyncSenders<?, ?> syncSenders,
MiruStats miruStats,
TenantRoutingProvider tenantRoutingProvider,
ObjectMapper mapper)
throws Exception {
return new MiruSyncUIService(
renderer,
new MiruHeaderRegion(cluster, instance, "soy.miru.chrome.headerRegion", renderer, tenantRoutingProvider),
new MiruAdminRegion("soy.miru.page.adminRegion", renderer, miruStats),
new MiruStatusRegion("soy.miru.page.statusRegion", renderer,
new MiruStatusFocusRegion("soy.miru.page.statusFocusRegion", renderer, syncSenders, mapper), syncSenders));
}
示例2: initialize
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public MiruWALUIService initialize(String cluster,
int instance,
MiruSoyRenderer renderer,
AmzaWALUtil amzaWALUtil,
TenantRoutingProvider tenantRoutingProvider,
MiruWALClient<?, ?> miruWALClient,
MiruWALDirector miruWALDirector,
MiruWALClient<RCVSCursor, RCVSSipCursor> rcvsWALClient,
MiruWALClient<AmzaCursor, AmzaSipCursor> amzaWALClient,
MiruActivityWALReader activityWALReader,
MiruStats miruStats)
throws Exception {
return new MiruWALUIService(
renderer,
new MiruHeaderRegion(cluster, instance, "soy.miru.chrome.headerRegion", renderer, tenantRoutingProvider),
new MiruAdminRegion("soy.miru.page.adminRegion", renderer, miruStats),
new MiruActivityWALRegion("soy.miru.page.activityWalRegion", renderer, amzaWALUtil, rcvsWALClient, amzaWALClient),
new MiruReadWALRegion("soy.miru.page.readWalRegion", renderer, rcvsWALClient), //TODO amza
new MiruRepairRegion("soy.miru.page.repairRegion", renderer, activityWALReader, miruWALClient),
new MiruCleanupRegion("soy.miru.page.cleanupRegion", renderer, miruWALClient, miruWALDirector));
}
示例3: initialize
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public MiruManageService initialize(String cluster,
int instance,
MiruSoyRenderer renderer,
MiruClusterRegistry clusterRegistry,
MiruWALClient miruWALClient,
MiruStats stats,
TenantRoutingProvider tenantRoutingProvider,
ObjectMapper mapper)
throws Exception {
return new MiruManageService(
renderer,
new MiruHeaderRegion(cluster, instance, "soy.miru.chrome.headerRegion", renderer, tenantRoutingProvider),
new MiruAdminRegion("soy.miru.page.adminRegion", renderer, stats),
new MiruHostsRegion("soy.miru.page.hostsRegion", renderer, clusterRegistry,
new MiruHostEntryRegion("soy.miru.section.hostEntryRegion", renderer),
new MiruHostFocusRegion("soy.miru.section.hostFocusRegion", renderer, clusterRegistry)),
new MiruBalancerRegion("soy.miru.page.balancerRegion", renderer, clusterRegistry, miruWALClient),
new MiruSchemaRegion("soy.miru.page.schemaRegion", renderer, clusterRegistry, miruWALClient, mapper),
new MiruTenantsRegion("soy.miru.page.tenantsRegion", renderer,
new MiruTenantEntryRegion("soy.miru.section.tenantEntryRegion", renderer, clusterRegistry, miruWALClient)));
}
示例4: initialize
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public MiruReaderUIService initialize(String cluster,
int instance,
MiruSoyRenderer renderer,
MiruStats miruStats,
MiruService service,
PartitionErrorTracker partitionErrorTracker,
TenantRoutingProvider tenantRoutingProvider,
LABStats rebuild,
LABStats global) throws Exception {
return new MiruReaderUIService(
renderer,
new MiruHeaderRegion(cluster, instance, "soy.miru.chrome.headerRegion", renderer, tenantRoutingProvider),
new MiruAdminRegion("soy.miru.page.adminRegion", renderer, miruStats),
new MiruPartitionsRegion("soy.miru.page.partitionsRegion", renderer, service),
new MiruErrorsRegion("soy.miru.page.errorsRegion", renderer, service, partitionErrorTracker),
new MiruLABStatsRegion("soy.miru.page.labStatsRegion", renderer, rebuild, global));
}
示例5: MiruHeaderRegion
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public MiruHeaderRegion(String cluster,
int instance,
String template,
MiruSoyRenderer renderer,
TenantRoutingProvider tenantRoutingProvider) {
super(tenantRoutingProvider);
this.cluster = cluster;
this.instance = instance;
this.template = template;
this.renderer = renderer;
}
示例6: initialize
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public MiruWriterUIService initialize(String cluster,
int instance,
MiruSoyRenderer renderer,
MiruStats miruStats,
TenantRoutingProvider tenantRoutingProvider)
throws Exception {
return new MiruWriterUIService(
renderer,
new MiruHeaderRegion(cluster, instance, "soy.miru.chrome.headerRegion", renderer, tenantRoutingProvider),
new MiruAdminRegion("soy.miru.page.adminRegion", renderer, miruStats));
}
示例7: initialize
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public MiruToolsService initialize(MiruStats miruStats,
String cluster,
int instance,
MiruSoyRenderer renderer,
TenantRoutingProvider tenantRoutingProvider) throws Exception {
return new MiruToolsService(
renderer,
new MiruHeaderRegion(cluster, instance, "soy.miru.chrome.headerRegion", renderer, tenantRoutingProvider),
new MiruAdminRegion("soy.miru.page.adminRegion", renderer, miruStats));
}
示例8: initialize
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public MiruCatwalkUIService initialize(String cluster,
int instance,
MiruSoyRenderer renderer,
MiruStats stats,
TenantRoutingProvider tenantRoutingProvider,
CatwalkModelService catwalkModelService)
throws Exception {
return new MiruCatwalkUIService(
renderer,
new MiruHeaderRegion(cluster, instance, "soy.miru.chrome.headerRegion", renderer, tenantRoutingProvider),
new MiruAdminRegion("soy.miru.page.adminRegion", renderer, stats),
new MiruInspectRegion("soy.miru.page.inspectRegion", renderer, catwalkModelService));
}
示例9: run
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
@Override
public void run() {
try {
TenantRoutingProvider tenantRoutingProvider = deployable.getTenantRoutingProvider();
TenantsServiceConnectionDescriptorProvider connections = tenantRoutingProvider.getConnections(serviceName, "main", discoveryIntervalMillis);
ConnectionDescriptors selfConnections = connections.getConnections("");
for (ConnectionDescriptor connectionDescriptor : selfConnections.getConnectionDescriptors()) {
InstanceDescriptor routingInstanceDescriptor = connectionDescriptor.getInstanceDescriptor();
RingMember routingRingMember = new RingMember(
Strings.padStart(String.valueOf(routingInstanceDescriptor.instanceName), 5, '0') + "_" + routingInstanceDescriptor.instanceKey);
if (!blacklistRingMembers.contains(routingRingMember)) {
HostPort hostPort = connectionDescriptor.getHostPort();
InstanceDescriptor instanceDescriptor = connectionDescriptor.getInstanceDescriptor();
AmzaRingStoreWriter ringWriter = amzaService.getRingWriter();
ringWriter.register(routingRingMember,
new RingHost(instanceDescriptor.datacenter,
instanceDescriptor.rack,
hostPort.getHost(),
hostPort.getPort()),
-1,
false);
}
}
systemRingSize.set(selfConnections.getConnectionDescriptors().size());
} catch (Exception x) {
LOG.warn("Failed while calling routing bird discovery.", x);
}
}
示例10: init
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
private void init(ConnectionDescriptorsProvider connectionsDescriptorProvider) throws Exception {
if (connectionsDescriptorProvider == null) {
TenantRoutingBirdProviderBuilder tenantRoutingBirdBuilder = new TenantRoutingBirdProviderBuilder(instanceConfig.getRoutesHost(),
instanceConfig.getRoutesPort(), instanceConfig.getRoutesPath());
connectionsDescriptorProvider = tenantRoutingBirdBuilder.build(null);
}
tenantRoutingProvider = new TenantRoutingProvider(connectionRefresh, instanceConfig.getInstanceKey(), connectionsDescriptorProvider);
String keyStorePassword = null;
String keyStorePath = "./certs/sslKeystore";
if (instanceConfig.getMainSslEnabled() || instanceConfig.getManageSslEnabled()) {
keyStorePassword = keyStorePassword(instanceConfig.getRoutesHost(), instanceConfig.getRoutesPort());
}
restfulManageServer = new RestfulManageServer(instanceConfig.getManageLoopback(),
instanceConfig.getManagePort(),
"server-manage-" + instanceConfig.getServiceName(),
instanceConfig.getManageSslEnabled(),
instanceConfig.getInstanceKey(),
keyStorePassword,
keyStorePath,
instanceConfig.getManageMaxThreads(),
instanceConfig.getManageMaxQueuedRequests());
if (instanceConfig.getManageServiceAuthEnabled()) {
DeployableManageAuthHealthCheckConfig authHealthCheckConfig = configBinder.bind(DeployableManageAuthHealthCheckConfig.class);
PercentileHealthChecker healthChecker = new PercentileHealthChecker(authHealthCheckConfig);
AuthValidationFilter authValidationFilter = new AuthValidationFilter(healthChecker);
authValidationFilter.addEvaluator(new NoAuthEvaluator(), "/manage/health");
authValidationFilter.addEvaluator(routeOAuth(), "/*");
authValidationFilter.addEvaluator(sessionAuth(), "/*");
authValidationFilter.dryRun(instanceConfig.getManageServiceAuthDryRun());
restfulManageServer.addContainerRequestFilter(authValidationFilter);
restfulManageServer.addHealthCheck(healthChecker);
}
restfulManageServer.addEndpoint(TenantRoutingRestEndpoints.class);
restfulManageServer.addInjectable(TenantRoutingProvider.class, tenantRoutingProvider);
restfulManageServer.addEndpoint(MainPropertiesEndpoints.class);
restfulManageServer.addInjectable(MainProperties.class, mainProperties);
jerseyEndpoints = new JerseyEndpoints();
restfulServer = new InitializeRestfulServer(false,
instanceConfig.getMainPort(),
"server-" + instanceConfig.getServiceName(),
instanceConfig.getMainSslEnabled(),
instanceConfig.getInstanceKey(),
keyStorePassword,
keyStorePath,
instanceConfig.getMainMaxThreads(),
instanceConfig.getMainMaxQueuedRequests());
}
示例11: getTenantRoutingProvider
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public TenantRoutingProvider getTenantRoutingProvider() {
return tenantRoutingProvider;
}
示例12: TenantRoutingRestEndpoints
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public TenantRoutingRestEndpoints(@Context TenantRoutingProvider tenantRoutingConnectionPoolProvider) {
this.routingProvider = tenantRoutingConnectionPoolProvider;
}
示例13: MiruHeaderRegionBase
import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //导入依赖的package包/类
public MiruHeaderRegionBase(TenantRoutingProvider tenantRoutingProvider) {
this.tenantRoutingProvider = tenantRoutingProvider;
}