本文整理汇总了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");
}
示例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");
}
示例3: getConnectorServiceProvider
import com.exorath.service.commons.tableNameProvider.TableNameProvider; //导入依赖的package包/类
private ConnectorServiceProvider getConnectorServiceProvider() {
return new ConnectorServiceProvider(new ConnectorServiceAPI(TableNameProvider.getEnvironmentTableNameProvider("CONNECTOR_SERVICE_ADDRESS").getTableName()));
}
示例4: getKubernetesClient
import com.exorath.service.commons.tableNameProvider.TableNameProvider; //导入依赖的package包/类
private KubernetesClient getKubernetesClient() {
return new DefaultKubernetesClient(TableNameProvider.getEnvironmentTableNameProvider("KUBERNETES_ADDRESS").getTableName());
}
示例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());
}