Examples of ThrottlingException


Examples of com.amazonaws.services.kinesis.clientlibrary.exceptions.ThrottlingException

            boolean wasSuccessful = setCheckpoint(shardId, checkpointValue, UUID.fromString(concurrencyToken));
            if (!wasSuccessful) {
                throw new ShutdownException("Can't update checkpoint - instance doesn't hold the lease for this shard");
            }
        } catch (ProvisionedThroughputException e) {
            throw new ThrottlingException("Got throttled while updating checkpoint.", e);
        } catch (InvalidStateException e) {
            String message = "Unable to save checkpoint for shardId " + shardId;
            LOG.error(message, e);
            throw new com.amazonaws.services.kinesis.clientlibrary.exceptions.InvalidStateException(message, e);
        } catch (DependencyException e) {
View Full Code Here

Examples of com.amazonaws.services.kinesis.clientlibrary.exceptions.ThrottlingException

            throw new IllegalArgumentException("Sequence number " + sequenceNumber + " is invalid for shard "
                    + shardId, e);
        } catch (ProvisionedThroughputExceededException e) {
            // clients should have back off logic in their checkpoint logic
            LOG.info("Exceeded throughput while getting an iterator for shard " + shardId, e);
            throw new ThrottlingException("Exceeded throughput while getting an iterator for shard " + shardId, e);
        } catch (AmazonServiceException e) {
            LOG.info("Encountered service exception while getting an iterator for shard " + shardId, e);
            if (e.getStatusCode() >= SERVER_SIDE_ERROR_CODE) {
                // clients can choose whether to retry in their checkpoint logic
                throw new KinesisClientLibDependencyException("Encountered service exception while getting an iterator"
View Full Code Here

Examples of com.amazonaws.services.route53.model.ThrottlingException

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

        ThrottlingException e = (ThrottlingException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

Examples of org.apache.stratos.throttling.manager.exception.ThrottlingException

        try {
            task.prepareData(throttlingDataContext);
        } catch (ThrottlingException e) {
            String msg = "Error in preparing throttling data for tenant: " + tenantId + ".";
            log.error(msg, e);
            throw new ThrottlingException(msg, e);
        }

        // add data entries with object types separately
        for (ThrottlingDataEntry dataEntry : throttlingDataContext.getData()) {
            if (dataEntry.getValueType() == 4) {
                Object object = dataEntry.getObjectValue();
                if (object != null) {
                    knowledgeBase.add(object);
                }
            }
        }
        // load the access validation data
        try {
            ValidationInfoManager.loadValidationDetails(throttlingDataContext);
        } catch (ThrottlingException e) {
            String msg = "Error in loading validation details. tenant id: " + tenantId + ".";
            log.error(msg, e);
            throw new ThrottlingException(msg, e);
        }

        // add metering data context
        knowledgeBase.add(throttlingDataContext);
        // add access validation information
View Full Code Here

Examples of org.apache.stratos.throttling.manager.exception.ThrottlingException

            }
        } catch (RegistryException e) {
            String msg =
                    "Error in getting the tenant validation info.  tenant id: " + tenantId + ".";
            log.error(msg, e);
            throw new ThrottlingException(msg, e);
        }
    }
View Full Code Here

Examples of org.apache.stratos.throttling.manager.exception.ThrottlingException

            if (dataProvider == null) {
                String msg =
                        "Error in invoking the data provider. " + "dataProviderConfigs is null or "
                                + "data provider is not yet loaded";
                log.error(msg);
                throw new ThrottlingException(msg);
            }
            dataProvider.invoke(dataContext);
            if (dataContext.isProcessingComplete()) {
                break;
            }
View Full Code Here

Examples of org.apache.stratos.throttling.manager.exception.ThrottlingException

                    tenantValidationInfoResource);
        } catch (RegistryException e) {
            String msg =
                    "Error in storing the tenant validation info.  tenant id: " + tenantId + ".";
            log.error(msg, e);
            throw new ThrottlingException(msg, e);
        }
    }
View Full Code Here

Examples of org.apache.stratos.throttling.manager.exception.ThrottlingException

        try {
            tenants = Util.getAllTenants();
        } catch (UserStoreException e) {
            String msg = "Error in getting all the tenants.";
            log.error(msg, e);
            throw new ThrottlingException(msg, e);
        }
        // prepare the knowledge base using data on each tenant

        for (Tenant tenant : tenants) {
            if (!tenant.isActive()) {
View Full Code Here

Examples of org.apache.stratos.throttling.manager.exception.ThrottlingException

        try {
            cl = Class.forName(className);
        } catch (ClassNotFoundException e) {
            String msg = "The class: " + className + " is not in the classpath.";
            log.error(msg, e);
            throw new ThrottlingException(msg, e);
        }

        try {
            co = cl.getConstructor();
        } catch (NoSuchMethodException e) {
            String msg = "The default constructor for the  is not available for " + className + ".";
            log.error(msg, e);
            throw new ThrottlingException(msg, e);
        }
        try {
            obj = co.newInstance();
        } catch (Exception e) {
            String msg = "Error in initializing the object for " + className + ".";
            log.error(msg);
            throw new ThrottlingException(msg, e);
        }
        return obj;
    }
View Full Code Here

Examples of org.apache.stratos.throttling.manager.exception.ThrottlingException

        } catch (Exception e) {
            String msg = "Error in retrieving Usage information. " + "tenant id: " + tenantId
                    + ", user name: " + userName + ".";
            log.error(msg, e);
            throw new ThrottlingException(msg, e);
        }

    }
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.