Examples of invokeElem()


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()

        try {
            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);
                volume.setSnapshotReservation(snapshotReservation);
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

        try {
            s.invokeElem(xi);
            volumeCreated = true;

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

            if (snapPolicy) {
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

                volume.setSnapshotReservation(snapshotReservation);
                _volumeDao.update(volumeId, volume);
            }

            if (snapPolicy) {
                s.invokeElem(xi2);
                volume.setSnapshotPolicy(snapshotPolicy);
                _volumeDao.update(volumeId, volume);
            }
            txn.commit();
        } catch (NaException nae) {
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

        NaElement xi = new NaElement("snapshot-get-schedule");
        xi.addNewChild("volume", vol.getVolumeName());
        NaServer s = null;
        try {
            s = getServer(vol.getIpAddress(), vol.getUsername(), vol.getPassword());
            NaElement xo = s.invokeElem(xi);
            String weeks = xo.getChildContent("weeks");
            String days = xo.getChildContent("days");
            String hours = xo.getChildContent("hours");
            String minutes = xo.getChildContent("minutes");
            String whichHours = xo.getChildContent("which-hours");
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

        xi.addNewChild("volume", volName);
        NaServer s = null;
        String volumeState = null;
        try {
            s = getServer(serverIp, userName, password);
            NaElement xo = s.invokeElem(xi);
            List volList = xo.getChildByName("volumes").getChildren();
            Iterator volIter = volList.iterator();
            while (volIter.hasNext()) {
                NaElement volInfo = (NaElement)volIter.next();
                availableSize = volInfo.getChildLongValue("size-available", -1);
View Full Code Here

Examples of netapp.manage.NaServer.invokeElem()

            xi = new NaElement("lun-create-by-size");
            xi.addNewChild("ostype", "linux");
            xi.addNewChild("path", exportPath.toString());
            xi.addNewChild("size", (lunSizeBytes.toString()));

            s.invokeElem(xi);

            try {
                //now create an igroup
                xi1 = new NaElement("igroup-create");
                xi1.addNewChild("initiator-group-name", lunName.toString());
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.