Package org.apache.bookkeeper.client.QuorumEngine.Operation

Examples of org.apache.bookkeeper.client.QuorumEngine.Operation.StopOp


   
    private synchronized void sendStop(){
        try{
            noreception = true;
            LOG.debug("Sending stop signal");
            incomingQueue.put(new ToSend(null, new SubStopOp(new StopOp()), -1));
            LOG.debug("Sent stop signal");
        } catch(InterruptedException e) {
            LOG.fatal("Interrupted while sending stop signal to bookie handle");
        }      
    }
View Full Code Here


            zk.setData(closePath,
                last.array(), -1);
        }
        lh.close();
        for(QuorumEngine qe : engines.values()){
          StopOp sOp = new StopOp();
          qe.sendOp(sOp);
        }
    }
View Full Code Here

            break;
        case 2:  
            LedgerHandle lh = clop.getLh();
            try{
                lh.closeUp();
                StopOp sOp = new StopOp();
                lh.getQuorumEngine().sendOp(sOp);

            } catch(Exception e) {
                LOG.warn("Exception while stopping quorum engine: " + lh.getId());
            }
View Full Code Here

                   Ids.OPEN_ACL_UNSAFE,
                   CreateMode.PERSISTENT);
        }
       
        closeUp();
        StopOp sOp = new StopOp();
        qe.sendOp(sOp);
        LOG.info("##### CB worker queue size: " + qe.cbWorker.pendingOps.size());
    }
View Full Code Here

   
    private synchronized void sendStop(){
        try{
            noreception = true;
            LOG.debug("Sending stop signal");
            incomingQueue.put(new ToSend(null, new SubStopOp(new StopOp()), -1));
            LOG.debug("Sent stop signal");
        } catch(InterruptedException e) {
            LOG.fatal("Interrupted while sending stop signal to bookie handle");
        }      
    }
View Full Code Here

TOP

Related Classes of org.apache.bookkeeper.client.QuorumEngine.Operation.StopOp

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.