Package netapp.manage

Examples of netapp.manage.NaElement.addNewChild()


        s_logger.debug("Request --> destroyLun "+":serverIp:"+vol.getIpAddress());
     
      try {
        //Unmap lun
        NaElement xi2 = new NaElement("lun-unmap");
        xi2.addNewChild("initiator-group", lunName);
        xi2.addNewChild("path", lun.getPath()+lun.getLunName());
        s.invokeElem(xi2);
      } catch (NaAPIFailedException naf) {
        if(naf.getErrno()==9016)
          s_logger.warn("no map exists excpn 9016 caught in deletelun, continuing with delete");
View Full Code Here


     
      try {
        //Unmap lun
        NaElement xi2 = new NaElement("lun-unmap");
        xi2.addNewChild("initiator-group", lunName);
        xi2.addNewChild("path", lun.getPath()+lun.getLunName());
        s.invokeElem(xi2);
      } catch (NaAPIFailedException naf) {
        if(naf.getErrno()==9016)
          s_logger.warn("no map exists excpn 9016 caught in deletelun, continuing with delete");
      }
View Full Code Here

          s_logger.warn("no map exists excpn 9016 caught in deletelun, continuing with delete");
      }

      //destroy lun
      NaElement xi = new NaElement("lun-destroy");
      xi.addNewChild("force","true");
      xi.addNewChild("path", lun.getPath()+lun.getLunName());
      s.invokeElem(xi);
     
      //destroy igroup
      NaElement xi1 = new NaElement("igroup-destroy");
View Full Code Here

      }

      //destroy lun
      NaElement xi = new NaElement("lun-destroy");
      xi.addNewChild("force","true");
      xi.addNewChild("path", lun.getPath()+lun.getLunName());
      s.invokeElem(xi);
     
      //destroy igroup
      NaElement xi1 = new NaElement("igroup-destroy");
      //xi1.addNewChild("force","true");
View Full Code Here

      s.invokeElem(xi);
     
      //destroy igroup
      NaElement xi1 = new NaElement("igroup-destroy");
      //xi1.addNewChild("force","true");
      xi1.addNewChild("initiator-group-name",lunName);
      s.invokeElem(xi1);
     
      _lunDao.remove(lun.getId());
      txn.commit();
    } catch(UnknownHostException uhe) {
View Full Code Here

      if(days!=null)
        xi2.addNewChild("days",days);
      if(hours!=null)
        xi2.addNewChild("hours",hours);
      if(minutes!=null)
        xi2.addNewChild("minutes",minutes);
      xi2.addNewChild("volume",volName);
     
      if(whichHours!=null)
        xi2.addNewChild("which-hours",whichHours);
      if(whichMinutes!=null)
View Full Code Here

        xi2.addNewChild("days",days);
      if(hours!=null)
        xi2.addNewChild("hours",hours);
      if(minutes!=null)
        xi2.addNewChild("minutes",minutes);
      xi2.addNewChild("volume",volName);
     
      if(whichHours!=null)
        xi2.addNewChild("which-hours",whichHours);
      if(whichMinutes!=null)
        xi2.addNewChild("which-minutes",whichMinutes);
View Full Code Here

      if(minutes!=null)
        xi2.addNewChild("minutes",minutes);
      xi2.addNewChild("volume",volName);
     
      if(whichHours!=null)
        xi2.addNewChild("which-hours",whichHours);
      if(whichMinutes!=null)
        xi2.addNewChild("which-minutes",whichMinutes);
    }
    Long volumeId = null;
   
View Full Code Here

      xi2.addNewChild("volume",volName);
     
      if(whichHours!=null)
        xi2.addNewChild("which-hours",whichHours);
      if(whichMinutes!=null)
        xi2.addNewChild("which-minutes",whichMinutes);
    }
    Long volumeId = null;
   
    final Transaction txn = Transaction.currentTxn();
    txn.start();
View Full Code Here

     * @throws IOException
     */
    private void deleteRogueVolume(String volName, NaServer s) throws NaException, IOException {
    //bring the volume down
    NaElement xi0 = new NaElement("volume-offline");
    xi0.addNewChild("name",volName);
    s.invokeElem(xi0);

    //now destroy it
    NaElement xi1 = new NaElement("volume-destroy");
    xi1.addNewChild("name",volName);
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.