Пример #1
0
 public void RemoveArc(Arc arc)
 {
     validate(arc.getChild(),arc.getParent());
     RemoveArcFromNode(arc.getParent(),arc.getName());
 }
Пример #2
0
 /**
  * removeArcFromNode method
  * Remove arc from node
  * using this method ensure that the server has have accepted
  * the arc removal, and it also ensure that all the clients will
  * receive the change by the same sequence in which the server has.
  * But it is impossible predict the change acceptance time in the remote
  * clients because of networks limits.
  * @param arc
  * @throws AbstractPlanckDBException
  */
 public void RemoveArc(Arc arc)
 {
     if(arc!=null){
         Command command = commandBuilder.buildRemoveChildFromParentNode(arc.getParent().getId(),arc.getName(), arc.getChild().getId(),sessionMetaData.getSchemaId(), core.getCoreManager().getKey(),sessionMetaData.GetSessionId(),lockTimeout);
         commandExecutor.produce(command);
     }else{
         throw new PlanckDBException(CommandStatus.noChildParentReference,CommandStatus.noChildParentReference.getMessage());
     }
 }