Package org.apache.bookkeeper.metastore.MSException

Examples of org.apache.bookkeeper.metastore.MSException.Code


            public void run() {
                if (null == key || null == version) {
                    cb.complete(Code.IllegalOp.getCode(), null, ctx);
                    return;
                }
                Code code = remove(key, version);
                cb.complete(code.getCode(), null, ctx);
               
                if(code == MSException.Code.OK){
                    triggerWatch(key, MSWatchedEvent.EventType.REMOVED);
                }
            }
View Full Code Here


            public void run() {
                if (null == key || null == version) {
                    cb.complete(Code.IllegalOp.getCode(), null, ctx);
                    return;
                }
                Code code = remove(key, version);
                cb.complete(code.getCode(), null, ctx);
            }
        });
    }
View Full Code Here

    protected void putAndCheck(String recordId, String name,
                                      Integer counter, Version version,
                                      Record expected, Code expectedCode)
    throws Exception {
        Version retVersion = null;
        Code code = Code.OperationFailure;
        try {
            retVersion = myTable.put(recordId, makeValue(name, counter), version);
            code = Code.OK;
        } catch (MSException.BadVersionException bve) {
            code = Code.BadVersion;
View Full Code Here

TOP

Related Classes of org.apache.bookkeeper.metastore.MSException.Code

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.