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

How to use
ResourceManagement
in
org.openbaton.nfvo.core.interfaces

Best Java code snippets using org.openbaton.nfvo.core.interfaces.ResourceManagement (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: openbaton/NFVO

@Override
protected NFVMessage doWork() throws Exception {
 log.info("Release resources for VNFR: " + virtualNetworkFunctionRecord.getName());
 for (VirtualDeploymentUnit virtualDeploymentUnit : virtualNetworkFunctionRecord.getVdu()) {
  log.debug(
    "Removing VDU: "
      + virtualDeploymentUnit.getHostname()
      + " from VNFR "
      + virtualNetworkFunctionRecord.getId());
  for (VNFCInstance vnfcInstance : virtualDeploymentUnit.getVnfc_instance()) {
   log.debug(
     "Removing VNFC instance: "
       + vnfcInstance
       + " from VNFR "
       + virtualNetworkFunctionRecord.getId());
   this.resourceManagement.release(virtualDeploymentUnit, vnfcInstance);
  }
 }
 setHistoryLifecycleEvent();
 saveVirtualNetworkFunctionRecord();
 return null;
}
origin: openbaton/NFVO

.allocate(vdu, virtualNetworkFunctionRecord, vnfc, vimInstance, userData)
.get();
origin: openbaton/NFVO

   resourceManagement.allocate(
     vdu,
     virtualNetworkFunctionRecord,
} else if (vimInstance != null) {
 Future<VNFCInstance> future =
   resourceManagement.allocate(
     vdu, virtualNetworkFunctionRecord, componentToAdd, vimInstance, userdata);
 log.debug(
 resourceManagement.release(vdu, e.getVnfcInstance());
 virtualNetworkFunctionRecord.setStatus(Status.ACTIVE);
 saveVirtualNetworkFunctionRecord();
   "Added new component with id: "
     + resourceManagement
       .allocate(
         vdu,
         virtualNetworkFunctionRecord,
   "Added new component with id: "
     + resourceManagement
       .allocate(
         vdu, virtualNetworkFunctionRecord, componentToAdd, vimInstance, userdata)
       .get());
log.error(e.getLocalizedMessage());
if (e.getVnfcInstance() != null) {
 resourceManagement.release(vdu, e.getVnfcInstance());
origin: openbaton/NFVO

resourceManagement.operate(vdu, "rebuild").get();
origin: openbaton/NFVO

vnfcInstance -> {
 try {
  resourceManagement.release(vdu, vnfcInstance);
 } catch (VimException
   | ExecutionException
origin: openbaton/NFVO

VirtualNetworkFunctionDescriptor virtualNetworkFunctionRecord =
  createVirtualNetworkFunctionDescriptor();
when(resourceManagement.allocate(
    any(VirtualDeploymentUnit.class),
    any(VirtualNetworkFunctionRecord.class),
origin: openbaton/NFVO

@Test
public void nsrManagementDeleteTest()
  throws VimException, InterruptedException, ExecutionException, NotFoundException,
    WrongStatusException, PluginException, BadFormatException {
 NetworkServiceRecord nsd_exp = createNetworkServiceRecord();
 when(resourceManagement.release(any(VirtualDeploymentUnit.class), any(VNFCInstance.class)))
   .thenReturn(new AsyncResult<>(null));
 when(nsrRepository.findFirstByIdAndProjectId(nsd_exp.getId(), projectId)).thenReturn(nsd_exp);
 when(vnfrRepository.findByParentNsId(anyString())).thenReturn(new ArrayList<>());
 Configuration system = new Configuration();
 system.setConfigurationParameters(new HashSet<>());
 ConfigurationParameter configurationParameter = new ConfigurationParameter();
 configurationParameter.setConfKey("delete-on-all-status");
 configurationParameter.setValue("true");
 nsrManagement.delete(nsd_exp.getId(), projectId);
}
origin: openbaton/NFVO

resourceManagement.release(virtualDeploymentUnit, vnfcInstance);
for (Ip ip : vnfcInstance.getIps()) {
 virtualNetworkFunctionRecord.getVnf_address().remove(ip.getIp());
org.openbaton.nfvo.core.interfacesResourceManagement

Javadoc

Created by mpa on 30/04/15.

Most used methods

  • release
    This operation allows de-allocating and terminating an instantiated virtualised resource. This opera
  • allocate
    This operation allows requesting the instantiation and assignment of a virtualised resource to the V
  • operate
    This operation allows executing specific commands on certain allocated virtualised resources. Exampl

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • notifyDataSetChanged (ArrayAdapter)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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