Package com.amazonaws.services.kinesis.leases.exceptions

Examples of com.amazonaws.services.kinesis.leases.exceptions.DependencyException


        throws DependencyException, InvalidStateException, ProvisionedThroughputException {
        List<T> freshList = leaseManager.listLeases();
        try {
            lastScanTimeNanos = timeProvider.call();
        } catch (Exception e) {
            throw new DependencyException("Exception caught from timeProvider", e);
        }

        // This set will hold the lease keys not updated by the previous listLeases call.
        Set<String> notUpdated = new HashSet<String>(allLeases.keySet());
View Full Code Here


            tableDidNotExist = false;
            LOG.info("Table " + table + " already exists.");
        } catch (LimitExceededException e) {
            throw new ProvisionedThroughputException("Capacity exceeded when creating table " + table, e);
        } catch (AmazonClientException e) {
            throw new DependencyException(e);
        }
        return tableDidNotExist;
    }
View Full Code Here

                        table));
            }

            return false;
        } catch (AmazonClientException e) {
            throw new DependencyException(e);
        }

        String tableStatus = result.getTable().getTableStatus();

        if (LOG.isDebugEnabled()) {
View Full Code Here

        } catch (ResourceNotFoundException e) {
            throw new InvalidStateException("Cannot scan lease table " + table + " because it does not exist.", e);
        } catch (ProvisionedThroughputExceededException e) {
            throw new ProvisionedThroughputException(e);
        } catch (AmazonClientException e) {
            throw new DependencyException(e);
        }
    }
View Full Code Here

                    leaseKey,
                    table),
                    e);
            //@formatter:off
        } else {
            return new DependencyException(e);
        }
    }
View Full Code Here

        // Need to wait for table in active state.
        final long secondsBetweenPolls = 10L;
        final long timeoutSeconds = 600L;
        final boolean isTableActive = leaseManager.waitUntilLeaseTableExists(secondsBetweenPolls, timeoutSeconds);
        if (!isTableActive) {
            throw new DependencyException(new IllegalStateException("Creating table timeout"));
        }
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.kinesis.leases.exceptions.DependencyException

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.