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


Java ApplianceBootstrapInformationElement类代码示例

本文整理汇总了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)));
    }
}
 
开发者ID:opensecuritycontroller,项目名称:osc-core,代码行数:11,代码来源:OsSvaServerCreateTask.java

示例2: getBootstrapinfo

import org.osc.sdk.manager.element.ApplianceBootstrapInformationElement; //导入依赖的package包/类
@Override
public ApplianceBootstrapInformationElement getBootstrapinfo(BootStrapInfoProviderElement bootStrapInfo) {
    return () -> new ArrayList<BootstrapFileElement>();
}
 
开发者ID:opensecuritycontroller,项目名称:security-mgr-sample-plugin,代码行数:5,代码来源:IsmDeviceApi.java

示例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);
 
开发者ID:opensecuritycontroller,项目名称:security-mgr-api,代码行数:17,代码来源:ManagerDeviceApi.java


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