本文整理汇总了Java中org.osc.sdk.manager.element.ApplianceBootstrapInformationElement类的典型用法代码示例。如果您正苦于以下问题:Java ApplianceBootstrapInformationElement类的具体用法?Java ApplianceBootstrapInformationElement怎么用?Java ApplianceBootstrapInformationElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ApplianceBootstrapInformationElement类属于org.osc.sdk.manager.element包,在下文中一共展示了ApplianceBootstrapInformationElement类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateBootstrapInfo
import org.osc.sdk.manager.element.ApplianceBootstrapInformationElement; //导入依赖的package包/类
private ApplianceBootstrapInformationElement generateBootstrapInfo(final VirtualSystem vs,
final String applianceName) throws Exception {
try (ManagerDeviceApi deviceApi = this.apiFactoryService.createManagerDeviceApi(vs)) {
Map<String, String> bootstrapProperties = vs.getApplianceSoftwareVersion().getConfigProperties();
return deviceApi
.getBootstrapinfo(new ApplianceBootStrap(applianceName, ImmutableMap.copyOf(bootstrapProperties)));
}
}
示例2: getBootstrapinfo
import org.osc.sdk.manager.element.ApplianceBootstrapInformationElement; //导入依赖的package包/类
@Override
public ApplianceBootstrapInformationElement getBootstrapinfo(BootStrapInfoProviderElement bootStrapInfo) {
return () -> new ArrayList<BootstrapFileElement>();
}
示例3: getBootstrapinfo
import org.osc.sdk.manager.element.ApplianceBootstrapInformationElement; //导入依赖的package包/类
/**
* Returns the bootstrap information needed to start up the appliance.
* <p>
* The implementor is free to add any other extra data to the bootstrap information based on what the appliance needs.
* <p>
* For OpenStack, the content will be available as a config drive under /MOUNT_POINT/openstack/content/0000
* <p>
* This is useful, for example, for inserting SSH keys, setting configuration files, or storing data that you
* want to retrieve from within the instance itself. It is intended to provide a minimal amount of launch-time
* personalization.
*
* @param bootStrapInfo the bootstrap data provided by OSC to the plugin,
* the plugin may choose to augment this data.
* @return the appliance bootstrap information
*/
ApplianceBootstrapInformationElement getBootstrapinfo(BootStrapInfoProviderElement bootStrapInfo);