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


Java TableNameProvider类代码示例

本文整理汇总了Java中com.exorath.service.commons.tableNameProvider.TableNameProvider的典型用法代码示例。如果您正苦于以下问题:Java TableNameProvider类的具体用法?Java TableNameProvider怎么用?Java TableNameProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: Main

import com.exorath.service.commons.tableNameProvider.TableNameProvider; //导入依赖的package包/类
public Main() {
    this.service = new MongoService(MongoProvider.getEnvironmentMongoProvider().getClient(), TableNameProvider.getEnvironmentTableNameProvider("DB_NAME").getTableName());
    this.kubernetesScaler = new KubernetesScaler(service, getKubernetesClient(), getConnectorServiceProvider());
    scheduler.scheduleAtFixedRate(kubernetesScaler, 0, 10, TimeUnit.SECONDS);
    LOG.info("Service " + this.service.getClass() + " instantiated");
    Transport.setup(service, PortProvider.getEnvironmentPortProvider());
    LOG.info("HTTP Transport initiated");
}
 
开发者ID:Exorath,项目名称:ServerScalingService,代码行数:9,代码来源:Main.java

示例2: Main

import com.exorath.service.commons.tableNameProvider.TableNameProvider; //导入依赖的package包/类
public Main() {
    DatabaseProvider databaseProvider = new MongoDatabaseProvider(MongoProvider.getEnvironmentMongoProvider().getClient(),
            TableNameProvider.getEnvironmentTableNameProvider("DB_NAME").getTableName(),
            TableNameProvider.getEnvironmentTableNameProvider("SERVERS_COL_NAME").getTableName());
    this.service = new SimpleService(databaseProvider, new ActionAPIServiceAPI(getActionAPIAddress()));
    LOG.info("Service " + this.service.getClass() + " instantiated");
    Transport.setup(service, PortProvider.getEnvironmentPortProvider());
    LOG.info("HTTP Transport initiated");
}
 
开发者ID:Exorath,项目名称:ConnectorService,代码行数:10,代码来源:Main.java

示例3: getConnectorServiceProvider

import com.exorath.service.commons.tableNameProvider.TableNameProvider; //导入依赖的package包/类
private ConnectorServiceProvider getConnectorServiceProvider() {
    return new ConnectorServiceProvider(new ConnectorServiceAPI(TableNameProvider.getEnvironmentTableNameProvider("CONNECTOR_SERVICE_ADDRESS").getTableName()));
}
 
开发者ID:Exorath,项目名称:ServerScalingService,代码行数:4,代码来源:Main.java

示例4: getKubernetesClient

import com.exorath.service.commons.tableNameProvider.TableNameProvider; //导入依赖的package包/类
private KubernetesClient getKubernetesClient() {
    return new DefaultKubernetesClient(TableNameProvider.getEnvironmentTableNameProvider("KUBERNETES_ADDRESS").getTableName());
}
 
开发者ID:Exorath,项目名称:ServerScalingService,代码行数:4,代码来源:Main.java

示例5: MongoDatabaseProvider

import com.exorath.service.commons.tableNameProvider.TableNameProvider; //导入依赖的package包/类
public MongoDatabaseProvider(MongoProvider provider, TableNameProvider databaseNameProvider, TableNameProvider collectionNameProvider) {
    this(provider.getClient(), databaseNameProvider.getTableName(), collectionNameProvider.getTableName());
}
 
开发者ID:Exorath,项目名称:ConnectorService,代码行数:4,代码来源:MongoDatabaseProvider.java


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