Package com.cloud.netapp

Examples of com.cloud.netapp.NetappManager


  @Override
  public void execute() throws ResourceUnavailableException,
      InsufficientCapacityException, ServerApiException,
      ConcurrentOperationException, ResourceAllocationException {
    ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);
      try {
        List<PoolVO> poolList = netappMgr.listPools();
        ListResponse<ListVolumePoolsCmdResponse> listResponse = new ListResponse<ListVolumePoolsCmdResponse>();
        List<ListVolumePoolsCmdResponse> responses = new ArrayList<ListVolumePoolsCmdResponse>();
        for (PoolVO pool : poolList) {
          ListVolumePoolsCmdResponse response = new ListVolumePoolsCmdResponse();
          response.setId(pool.getId());
View Full Code Here


  @Override
  public void execute() throws ResourceUnavailableException,
      InsufficientCapacityException, ServerApiException,
      ConcurrentOperationException, ResourceAllocationException {
    ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);
      try {
        List<LunVO> lunList = netappMgr.listLunsOnFiler(poolName);
        ListResponse<ListLunsCmdResponse> listResponse = new ListResponse<ListLunsCmdResponse>();
        List<ListLunsCmdResponse> responses = new ArrayList<ListLunsCmdResponse>();
        for (LunVO lun : lunList) {
          ListLunsCmdResponse response = new ListLunsCmdResponse();
          response.setId(lun.getId());
View Full Code Here

    @Override
    public void execute() throws ResourceUnavailableException,
    InsufficientCapacityException, ServerApiException,
    ConcurrentOperationException, ResourceAllocationException {
      ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);
      try {
      netappMgr.destroyLunOnFiler(path);
        DeleteLUNCmdResponse response = new DeleteLUNCmdResponse();
        response.setResponseName(getCommandName());
        this.setResponseObject(response);
      } catch (InvalidParameterValueException e) {
        throw new ServerApiException(BaseCmd.PARAM_ERROR, e.toString());
View Full Code Here

  @Override
  public void execute() throws ResourceUnavailableException,
      InsufficientCapacityException, ServerApiException,
      ConcurrentOperationException, ResourceAllocationException {
    ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);
     
      try {
        List<NetappVolumeVO> volumes = netappMgr.listVolumesOnFiler(poolName);
        ListResponse<ListVolumesOnFilerCmdResponse> listResponse = new ListResponse<ListVolumesOnFilerCmdResponse>();
        List<ListVolumesOnFilerCmdResponse> responses = new ArrayList<ListVolumesOnFilerCmdResponse>();
        for (NetappVolumeVO volume : volumes) {
          ListVolumesOnFilerCmdResponse response = new ListVolumesOnFilerCmdResponse();
          response.setId(volume.getId());
View Full Code Here

  }
 
    @Override
    public void execute(){
      ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);
     
      try {
        AssociateLunCmdResponse response = new AssociateLunCmdResponse();
        String returnVals[] = null;
        returnVals = netappMgr.associateLun(getGuestIQN(), getLunName());
        response.setLun(returnVals[0]);
        response.setIpAddress(returnVals[2]);
        response.setTargetIQN(returnVals[1]);
        response.setObjectName("lun");
        response.setResponseName(getCommandName());
View Full Code Here

    @Override
    public void execute() throws ResourceUnavailableException,
    InsufficientCapacityException, ServerApiException,
    ConcurrentOperationException, ResourceAllocationException {
      ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);

      netappMgr.modifyPool(poolName, algorithm);

      ModifyVolumePoolCmdResponse response = new ModifyVolumePoolCmdResponse();
      response.setResponseName(getCommandName());
      this.setResponseObject(response);
    }
View Full Code Here

  @Override
  public void execute() throws ResourceUnavailableException,
      InsufficientCapacityException, ServerApiException,
      ConcurrentOperationException, ResourceAllocationException {
    ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);
      try {
        netappMgr.disassociateLun(guestIQN, path);
        DissociateLunCmdResponse response = new DissociateLunCmdResponse();
        response.setResponseName(getCommandName());
        this.setResponseObject(response);
      } catch (InvalidParameterValueException e) {
        throw new ServerApiException(BaseCmd.PARAM_ERROR, e.toString());
View Full Code Here

  @Override
  public void execute() throws ResourceUnavailableException,
      InsufficientCapacityException, ServerApiException,
      ConcurrentOperationException, ResourceAllocationException {
    ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);
      try {
      netappMgr.deletePool(poolName);
      DeleteVolumePoolCmdResponse response = new DeleteVolumePoolCmdResponse();
      response.setResponseName(getCommandName());
      this.setResponseObject(response);
    } catch (InvalidParameterValueException e) {
      throw new ServerApiException(BaseCmd.PARAM_ERROR, e.toString());
View Full Code Here

    //param checks
    if(snapshotReservation != null && (snapshotReservation<0 || snapshotReservation>100))
      throw new InvalidParameterValueException("Invalid snapshot reservation");
   
    ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);
     
    StringBuilder s = new StringBuilder(getVolSize().toString());
    s.append("g");
 
    try {
      netappMgr.createVolumeOnFiler(ipAddress, aggrName, poolName, volName, s.toString(), snapshotPolicy, snapshotReservation, userName, password);
      CreateVolumeOnFilerCmdResponse response = new CreateVolumeOnFilerCmdResponse();
      response.setResponseName(getCommandName());
      this.setResponseObject(response);
    } catch (ServerException e) {
      throw new ServerApiException(BaseCmd.INTERNAL_ERROR, e.toString());
View Full Code Here

  @Override
  public void execute() throws ResourceUnavailableException,
      InsufficientCapacityException, ServerApiException,
      ConcurrentOperationException, ResourceAllocationException {
    ComponentLocator locator = ComponentLocator.getLocator(ManagementService.Name);
      NetappManager netappMgr = locator.getManager(NetappManager.class);
     
      try {
        CreateVolumePoolCmdResponse response = new CreateVolumePoolCmdResponse();
        netappMgr.createPool(getPoolName(), getAlgorithm());
        response.setResponseName(getCommandName());
        this.setResponseObject(response);
      } catch (InvalidParameterValueException e) {
        throw new ServerApiException(BaseCmd.INTERNAL_ERROR, e.toString());
      }
View Full Code Here

TOP

Related Classes of com.cloud.netapp.NetappManager

Copyright © 2018 www.massapicom. 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.