Package lt.baltic_amadeus.jqbridge.server

Examples of lt.baltic_amadeus.jqbridge.server.ConfigurationException


    }
   
    public FileQueue getQueue(String queueName) throws ConfigurationException {
        FileQueue queue = (FileQueue) queues.get(queueName);
        if (queue == null)
            throw new ConfigurationException("Queue " + queueName + " not configured for port " + this.name);
        else
            return queue;
    }
View Full Code Here


    public MessageAssociator(Config conf, Server server) throws BridgeException {
        String pfx = "option.msgid.";
        maxCacheSize = conf.getInt(pfx + "cacheSize", 5000);
        decayInterval = conf.getInt(pfx + "decayInterval", 18000000); /* 5h */
        if (maxCacheSize < 0)
            throw new ConfigurationException("option.msgid.cacheSize cannot be negative");
        if (decayInterval < 0L)
            throw new ConfigurationException("option.msgid.decayInterval cannot be negative");
        if (maxCacheSize == 0 && decayInterval == 0L)
            throw new ConfigurationException("option.msgid.cacheSize and option.msgid.decayInterval cannot both be zero");
        if (maxCacheSize > 0 && maxCacheSize < 100) {
            maxCacheSize = 100;
            log.warn("option.msgid.cacheSize is very small, increasing to " + maxCacheSize);
        }
        if (decayInterval > 0L && decayInterval < 300000L) {
View Full Code Here

TOP

Related Classes of lt.baltic_amadeus.jqbridge.server.ConfigurationException

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.