Package xbird.server.backend

Examples of xbird.server.backend.BackendProcessor


            if(cnt < minCnt) {
                leastIndex = i;
                minCnt = cnt;
            }
        }
        final BackendProcessor qp = _procs[leastIndex];
        _readLock.unlock();
        _writeLock.lock();
        ++_pendingCounts[leastIndex];
        _writeLock.unlock();
        return qp;
View Full Code Here


                + ServerConstants.GLOBAL_REGISTORY;
        final int psize = procNames.size();
        final BackendProcessor[] procs = new BackendProcessor[psize];
        for(int i = 0; i < psize; i++) {
            final String name = procNames.get(i);
            BackendProcessor remote = lookupRegistry(name);
            procs[i] = remote;
        }
        return procs;
    }
View Full Code Here

        final Serializable result;
        final int sign = request.getSignature();
        switch (sign) {
            case QueryRequest.SIGNATURE:
                final String query = ((QueryRequest) request).getQuery();
                BackendProcessor proc = _sched.dispatchRequest(request);
                result = proc.execute(query, this, returnType);
                _sched.notifyCompletion(request);
                break;
            default:
                throw new IllegalStateException("Illegal return type: " + returnType);
        }
View Full Code Here

TOP

Related Classes of xbird.server.backend.BackendProcessor

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.