本文整理汇总了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()
);
}
示例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;
}
示例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;
}
示例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
}
示例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
}
示例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;
}