Package com.cloud.utils.component

Examples of com.cloud.utils.component.ComponentLocator$ComponentInfo


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

      ConcurrentOperationException, ResourceAllocationException {
    //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 {
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());
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.destroyVolumeOnFiler(ipAddr, aggrName, volumeName);
        DeleteVolumeOnFilerCmdResponse response = new DeleteVolumeOnFilerCmdResponse();
        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 {
        CreateLunCmdResponse response = new CreateLunCmdResponse();
        String returnVals[] = null;
        returnVals = netappMgr.createLunOnFiler(getPoolName(), getLunSize());
View Full Code Here

    }

    private String[] getPluggableServicesApiConfigs() {
        List<String> pluggableServicesApiConfigs = new ArrayList<String>();

        ComponentLocator locator = ComponentLocator.getLocator(ManagementServer.Name);
        List<PluggableService> services = locator.getAllPluggableServices();
        for (PluggableService service : services) {
            pluggableServicesApiConfigs.add(service.getPropertiesFile());
        }
        return pluggableServicesApiConfigs.toArray(new String[0]);
    }
View Full Code Here

        // get commands for all pluggable services
        String[] pluggableServicesApiConfigs = getPluggableServicesApiConfigs();
        processConfigFiles(pluggableServicesApiConfigs, true);

        ComponentLocator locator = ComponentLocator.getLocator(ManagementServer.Name);
        _accountMgr = locator.getManager(AccountManager.class);
        _asyncMgr = locator.getManager(AsyncJobManager.class);
        _systemAccount = _accountMgr.getSystemAccount();
        _systemUser = _accountMgr.getSystemUser();
        _dispatcher = ApiDispatcher.getInstance();
        _domainMgr = locator.getManager(DomainManager.class);

        Integer apiPort = null; // api port, null by default
        ConfigurationDao configDao = locator.getDao(ConfigurationDao.class);
        SearchCriteria<ConfigurationVO> sc = configDao.createSearchCriteria();
        sc.addAnd("name", SearchCriteria.Op.EQ, "integration.api.port");
        List<ConfigurationVO> values = configDao.search(sc, null);
        if ((values != null) && (values.size() > 0)) {
            ConfigurationVO apiPortConfig = values.get(0);
View Full Code Here

        }
        return false;
    }
   
    public Long fetchDomainId(String domainUUID){
        ComponentLocator locator = ComponentLocator.getLocator(ManagementServer.Name);
        IdentityDao identityDao = locator.getDao(IdentityDao.class);
        try{
            Long domainId = identityDao.getIdentityId("domain", domainUUID);
            return domainId;
        }catch(InvalidParameterValueException ex){
            return null;
View Full Code Here

TOP

Related Classes of com.cloud.utils.component.ComponentLocator$ComponentInfo

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.