Examples of invokeElem()


Examples of netapp.manage.NaServer.invokeElem()

      xi3.addNewChild("force", "true");
      xi3.addNewChild("initiator-group", lunName.toString());
      xi3.addNewChild("path", lun.getPath() + lun.getLunName());
     
      xi3.addNewChild("lun-id", lunIdStr);
      s.invokeElem(xi3);
       
        txn.commit();
        //set the result
        result[0] = lunName.toString();//lunname
        result[1] = iqn;//iqn
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

      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

Examples of netapp.manage.NaServer.invokeElem()

      //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");
      xi1.addNewChild("initiator-group-name",lunName);
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

     
      //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) {
      txn.rollback();
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

     
      xi = new NaElement("igroup-remove");
      xi.addNewChild("force", "true");
      xi.addNewChild("initiator", iGroup);
      xi.addNewChild("initiator-group-name", lunName);   
      s.invokeElem(xi);
     
    } catch(UnknownHostException uhe) {
      throw new ServerException("Failed to disassociate lun", uhe);
    } catch ( IOException ioe) {
      throw new ServerException("Failed to disassociate lun", ioe);
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

      //add iqn to the group
      xi2 = new NaElement("igroup-add");
      xi2.addNewChild("force", "true");
      xi2.addNewChild("initiator", guestIqn);
      xi2.addNewChild("initiator-group-name", lunName);   
      s.invokeElem(xi2);
           
      return returnVal;
    catch (UnknownHostException uhe) {
      s_logger.warn("Unable to associate LUN " , uhe);
      throw new ServerException("Unable to associate LUN", uhe);
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

    {
      s = getServer(volume.getIpAddress(), volume.getUsername(), volume.getPassword());
      //bring the volume down
      xi0 = new NaElement("volume-offline");
      xi0.addNewChild("name",volName);
      s.invokeElem(xi0);

      //now destroy it
      xi1 = new NaElement("volume-destroy");
      xi1.addNewChild("name",volName);
      s.invokeElem(xi1);
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

      s.invokeElem(xi0);

      //now destroy it
      xi1 = new NaElement("volume-destroy");
      xi1.addNewChild("name",volName);
      s.invokeElem(xi1);

      //now delete from our records
      _volumeDao.remove(volume.getId());
      txn.commit();
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

    volume = new NetappVolumeVO(ipAddress, aggName, pool.getId(), volName, volSize, "", 0, username, password,0,pool.getName());
    volume = _volumeDao.persist(volume);
   
    volumeId = volume.getId();
    try {
      s.invokeElem(xi);
      volumeCreated = true;
     
      if(snapshotRes)
      {
        s.invokeElem(xi1);
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

      s.invokeElem(xi);
      volumeCreated = true;
     
      if(snapshotRes)
      {
        s.invokeElem(xi1);
        volume.setSnapshotReservation(snapshotReservation);
        _volumeDao.update(volumeId, volume);
      }

      if(snapPolicy)
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.