Examples of addNewChild()


Examples of netapp.manage.NaElement.addNewChild()

     * @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

Examples of netapp.manage.NaElement.addNewChild()

    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

Examples of netapp.manage.NaElement.addNewChild()

     * @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

Examples of netapp.manage.NaElement.addNewChild()

    @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

Examples of netapp.manage.NaElement.addNewChild()

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

Examples of netapp.manage.NaElement.addNewChild()

        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

Examples of netapp.manage.NaElement.addNewChild()

        {
          //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

Examples of netapp.manage.NaElement.addNewChild()

      _lunDao.update(lun.getId(), lun);
     
      //create lun mapping
      //now map the lun to the igroup
      NaElement xi3 = new NaElement("lun-map");
      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);
View Full Code Here

Examples of netapp.manage.NaElement.addNewChild()

     
      //create lun mapping
      //now map the lun to the igroup
      NaElement xi3 = new NaElement("lun-map");
      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);
       
View Full Code Here

Examples of netapp.manage.NaElement.addNewChild()

      //create lun mapping
      //now map the lun to the igroup
      NaElement xi3 = new NaElement("lun-map");
      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();
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.