Package netapp.manage

Examples of netapp.manage.NaElement.addNewChild()


                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 TransactionLegacy txn = TransactionLegacy.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

        xi0.addNewChild("name", volName);
        s.invokeElem(xi0);

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

    /**
     * This method lists all the volumes by pool name
View Full Code Here

     * @throws ServerException
     */
    private String returnSnapshotSchedule(NetappVolumeVO vol) throws ServerException {

        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");
View Full Code Here

    @Override
    public long returnAvailableVolumeSize(String volName, String userName, String password, String serverIp) throws ServerException {
        long availableSize = 0;

        NaElement xi = new NaElement("volume-list-info");
        xi.addNewChild("volume", volName);
        NaServer s = null;
        String volumeState = null;
        try {
            s = getServer(serverIp, userName, password);
            NaElement xo = s.invokeElem(xi);
View Full Code Here

            s.invokeElem(xi);

            try {
                //now create an igroup
                xi1 = new NaElement("igroup-create");
                xi1.addNewChild("initiator-group-name", lunName.toString());
                xi1.addNewChild("initiator-group-type", "iscsi");
                xi1.addNewChild("os-type", "linux");
                s.invokeElem(xi1);
            } catch (NaAPIFailedException e) {
                if (e.getErrno() == 9004) {
View Full Code Here

            try {
                //now create an igroup
                xi1 = new NaElement("igroup-create");
                xi1.addNewChild("initiator-group-name", lunName.toString());
                xi1.addNewChild("initiator-group-type", "iscsi");
                xi1.addNewChild("os-type", "linux");
                s.invokeElem(xi1);
            } catch (NaAPIFailedException e) {
                if (e.getErrno() == 9004) {
                    //igroup already exists hence no error
View Full Code Here

            try {
                //now create an igroup
                xi1 = new NaElement("igroup-create");
                xi1.addNewChild("initiator-group-name", lunName.toString());
                xi1.addNewChild("initiator-group-type", "iscsi");
                xi1.addNewChild("os-type", "linux");
                s.invokeElem(xi1);
            } catch (NaAPIFailedException e) {
                if (e.getErrno() == 9004) {
                    //igroup already exists hence no error
                    s_logger.warn("Igroup already exists");
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.