本文整理汇总了Java中org.cloudfoundry.community.servicebroker.model.Catalog类的典型用法代码示例。如果您正苦于以下问题:Java Catalog类的具体用法?Java Catalog怎么用?Java Catalog使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Catalog类属于org.cloudfoundry.community.servicebroker.model包,在下文中一共展示了Catalog类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: catalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
public Catalog catalog() throws ScriptException, ParseException {
return new Catalog(Arrays.asList(
new ServiceDefinition(
this.serviceDefinitionId,
this.serviceDefinitionId,
"Dump and restore data from your database (db-dumper-service v" + version + ")",
true,
true,
this.getPlans(), //TODO: change it cause set to free
Arrays.asList("db-dumper-service", "dump", "restore"),
getServiceDefinitionMetadata(),
null,
this.getDashboardClient())));
}
开发者ID:orange-cloudfoundry,项目名称:db-dumper-service,代码行数:17,代码来源:CatalogConfig.java
示例2: catalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
public Catalog catalog() {
return new Catalog( Arrays.asList(
new ServiceDefinition(
"sentimentr",
"sentimentr",
"A sentiment analysis service based on stanford university nlp framework",
true,
false,
Arrays.asList(
new Plan("development",
"development",
"This is a developer sentimentr plan. Limited service quality.",
getDevelopmentPlanMetadata(), true),
new Plan("production",
"production",
"This is a production sentimentr plan. Best service quality.",
getProductionPlanMetadata())),
Arrays.asList("sentimentr", "uri"),
getServiceDefinitionMetadata(),
null,
null)));
}
开发者ID:dflick-pivotal,项目名称:sentimentr-release,代码行数:24,代码来源:CatalogConfig.java
示例3: catalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
public Catalog catalog() {
return new Catalog(Collections.singletonList(
new ServiceDefinition(
serviceDefinitionId,
serviceDefinitionId,
"Automatically register a Cloud Foundry app to an oauth2 provider",
true,
false,
this.getPlans(),
Arrays.asList("oauth", "sso"),
getServiceDefinitionMetadata(),
null,
this.getDashboardClient())));
}
开发者ID:cloudfoundry-community,项目名称:oauth-register-broker,代码行数:16,代码来源:CatalogConfig.java
示例4: catalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
Catalog catalog() {
List<Plan> plans = Collections.singletonList(new Plan("ftp-free", "ftp-free", "'Everybody gets an FTP!'",
Collections.singletonMap("plan-metadata", "plan-metadata-description"), true));
List<ServiceDefinition> serviceDefinitions = Collections.singletonList(
new ServiceDefinition("ftp", "ftp", "Apache Mina FTP", true, true, plans,
Collections.singletonList("ftp"),
Collections.emptyMap(),
Collections.emptyList(),
null));
return new Catalog(serviceDefinitions);
}
开发者ID:joshlong,项目名称:cloudfoundry-ftp-service-broker,代码行数:13,代码来源:Application.java
示例5: catalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
public Catalog catalog() {
return new Catalog(Arrays.asList(new ServiceDefinition(
serviceId,
serviceName,
serviceDescription,
true, //bindable
true, //plan updateable
plans(),
null, //tags
serviceDefinitionMetadata(),
requirements(),
null //dashboardClient
)));
}
开发者ID:trustedanalytics,项目名称:broker-store,代码行数:16,代码来源:CatalogConfig.java
示例6: catalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
public Catalog catalog() {
final String SERVICE_ID = configuration.getCfServiceId();
final String SERVICE_NAME = configuration.getCfServiceName();
final String DESCRIPTION = "A simple h2o broker";
final boolean BINDABLE = true;
final boolean UPDATEABLE = true;
final List<String> TAGS = Arrays.asList("data-science-tool");
final String SYSLOG_DRAIN = "syslog_drain";
final DashboardClient NO_DASHBOARD = null;
return new Catalog(Arrays.asList(new ServiceDefinition(SERVICE_ID, SERVICE_NAME, DESCRIPTION,
BINDABLE, UPDATEABLE, getSharedPlans(), TAGS, getServiceDefinitionMetadata(),
Arrays.asList(SYSLOG_DRAIN), NO_DASHBOARD)));
}
开发者ID:trustedanalytics,项目名称:h2o-broker,代码行数:16,代码来源:CatalogConfig.java
示例7: catalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
public Catalog catalog() {
return new Catalog(Arrays.asList(new ServiceDefinition("greenplum",
"greenplum", "Provides Greenplum DB connection strings", true, false,
Arrays.asList(new Plan("retail-demo", "retail-demo",
"This is retail-demo plan for test db on vShere EMEA env.",
getRetailDemoPlanMetadata(), true)),
Arrays.asList(
"greenplum", "uri"), getServiceDefinitionMetadata(),
null, null)));
}
开发者ID:Pivotal-Field-Engineering,项目名称:pcf-gpbroker-retailclient,代码行数:12,代码来源:CatalogConfig.java
示例8: setup
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Before
public void setup() {
serviceDefinition = new ServiceDefinition(SVC_DEF_ID, "Name", "Description", true, null);
List<ServiceDefinition> defs = new ArrayList<ServiceDefinition>();
defs.add(serviceDefinition);
catalog = new Catalog(defs);
service = new BeanCatalogService(catalog);
}
开发者ID:cloudfoundry-community,项目名称:spring-boot-cf-service-broker,代码行数:9,代码来源:BeanCatalogServiceTest.java
示例9: catalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
public Catalog catalog() throws IOException {
ServiceDefinition serviceDefinition = new ServiceDefinition("s3", "amazon-s3",
"Amazon S3 is storage for the Internet.", true, getPlans(), getTags(), getServiceDefinitionMetadata(),
Arrays.asList("syslog_drain"), null);
return new Catalog(Arrays.asList(serviceDefinition));
}
开发者ID:cloudfoundry-community,项目名称:s3-cf-service-broker,代码行数:8,代码来源:BrokerConfiguration.java
示例10: catalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
public Catalog catalog() {
return new Catalog(Collections.singletonList(postgresServiceDefinition));
}
开发者ID:krujos,项目名称:data-lifecycle-service-broker,代码行数:5,代码来源:LCCatalogConfig.java
示例11: catalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
public Catalog catalog() throws IOException {
ServiceDefinition serviceDefinition = new ServiceDefinition("pg", "PostgreSQL", "PostgreSQL on shared instance.",
true, false, getPlans(), getTags(), getServiceDefinitionMetadata(), Arrays.asList("syslog_drain"), null);
return new Catalog(Arrays.asList(serviceDefinition));
}
开发者ID:cloudfoundry-community,项目名称:postgresql-cf-service-broker,代码行数:7,代码来源:BrokerConfiguration.java
示例12: getCatalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@RequestMapping(value = BASE_PATH, method = RequestMethod.GET)
public @ResponseBody Catalog getCatalog() {
logger.debug("GET: " + BASE_PATH + ", getCatalog()");
return service.getCatalog();
}
开发者ID:cloudfoundry-community,项目名称:spring-boot-cf-service-broker,代码行数:6,代码来源:CatalogController.java
示例13: BeanCatalogService
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Autowired
public BeanCatalogService(Catalog catalog) {
this.catalog = catalog;
initializeMap();
}
开发者ID:cloudfoundry-community,项目名称:spring-boot-cf-service-broker,代码行数:6,代码来源:BeanCatalogService.java
示例14: getCatalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Override
public Catalog getCatalog() {
return catalog;
}
开发者ID:cloudfoundry-community,项目名称:spring-boot-cf-service-broker,代码行数:5,代码来源:BeanCatalogService.java
示例15: beanCatalogService
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(CatalogService.class)
public CatalogService beanCatalogService(Catalog catalog) {
return new BeanCatalogService(catalog);
}
开发者ID:cloudfoundry-community,项目名称:spring-boot-cf-service-broker,代码行数:6,代码来源:ServiceBrokerAutoConfiguration.java
示例16: getCatalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
public static Catalog getCatalog() {
return new Catalog(ServiceFixture.getAllServices());
}
开发者ID:cloudfoundry-community,项目名称:spring-boot-cf-service-broker,代码行数:4,代码来源:CatalogFixture.java
示例17: getCatalog
import org.cloudfoundry.community.servicebroker.model.Catalog; //导入依赖的package包/类
/**
* @return The catalog of services provided by this broker.
*/
Catalog getCatalog();
开发者ID:cloudfoundry-community,项目名称:spring-boot-cf-service-broker,代码行数:5,代码来源:CatalogService.java
注:本文中的org.cloudfoundry.community.servicebroker.model.Catalog类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论