Package net.timewalker.ffmq3.storage.data.impl.journal

Examples of net.timewalker.ffmq3.storage.data.impl.journal.JournalRecovery


        return browser;
    }
   
    private LocalQueueBrowserEnumeration lookupBrowserEnumeration( AbstractQueueBrowserEnumerationQuery query ) throws JMSException
    {
        LocalQueueBrowser browser = lookupBrowser(query);
        LocalQueueBrowserEnumeration browserEnum = (LocalQueueBrowserEnumeration)browser.lookupRegisteredEnumeration(query.getEnumId());
        if (browserEnum == null)
            throw new FFMQException("Invalid browser enumeration id : "+query.getEnumId(),"NETWORK_ERROR");
        return browserEnum;
    }
View Full Code Here


        return new CreateBrowserResponse();
    }
   
    private QueueBrowserGetEnumerationResponse processQueueBrowserGetEnumeration( QueueBrowserGetEnumerationQuery query ) throws JMSException
    {
        LocalQueueBrowser browser = lookupBrowser(query);
        LocalQueueBrowserEnumeration browserEnum = (LocalQueueBrowserEnumeration)browser.getEnumeration();
       
        QueueBrowserGetEnumerationResponse response = new QueueBrowserGetEnumerationResponse();
        response.setEnumId(browserEnum.getId());

        return response;
View Full Code Here

        return new RollbackMessageResponse();
    }
   
    private CloseBrowserResponse processCloseBrowser( CloseBrowserQuery query ) throws JMSException
    {
        LocalQueueBrowser browser = lookupBrowser(query);
       
        browser.close();

        return new CloseBrowserResponse();
    }
View Full Code Here

    }
   
    private LocalQueueBrowserEnumeration lookupBrowserEnumeration( AbstractQueueBrowserEnumerationQuery query ) throws JMSException
    {
        LocalQueueBrowser browser = lookupBrowser(query);
        LocalQueueBrowserEnumeration browserEnum = (LocalQueueBrowserEnumeration)browser.lookupRegisteredEnumeration(query.getEnumId());
        if (browserEnum == null)
            throw new FFMQException("Invalid browser enumeration id : "+query.getEnumId(),"NETWORK_ERROR");
        return browserEnum;
    }
View Full Code Here

    }
   
    private QueueBrowserGetEnumerationResponse processQueueBrowserGetEnumeration( QueueBrowserGetEnumerationQuery query ) throws JMSException
    {
        LocalQueueBrowser browser = lookupBrowser(query);
        LocalQueueBrowserEnumeration browserEnum = (LocalQueueBrowserEnumeration)browser.getEnumeration();
       
        QueueBrowserGetEnumerationResponse response = new QueueBrowserGetEnumerationResponse();
        response.setEnumId(browserEnum.getId());

        return response;
    }
View Full Code Here

        return response;
    }
   
    private QueueBrowserFetchElementResponse processQueueBrowserFetchElement( QueueBrowserFetchElementQuery query ) throws JMSException
    {
        LocalQueueBrowserEnumeration browserEnum = lookupBrowserEnumeration(query);
       
        QueueBrowserFetchElementResponse response = new QueueBrowserFetchElementResponse();
        if (browserEnum.hasMoreElements())
          response.setMessage((AbstractMessage)browserEnum.nextElement());
        else
          response.setMessage(null);

        return response;
    }
View Full Code Here

        return new CloseBrowserResponse();
    }
   
    private CloseBrowserEnumerationResponse processCloseBrowserEnumeration( CloseBrowserEnumerationQuery query ) throws JMSException
    {
        LocalQueueBrowserEnumeration browserEnum = lookupBrowserEnumeration(query);
       
        browserEnum.close();

        return new CloseBrowserEnumerationResponse();
    }
View Full Code Here

 
    private CreateSessionResponse processCreateSession( CreateSessionQuery query ) throws JMSException
    {
        // Note : acknowledgeMode is forced to CLIENT_ACKNOWLEDGE because we need the autoacknowledge feature
        //        to happen on the remote side
        LocalSession localSession = (LocalSession)getLocalConnection().createSession(query.getSessionId(),
                                                                                 query.isTransacted(),
                                                                                     Session.CLIENT_ACKNOWLEDGE
                                                                                     /*query.getAcknowledgeMode()*/);
       
        // Unregister client inactivity watchdog
        if (!hasCreatedASession)
        {
          hasCreatedASession = true;
          ActivityWatchdog.getInstance().unregister(this);
        }
       
        // Use an internal hook to bridge the local session to the remote peer
        localSession.setNotificationProxy(new RemoteNotificationProxy(localSession.getId(),transport));
       
        return new CreateSessionResponse();
    }
View Full Code Here

        return new CreateSessionResponse();
    }
   
    private LocalSession lookupSession( AbstractSessionQuery query ) throws JMSException
    {
        LocalSession localSession = (LocalSession)getLocalConnection().lookupRegisteredSession(query.getSessionId());
        if (localSession == null)
            throw new FFMQException("Invalid session id : "+query.getSessionId(),"NETWORK_ERROR");
        return localSession;
    }
View Full Code Here

        return localSession;
    }
   
    private LocalMessageConsumer lookupConsumer( AbstractConsumerQuery query ) throws JMSException
    {
        LocalSession localSession = lookupSession(query);
        LocalMessageConsumer consumer = (LocalMessageConsumer)localSession.lookupRegisteredConsumer(query.getConsumerId());
        if (consumer == null)
            throw new FFMQException("Invalid consumer id : "+query.getConsumerId(),"NETWORK_ERROR");
        return consumer;
    }
View Full Code Here

TOP

Related Classes of net.timewalker.ffmq3.storage.data.impl.journal.JournalRecovery

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.