Examples of DependencyException


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

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

            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

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

                        table));
            }

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

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

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

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

        } 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

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

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

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

        // 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

Examples of net.sourceforge.javautil.dependency.DependencyException

            case CREATE: case INITIALIZE: case PRESTART: case STOP:
              dependency.getLifecycle().start();
              break;
             
            case POSTSTOP: case DESTROY:
              throw new DependencyException("Dependency Failure: has been permanently destroyed: " + dependency);
             
            default:
              // Here it means the dependency has started and is currently running
          }
        }
View Full Code Here

Examples of org.jboss.forge.addon.dependencies.DependencyException

         DependencyNodeBuilder hierarchy = MavenConvertUtils.toDependencyNode(factory, null, result.getRoot());
         return hierarchy;
      }
      catch (Exception e)
      {
         throw new DependencyException("Could not resolve dependencies for addon [" + query.getCoordinate() + "]", e);
      }
   }
View Full Code Here

Examples of org.jboss.forge.addon.dependencies.DependencyException

         return new DependencyMetadataImpl(d, results);
      }
      catch (Exception e)
      {
         throw new DependencyException("Unable to resolve any artifacts for query [" + query + "]", e);
      }
   }
View Full Code Here

Examples of org.jboss.forge.addon.dependencies.DependencyException

         DependencyNodeBuilder hierarchy = MavenConvertUtils.toDependencyNode(factory, null, result.getRoot());
         return hierarchy;
      }
      catch (Exception e)
      {
         throw new DependencyException("Could not resolve dependencies for addon [" + query.getCoordinate() + "]", 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.