Examples of ResourceInUseException


Examples of com.amazonaws.services.dynamodb.model.ResourceInUseException

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        ResourceInUseException e = (ResourceInUseException)super.unmarshall(json);
        e.setErrorCode("ResourceInUseException");
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.model.ResourceInUseException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ResourceInUseException"))
            return null;

        ResourceInUseException e = (ResourceInUseException)super.unmarshall(json);

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.model.ResourceInUseException

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        ResourceInUseException e = (ResourceInUseException)super.unmarshall(json);
        e.setErrorCode("ResourceInUseException");

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.dynamodbv2.model.ResourceInUseException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ResourceInUseException"))
            return null;

        ResourceInUseException e = (ResourceInUseException)super.unmarshall(json);
       
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.elastictranscoder.model.ResourceInUseException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ResourceInUseException"))
            return null;

        ResourceInUseException e = (ResourceInUseException)super.unmarshall(json);

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.elastictranscoder.model.ResourceInUseException

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        ResourceInUseException e = (ResourceInUseException)super.unmarshall(json);
        e.setErrorCode("ResourceInUseException");

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.elastictranscoder.model.ResourceInUseException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ResourceInUseException"))
            return null;

        ResourceInUseException e = (ResourceInUseException)super.unmarshall(json);
       
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.kinesis.model.ResourceInUseException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("ResourceInUseException"))
            return null;

        ResourceInUseException e = (ResourceInUseException)super.unmarshall(json);

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.kinesis.model.ResourceInUseException

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        ResourceInUseException e = (ResourceInUseException)super.unmarshall(json);
        e.setErrorCode("ResourceInUseException");

        return e;
    }
View Full Code Here

Examples of com.cloud.exception.ResourceInUseException

        }

        List<StoragePoolVO> pools = _storagePoolDao.listPoolByHostPath(storageHost, hostPath);
        if (!pools.isEmpty() && !scheme.equalsIgnoreCase("sharedmountpoint")) {
            Long oldPodId = pools.get(0).getPodId();
            throw new ResourceInUseException("Storage pool " + uri + " already in use by another pod (id=" + oldPodId + ")", "StoragePool", uri.toASCIIString());
        }

        long poolId = _storagePoolDao.getNextInSequence(Long.class, "id");
        String uuid = null;
        if (scheme.equalsIgnoreCase("sharedmountpoint") || scheme.equalsIgnoreCase("clvm")) {
            uuid = UUID.randomUUID().toString();
        } else if (scheme.equalsIgnoreCase("PreSetup")) {
            uuid = hostPath.replace("/", "");
        } else {
            uuid = UUID.nameUUIDFromBytes(new String(storageHost + hostPath).getBytes()).toString();
        }

        List<StoragePoolVO> spHandles = _storagePoolDao.findIfDuplicatePoolsExistByUUID(uuid);
        if ((spHandles != null) && (spHandles.size() > 0)) {
            if (s_logger.isDebugEnabled()) {
                s_logger.debug("Another active pool with the same uuid already exists");
            }
            throw new ResourceInUseException("Another active pool with the same uuid already exists");
        }

        if (s_logger.isDebugEnabled()) {
            s_logger.debug("In createPool Setting poolId - " + poolId + " uuid - " + uuid + " zoneId - " + zoneId + " podId - " + podId + " poolName - " + cmd.getStoragePoolName());
        }
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.