Examples of clone()


Examples of com.ceph.rbd.Rbd.clone()

                            } else {
                                s_logger.debug("The source image " + srcPool.getSourceDir() + "/" + template.getName()
                                               + " is RBD format 2. We will perform a RBD clone using snapshot "
                                               + this.rbdTemplateSnapName);
                                /* The source image is format 2, we can do a RBD snapshot+clone (layering) */
                                rbd.clone(template.getName(), this.rbdTemplateSnapName, io, disk.getName(), this.rbdFeatures, this.rbdOrder);
                                s_logger.debug("Succesfully cloned " + template.getName() + "@" + this.rbdTemplateSnapName + " to " + disk.getName());
                            }

                            rbd.close(srcImage);
                            r.ioCtxDestroy(io);
View Full Code Here

Examples of com.dragome.compiler.ast.Expression.clone()

          Expression expr= (Expression) node.stack.get(index);

          Assignment a= new Assignment(Assignment.Operator.ASSIGN);
          a.setLeftHandSide((VariableBinding) vb.clone());
          if (expr instanceof VariableBinding)
            expr= (VariableBinding) expr.clone();
          a.setRightHandSide(expr);

          node.block.appendChild(a);
        }
        logger.debug("\t" + vb.getName());
View Full Code Here

Examples of com.dragome.compiler.ast.VariableBinding.clone()

      Assignment a= new Assignment(Assignment.Operator.ASSIGN);
      a.setLeftHandSide(vb);
      a.setRightHandSide(expr);

      node.block.appendChild(a);
      node.stack.set(i, clone ? (VariableBinding) vb.clone() : vb);
    }

    logger.debug("... expressionsToVariables");
  }
View Full Code Here

Examples of com.dragome.render.interfaces.TemplateHandler.clone()

  public Template getUpdatedTemplateFor(T item)
  {
    TemplateHandler templateHandler= ServiceLocator.getInstance().getTemplateHandler();
    Template updatedTemplate= itemProcessor.getRepeatTemplates(item).get(0);
    Template clone= templateHandler.clone(updatedTemplate);
    templateHandler.makeVisible(clone);

    templatesByItem.get(item).add(clone);
    return clone;
  }
View Full Code Here

Examples of com.drakulo.games.ais.core.delayed.PreparationAction.clone()

              GameData.getSelectedColony().updateResource(r,
                  map.get(r).negate());
            }

            GameData.getSelectedColony().addPreparationAction(
                pa.clone());
          } else {
            // TODO play an error sound
          }

        } else if (this.selectedAction instanceof BuildingAction) {
View Full Code Here

Examples of com.dtrules.entity.IREntity.clone()

        if(ref==null){
            throw new RulesException("undefined","session.createEntity","An attempt ws made to create the entity "+name.stringValue()+"\n" +
                    "This entity isn't defined in the EDD");
        }
        if(!ref.isReadOnly()){
            REntity e = (REntity) ref.clone(this);
            entityInstances.put(id,e);
            return e;
        }
    return ref;
  }
View Full Code Here

Examples of com.dtrules.interpreter.IRObject.clone()

        for(int i=0;i<values.size();i++){
            IRObject value     = values.get(i);
            if(value == this){          // make a clone of everything one level down, but don't clone ourselves.           
                values.set(i,value);    // The clone references the same entity
            }else{
                values.set(i,value.clone(s));
            }
        }
   }
   
    /**
 
View Full Code Here

Examples of com.dtrules.mapping.Mapping.clone()

     * session, but is otherwise identical to the reference
     * mapping.
     */
    public synchronized Mapping getMapping(String filename,IRSession session){
        Mapping map = mappings.get(filename);
        if(map != null)return map.clone(session);
        if(map_paths.indexOf(filename)<0){
            throw new RuntimeException("Bad Mapping File: "+filename+" For the rule set: "+name.stringValue());
        }
        map = Mapping.newMapping(rd, session, filename);
        mappings.put(filename, map);
View Full Code Here

Examples of com.dubture.getcomposer.core.VersionedPackage.clone()

    manager.add(updateAction);
  }
 
  private void handleEdit() {
    VersionedPackage dep = (VersionedPackage)((StructuredSelection)dependencyViewer.getSelection()).getFirstElement();
    DependencyDialog diag = new DependencyDialog(dependencyViewer.getTable().getShell(), dep.clone());
    if (diag.open() == Dialog.OK) {
      dep.setVersion(diag.getDependency().getVersion());
//      refresh();
    }
  }
View Full Code Here

Examples of com.dubture.getcomposer.core.objects.Namespace.clone()

      namespace = ((Namespace) element).clone();
    }
        
    if (namespace != null) {
      PsrDialog diag = new PsrDialog(psrViewer.getTree().getShell(),
          namespace.clone(),
          getPage().getComposerEditor().getProject());
     
      if (diag.open() == Dialog.OK) {
        Namespace nmspc = psr.get(namespace.getNamespace());
        nmspc.clear();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.