Codota Logo
VNFPackageMetadata
Code IndexAdd Codota to your IDE (free)

How to use
VNFPackageMetadata
in
org.openbaton.catalogue.nfvo

Best Java code snippets using org.openbaton.catalogue.nfvo.VNFPackageMetadata (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: openbaton/NFVO

public boolean isOsIdAndVersionCompatible() {
 boolean result = false;
 if (getOsId() != null && getOsVersion() != null) {
  for (String supportedOsId : OS_ID_LIST) {
   if (supportedOsId.equals("Ubuntu")) {
    for (String supportedOsVersion : UBUNTU_VERSION_LIST)
     if (supportedOsVersion.equals(osVersion)) result = true;
   } else if (supportedOsId.equals("CentOs")) {
    for (String supportedOsVersion : CENTOS_VERSION_LIST)
     if (supportedOsVersion.equals(osVersion)) result = true;
   }
  }
 } else result = true;
 return result;
}
origin: openbaton/NFVO

public void addRepoConfigurationInfo(AdditionalRepoInfo additionalRepoInfo) {
 if (additionalRepoInfo == null) throw new NullPointerException("AdditionalRepoInfo is null");
 if (getAdditionalRepoInfoList() == null) {
  Set<AdditionalRepoInfo> additionalRepoInfoList = new HashSet<>();
  additionalRepoInfoList.add(additionalRepoInfo);
  setAdditionalRepoInfoList(additionalRepoInfoList);
 } else getAdditionalRepoInfoList().add(additionalRepoInfo);
}
origin: openbaton/NFVO

 String type)
 throws NotFoundException, IncompatibleVNFPackage {
VNFPackageMetadata vnfPackageMetadata = new VNFPackageMetadata();
vnfPackageMetadata.setName((String) metadata.get("name"));
vnfPackage.setName((String) metadata.get("name"));
vnfPackageMetadata.setVnfmType(endpoint);
vnfPackageMetadata.setProjectId(projectId);
vnfPackageMetadata.setType(type);
if (metadata.containsKey("nfvo-version")) {
 vnfPackageNFVOVersion = (String) metadata.get("nfvo-version");
vnfPackageMetadata.setNfvoVersion(vnfPackageNFVOVersion);
 vnfPackageMetadata.setVendor((String) metadata.get("vendor"));
} else {
 vnfPackageMetadata.setVendor((String) metadata.get("provider"));
 vnfPackageMetadata.setVersion(String.valueOf(metadata.get("version")));
} else {
 log.warn(
   "The VNF Package Metadata does not contain the field \"version\". Setting version 1.0 by default");
 vnfPackageMetadata.setVersion("1.0");
 vnfPackageMetadata.setVimTypes(vimTypes);
 vnfPackage.setVimTypes(vimTypes);
} else {
 LinkedHashSet<String> vimTypes = new LinkedHashSet<>();
 vnfPackageMetadata.setVimTypes(vimTypes);
origin: openbaton/NFVO

    vnfPackageMetadata.getName(),
    vnfPackageMetadata.getVendor(),
    vnfPackageMetadata.getVersion(),
    vnfPackageMetadata.getNfvoVersion(),
    vnfPackageMetadata.getVnfmType(),
    vnfPackageMetadata.getOsId(),
    vnfPackageMetadata.getOsVersion(),
    vnfPackageMetadata.getOsArchitecture(),
    vnfPackageMetadata.getTag(),
    projectId);
if (vnfPackageMetadataIterable != null && vnfPackageMetadataIterable.iterator().hasNext()) {
     + " was found onboarded on the same project.");
 String vnfPackageFatherId =
   vnfPackageMetadataIterable.iterator().next().getVnfPackageFatherId();
 String vnfId =
   vnfdRepository
     + packageRepositoryPort
     + "/api/v1/vnf-packages/"
     + vnfPackageMetadata.getId()
     + "/tar";
 VirtualNetworkFunctionDescriptor vnfd =
origin: openbaton/NFVO

    vnfPackageMetadata.getName(),
    vnfPackageMetadata.getVendor(),
    vnfPackageMetadata.getVersion(),
    vnfPackageMetadata.getNfvoVersion(),
    vnfPackageMetadata.getVnfmType(),
    vnfPackageMetadata.getOsId(),
    vnfPackageMetadata.getOsVersion(),
    vnfPackageMetadata.getOsArchitecture(),
    vnfPackageMetadata.getTag(),
    vnfPackageMetadata.getProjectId());
if (vnfPackageMetadataIterable != null && vnfPackageMetadataIterable.iterator().hasNext()) {
 for (VNFPackageMetadata vnfpm : vnfPackageMetadataIterable)
org.openbaton.catalogue.nfvoVNFPackageMetadata

Most used methods

  • getOsId
  • getOsVersion
  • <init>
  • addRepoConfigurationInfo
  • getAdditionalRepoInfoList
  • getId
  • getName
  • getNfvoVersion
  • getOsArchitecture
  • getProjectId
  • getTag
  • getVendor
  • getTag,
  • getVendor,
  • getVersion,
  • getVnfPackageFatherId,
  • getVnfmType,
  • setAdditionalRepoInfoList,
  • setDescription,
  • setId,
  • setName,
  • setNfvoVersion

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • notifyDataSetChanged (ArrayAdapter)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Menu (java.awt)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now