Package com.ngdata.hbaseindexer.model.api

Examples of com.ngdata.hbaseindexer.model.api.IndexerModelException


                }
            });
        } catch (KeeperException.NodeExistsException e) {
            throw new IndexerExistsException(indexer.getName());
        } catch (Exception e) {
            throw new IndexerModelException("Error creating indexer.", e);
        }

    }
View Full Code Here


                if (success)
                    break;

                tryCount++;
                if (tryCount > 10) {
                    throw new IndexerModelException("Failed to delete indexer because it still has child data. Indexer: "
                            + indexerName);
                }
            }
        } catch (Throwable t) {
            if (t instanceof InterruptedException)
                Thread.currentThread().interrupt();
            throw new IndexerModelException("Failed to delete indexer " + indexerName, t);
        }
    }
View Full Code Here

        IndexerDefinition indexer = getFreshIndexer(indexerName);

        if (checkDeleted) {
            if (indexer.getLifecycleState() == LifecycleState.DELETE_REQUESTED ||
                    indexer.getLifecycleState() == LifecycleState.DELETING) {
                throw new IndexerModelException("An indexer in state " + indexer.getLifecycleState() + " cannot be locked.");
            }
        }

        final String lockPath = indexerCollectionPathSlash + indexerName + "/lock";
View Full Code Here

TOP

Related Classes of com.ngdata.hbaseindexer.model.api.IndexerModelException

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.