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


Java VirtualNetworkFunctionRecord.setName方法代码示例

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


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

示例1: createVirtualNetworkFunctionRecord

import org.openbaton.catalogue.mano.record.VirtualNetworkFunctionRecord; //导入方法依赖的package包/类
private VirtualNetworkFunctionRecord createVirtualNetworkFunctionRecord() {
  VirtualNetworkFunctionRecord virtualNetworkFunctionRecord = new VirtualNetworkFunctionRecord();
  virtualNetworkFunctionRecord.setMonitoring_parameter(
      new HashSet<String>() {
        {
          add("monitor1");
          add("monitor2");
          add("monitor3");
        }
      });
  VNFDeploymentFlavour vdf = new VNFDeploymentFlavour();
  vdf.setExtId("mocked_vdu_ext_id");
  vdf.setFlavour_key("m1.tiny");
  virtualNetworkFunctionRecord.setName("mocked_vnfr");
  virtualNetworkFunctionRecord.setDeployment_flavour_key(vdf.getFlavour_key());
  virtualNetworkFunctionRecord.setVdu(new HashSet<VirtualDeploymentUnit>());
  BaseVimInstance vimInstance = createVimInstance();
  for (int i = 1; i <= 3; i++) {
    virtualNetworkFunctionRecord.getVdu().add(createVDU(i, vimInstance));
  }
  return virtualNetworkFunctionRecord;
}
 
开发者ID:openbaton,项目名称:NFVO,代码行数:23,代码来源:VNFLifecycleOperationGrantingClassSuiteTest.java

示例2: createVNFDependency

import org.openbaton.catalogue.mano.record.VirtualNetworkFunctionRecord; //导入方法依赖的package包/类
private VNFRecordDependency createVNFDependency() {
  VirtualNetworkFunctionRecord source = new VirtualNetworkFunctionRecord();
  source.setName("vnf-dummy-2");

  VirtualNetworkFunctionRecord target = new VirtualNetworkFunctionRecord();
  target.setName("vnf-dummy-1");

  return new VNFRecordDependency();
}
 
开发者ID:openbaton,项目名称:openbaton-client,代码行数:10,代码来源:SdkTest.java

示例3: createVNFR

import org.openbaton.catalogue.mano.record.VirtualNetworkFunctionRecord; //导入方法依赖的package包/类
private VirtualNetworkFunctionRecord createVNFR() {
  VirtualNetworkFunctionRecord vnfr = new VirtualNetworkFunctionRecord();
  vnfr.setName("testVnfr");
  vnfr.setStatus(Status.INITIALIZED);
  vnfr.setAudit_log("audit_log");
  vnfr.setDescriptor_reference("test_dr");
  VNFDeploymentFlavour deployment_flavour = new VNFDeploymentFlavour();
  deployment_flavour.setFlavour_key("m1.small");
  vnfr.setDeployment_flavour_key("m1.small");
  return vnfr;
}
 
开发者ID:openbaton,项目名称:NFVO,代码行数:12,代码来源:VimTestSuiteClass.java

示例4: createNetworkServiceRecord

import org.openbaton.catalogue.mano.record.VirtualNetworkFunctionRecord; //导入方法依赖的package包/类
private NetworkServiceRecord createNetworkServiceRecord() {
  final NetworkServiceRecord nsr = new NetworkServiceRecord();
  nsr.setVendor("FOKUS");
  nsr.setProjectId(projectId);
  nsr.setStatus(Status.ACTIVE);
  nsr.setMonitoring_parameter(new HashSet<String>());
  nsr.getMonitoring_parameter().add("monitor1");
  nsr.getMonitoring_parameter().add("monitor2");
  nsr.getMonitoring_parameter().add("monitor3");
  HashSet<VirtualNetworkFunctionRecord> virtualNetworkFunctionRecords = new HashSet<>();
  VirtualNetworkFunctionRecord virtualNetworkFunctionRecord = new VirtualNetworkFunctionRecord();
  virtualNetworkFunctionRecord.setName("mocked_vnfr_name");
  virtualNetworkFunctionRecord.setType("test");
  virtualNetworkFunctionRecord.setMonitoring_parameter(
      new HashSet<String>() {
        {
          add("monitor1");
          add("monitor2");
          add("monitor3");
        }
      });
  VNFDeploymentFlavour vdf = new VNFDeploymentFlavour();
  vdf.setExtId("ext_id");
  vdf.setFlavour_key("flavor_name");
  virtualNetworkFunctionRecord.setDeployment_flavour_key(vdf.getFlavour_key());
  virtualNetworkFunctionRecord.setVdu(
      new HashSet<VirtualDeploymentUnit>() {
        {
          VirtualDeploymentUnit vdu = new VirtualDeploymentUnit();
          HighAvailability highAvailability = new HighAvailability();
          highAvailability.setRedundancyScheme("1:N");
          highAvailability.setResiliencyLevel(ResiliencyLevel.ACTIVE_STANDBY_STATELESS);
          vdu.setHigh_availability(highAvailability);
          vdu.setVm_image(
              new HashSet<String>() {
                {
                  add("mocked_image");
                }
              });
          vdu.setComputation_requirement("high_requirements");
          vdu.setVnfc(new HashSet<VNFComponent>());
          vdu.setVnfc_instance(new HashSet<VNFCInstance>());
          vdu.setLifecycle_event(new HashSet<LifecycleEvent>());
          vdu.setMonitoring_parameter(
              new HashSet<String>() {
                {
                  add("monitor1");
                  add("monitor2");
                  add("monitor3");
                }
              });
          BaseVimInstance vimInstance = new OpenstackVimInstance();
          vimInstance.setName("vim_instance");
          vimInstance.setType("test");
          add(vdu);
        }
      });
  virtualNetworkFunctionRecords.add(virtualNetworkFunctionRecord);
  nsr.setVnfr(virtualNetworkFunctionRecords);
  return nsr;
}
 
开发者ID:openbaton,项目名称:NFVO,代码行数:62,代码来源:NetworkServiceRecordManagementClassSuiteTest.java


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