Package xbird.engine.Request

Examples of xbird.engine.Request.Signature


    public void fire(RequestContext rc) throws RemoteException {
        rc.setFired(System.currentTimeMillis());
       
        final Request request = rc.getRequest();
        final Signature rsig = request.getSignature();
        if(rsig != Signature.COMPILE) {
            throw new IllegalStateException("Illegal command is passed to DistributedCompileProcessor: "
                    + rsig);
        }
        final CompileRequest compileRequest = (CompileRequest) request;
View Full Code Here


    public void fire(RequestContext rc) {
        rc.setFired(System.currentTimeMillis());

        Request request = rc.getRequest();
        Signature rsig = request.getSignature();
        if(rsig != Signature.COMMAND) {
            throw new IllegalStateException("Illegal command is passed to CommandProcessor: "
                    + rsig);
        }
        CommandRequest command = (CommandRequest) request;
View Full Code Here

    public void fire(RequestContext rc) throws RemoteException {
        rc.setFired(System.currentTimeMillis());

        final Request request = rc.getRequest();
        final Signature rsig = request.getSignature();
        if(rsig != Signature.QUERY) {
            throw new IllegalStateException("Illegal command is passed to QueryProcessor: " + rsig);
        }
        final QueryRequest queryRequest = (QueryRequest) request;
        final String query = queryRequest.getQuery();
View Full Code Here

    protected abstract void processTask();

    protected void invokeFire(final RequestContext rc) {
        final Request request = rc.getRequest();
        final Signature rtype = request.getSignature();
        boolean fired = false;
        for(ScheduledEventListener listener : _listeners) {
            final Signature ltype = listener.associatedWith();
            if(ltype == rtype) {
                final long timeout = request.getTimeout();
                if(timeout != Request.NO_TIMEOUT) {
                    execute(rc, listener, timeout);
                } else {
View Full Code Here

    @Override
    public void fire(RequestContext rc) throws RemoteException {
        rc.setFired(System.currentTimeMillis());

        final Request request = rc.getRequest();
        final Signature rsig = request.getSignature();
        if(rsig != Signature.PREPARED_QUERY) {
            throw new IllegalStateException("Illegal command is passed to PreparedQueryProcessor: "
                    + rsig);
        }
        final PreparedQueryRequest queryRequest = (PreparedQueryRequest) request;
View Full Code Here

    protected abstract void processTask();

    protected void invokeFire(final RequestContext rc) {
        final Request request = rc.getRequest();
        final Signature rtype = request.getSignature();
        boolean fired = false;
        for(ScheduledEventListener listener : _listeners) {
            final Signature ltype = listener.associatedWith();
            if(ltype == rtype) {
                final long timeout = request.getTimeout();
                if(timeout != Request.NO_TIMEOUT) {
                    execute(rc, listener, timeout);
                } else {
View Full Code Here

    public void fire(RequestContext rc) {
        rc.setFired(System.currentTimeMillis());

        Request request = rc.getRequest();
        Signature rsig = request.getSignature();
        if(rsig != Signature.COMMAND) {
            throw new IllegalStateException("Illegal command is passed to CommandProcessor: "
                    + rsig);
        }
        CommandRequest command = (CommandRequest) request;
View Full Code Here

    public void fire(RequestContext rc) throws RemoteException {
        rc.setFired(System.currentTimeMillis());

        final Request request = rc.getRequest();
        final Signature rsig = request.getSignature();
        if(rsig != Signature.QUERY) {
            throw new IllegalStateException("Illegal command is passed to QueryProcessor: " + rsig);
        }
        final QueryRequest queryRequest = (QueryRequest) request;
        final String query = queryRequest.getQuery();
View Full Code Here

TOP

Related Classes of xbird.engine.Request.Signature

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.