Package com.thinkaurelius.titan.core

Examples of com.thinkaurelius.titan.core.TitanException


                log.warn("Waiting for id renewal thread on partition {} [{} ms]",partitionID,timeDelta);
            }
            idBlockRenewer.join(RENEW_WAIT_INTERVAL);
        }
        if (idBlockRenewer!=null && idBlockRenewer.isAlive())
            throw new TitanException("ID renewal thread on partition ["+partitionID+"] did not complete in time. ["+(System.currentTimeMillis()-timeStart)+" ms]");
    }
View Full Code Here


            bufferNextID = idblock[0];
            bufferMaxID = idblock[1];
            Preconditions.checkArgument(bufferNextID > 0, bufferNextID);
            Preconditions.checkArgument(bufferMaxID > bufferNextID, bufferMaxID);
        } catch (StorageException e) {
            throw new TitanException("Could not acquire new ID block from storage", e);
        } catch (IDPoolExhaustedException e) {
            bufferNextID = BUFFER_POOL_EXHAUSTION;
            bufferMaxID = BUFFER_POOL_EXHAUSTION;
        }
    }
View Full Code Here

        if (nextID == currentMaxID) {
            try {
                nextBlock();
            } catch (InterruptedException e) {
                throw new TitanException("Could not renew id block due to interruption", e);
            }
        }

        if (nextID == renewBufferID) {
            startNextIDAcquisition();
View Full Code Here

    public synchronized void close() {
        //Wait for renewer to finish
        try {
            waitForIDRenewer();
        } catch (InterruptedException e) {
            throw new TitanException("Interrupted while waiting for id renewer thread to finish", e);
        }
    }
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.core.TitanException

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.