Package org.tubo.resource.consumer

Examples of org.tubo.resource.consumer.ConsumerManager


        // get all consumers (managers)
        List consumerManagers =  resourceManager.getConsumerManagers();
        //
        // loop over consumer managers
        for (Iterator it=consumerManagers.iterator(); it.hasNext();) {
            ConsumerManager consumerManager = (ConsumerManager)it.next();
            try {
                //
                // delegate consumer loading to manager
                consumerManager.load();
            } catch (TuboConsumerException e) {
                //
                // if something go wrong then a exception is throw and execution ends
                throw resourceManager.getExceptionManager().getException(1100,consumerManager.getId(),e);
            }
        }
        //
        // set running flag
        running=true;
View Full Code Here


        // get all consumers (managers)
        List consumerManagers =  resourceManager.getConsumerManagers();
        //
        // loop over consumer managers
        for (Iterator it=consumerManagers.iterator(); it.hasNext();) {
            ConsumerManager consumerManager = (ConsumerManager)it.next();
            try {
                //
                // delegate consumer loading to manager
                consumerManager.unload();
            } catch (TuboConsumerException e) {
                //
                // if something go wrong then a exception is throw and execution ends
                throw resourceManager.getExceptionManager().getException(1100,consumerManager.getId(),e);
            }
        }

        synchronized (this) {
            notify();
View Full Code Here

        //
        // get manager identified by id
        Manager manager = getManager(id);
        //
        // define var
        ConsumerManager consumerManager;
        //
        // check instanceof
        if (manager instanceof ConsumerManager) {
            //
            // cast manager to Consumermanager
View Full Code Here

        Map defs = configuration.getConsumerDefs();
        //
        // iterate over all consumer definitions, extract id and get Manager for th
        for (Iterator it=defs.values().iterator(); it.hasNext();) {
            ConsumerDef def = (ConsumerDef)it.next();
            ConsumerManager manager = getConsumerManager(def.getId());
            managers.add(manager);
        }
        //
        // return managers
        return managers;
View Full Code Here

TOP

Related Classes of org.tubo.resource.consumer.ConsumerManager

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.