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


Java ServiceInstance.getServiceInstanceId方法代码示例

本文整理汇总了Java中org.cloudfoundry.community.servicebroker.model.ServiceInstance.getServiceInstanceId方法的典型用法代码示例。如果您正苦于以下问题:Java ServiceInstance.getServiceInstanceId方法的具体用法?Java ServiceInstance.getServiceInstanceId怎么用?Java ServiceInstance.getServiceInstanceId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.cloudfoundry.community.servicebroker.model.ServiceInstance的用法示例。


在下文中一共展示了ServiceInstance.getServiceInstanceId方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: generateOauthRegServiceInstance

import org.cloudfoundry.community.servicebroker.model.ServiceInstance; //导入方法依赖的package包/类
private OauthRegServiceInstance generateOauthRegServiceInstance(ServiceInstance serviceInstance) {
    return new OauthRegServiceInstance(
            serviceInstance.getServiceInstanceId(),
            serviceInstance.getPlanId(),
            serviceInstance.getOrganizationGuid(),
            serviceInstance.getSpaceGuid(),
            serviceInstance.getDashboardUrl()
    );
}
 
开发者ID:cloudfoundry-community,项目名称:oauth-register-broker,代码行数:10,代码来源:OauthRegInstanceService.java

示例2: createServiceInstance

import org.cloudfoundry.community.servicebroker.model.ServiceInstance; //导入方法依赖的package包/类
@Override
public ServiceInstance createServiceInstance(CreateServiceInstanceRequest request)
    throws ServiceInstanceExistsException, ServiceBrokerException {

  ServiceInstance serviceInstance = super.createServiceInstance(request);
  String instanceId = serviceInstance.getServiceInstanceId();

  new Thread(new ProvisioningJob(h2oProvisioner, credentialsStore, instanceId)).start();

  return serviceInstance;
}
 
开发者ID:trustedanalytics,项目名称:h2o-broker,代码行数:12,代码来源:H2oServiceInstanceService.java

示例3: deleteServiceInstance

import org.cloudfoundry.community.servicebroker.model.ServiceInstance; //导入方法依赖的package包/类
@Override
public ServiceInstance deleteServiceInstance(DeleteServiceInstanceRequest request)
    throws ServiceBrokerException {
  ServiceInstance serviceInstance = super.deleteServiceInstance(request);
  String serviceInstanceId = serviceInstance.getServiceInstanceId();

  String killedJob = h2oProvisioner.deprovisionInstance(serviceInstanceId);
  LOGGER.info("Killed YARN job: " + killedJob + " for H2O instance " + serviceInstanceId
      + ". H2O deleted.");
  return serviceInstance;
}
 
开发者ID:trustedanalytics,项目名称:h2o-broker,代码行数:12,代码来源:H2oServiceInstanceService.java

示例4: getExpectedOutputCredentialsMap

import org.cloudfoundry.community.servicebroker.model.ServiceInstance; //导入方法依赖的package包/类
@Override //%{organization} variable shouldn't be replaced in this plan
ImmutableMap<String, Object> getExpectedOutputCredentialsMap(ServiceInstance serviceInstance) {
  String instanceId = serviceInstance.getServiceInstanceId();
  //@formatter:off
  return ImmutableMap.of(
      "key1", ImmutableMap.of(
          "innerKey1", "innerValue1",
          "innerKey2", "innerValue2"
      ),
      "key2", "value2",
      "fs.defaultFS", "hdfs://name1",
      "uri", "hdfs://name1/org/%{organization}/userspace/" + instanceId + "/"
  );
  //@formatter:on
}
 
开发者ID:trustedanalytics,项目名称:hdfs-broker,代码行数:16,代码来源:HdfsPlanMultitenantTest.java

示例5: getExpectedOutputCredentialsMap

import org.cloudfoundry.community.servicebroker.model.ServiceInstance; //导入方法依赖的package包/类
ImmutableMap<String, Object> getExpectedOutputCredentialsMap(ServiceInstance serviceInstance) {
  String orgId = serviceInstance.getOrganizationGuid();
  String instanceId = serviceInstance.getServiceInstanceId();
  //@formatter:off
  return ImmutableMap.of(
      "key1", ImmutableMap.of(
          "innerKey1", "innerValue1",
          "innerKey2", "innerValue2"
      ),
      "key2", "value2",
      "fs.defaultFS", "hdfs://name1",
      "uri", "hdfs://name1/org/" + orgId + "/userspace/" + instanceId + "/"
  );
  //@formatter:on
}
 
开发者ID:trustedanalytics,项目名称:hdfs-broker,代码行数:16,代码来源:HdfsPlanTestBase.java

示例6: getDirectoryPathToProvision

import org.cloudfoundry.community.servicebroker.model.ServiceInstance; //导入方法依赖的package包/类
String getDirectoryPathToProvision(ServiceInstance serviceInstance) {
  String orgId = serviceInstance.getOrganizationGuid();
  String instanceId = serviceInstance.getServiceInstanceId();
  return "/org/" + orgId + "/userspace/" + instanceId;
}
 
开发者ID:trustedanalytics,项目名称:hdfs-broker,代码行数:6,代码来源:HdfsPlanTestBase.java


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