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


Java TenantRoutingProvider類代碼示例

本文整理匯總了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));
}
 
開發者ID:jivesoftware,項目名稱:miru,代碼行數:17,代碼來源:MiruSyncUIServiceInitializer.java

示例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));
}
 
開發者ID:jivesoftware,項目名稱:miru,代碼行數:23,代碼來源:MiruWALUIServiceInitializer.java

示例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)));
}
 
開發者ID:jivesoftware,項目名稱:miru,代碼行數:23,代碼來源:MiruManageInitializer.java

示例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));
}
 
開發者ID:jivesoftware,項目名稱:miru,代碼行數:19,代碼來源:MiruReaderUIInitializer.java

示例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;
}
 
開發者ID:jivesoftware,項目名稱:miru,代碼行數:13,代碼來源:MiruHeaderRegion.java

示例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));
}
 
開發者ID:jivesoftware,項目名稱:miru,代碼行數:13,代碼來源:MiruWriterUIServiceInitializer.java

示例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));
}
 
開發者ID:jivesoftware,項目名稱:miru,代碼行數:12,代碼來源:MiruToolsInitializer.java

示例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));
}
 
開發者ID:jivesoftware,項目名稱:miru,代碼行數:15,代碼來源:MiruCatwalkUIInitializer.java

示例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);
    }
}
 
開發者ID:jivesoftware,項目名稱:amza,代碼行數:31,代碼來源:RoutingBirdAmzaDiscovery.java

示例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());
}
 
開發者ID:jivesoftware,項目名稱:routing-bird,代碼行數:57,代碼來源:Deployable.java

示例11: getTenantRoutingProvider

import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //導入依賴的package包/類
public TenantRoutingProvider getTenantRoutingProvider() {
    return tenantRoutingProvider;
}
 
開發者ID:jivesoftware,項目名稱:routing-bird,代碼行數:4,代碼來源:Deployable.java

示例12: TenantRoutingRestEndpoints

import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //導入依賴的package包/類
public TenantRoutingRestEndpoints(@Context TenantRoutingProvider tenantRoutingConnectionPoolProvider) {
    this.routingProvider = tenantRoutingConnectionPoolProvider;
}
 
開發者ID:jivesoftware,項目名稱:routing-bird,代碼行數:4,代碼來源:TenantRoutingRestEndpoints.java

示例13: MiruHeaderRegionBase

import com.jivesoftware.os.routing.bird.shared.TenantRoutingProvider; //導入依賴的package包/類
public MiruHeaderRegionBase(TenantRoutingProvider tenantRoutingProvider) {
    this.tenantRoutingProvider = tenantRoutingProvider;
}
 
開發者ID:jivesoftware,項目名稱:miru,代碼行數:4,代碼來源:MiruHeaderRegionBase.java


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