Package com.cibuddy.core.build.indicator

Examples of com.cibuddy.core.build.indicator.IBuildStatusIndicator


                // we have to set the index (not using the default of 0)
                index = Integer.parseInt(xfd.getIndicatorId());
            }
            IIndicatorBehaviorConfiguration psec = getConfiguration(xfd.getConfig());
            LOG.debug("index for configured indicator identified as {} for configuration {}", index, this);
            IBuildStatusIndicator ibsi = getBuildStatusIndicatorByServiceIndex(index);
            // FIXME: incorporate a better configuration of indicators
//            IProjectIndicator ipi = getProjectIndicator(xfd.getIndicatorId());
            if(psec != null){
                if(ibsi != null){
                    StatusAction sa = psec.evaluate(this);
                    if(sa != null) {
                        ibsi.indicate(sa);
                    }
                } else {
                    LOG.info("no indicator found - I can't indicate anything without that one ");
                }
            } else {
View Full Code Here


        }
        System.out.println("Disclaimer: Not all devices support all actions!");
        while(iter.hasNext()){
            i++;
            // move iterator on forward
            IBuildStatusIndicator ibsi = (IBuildStatusIndicator) iter.next();
            // two distinct different usecases: 1) test ALL devices 2) test the matching one
            if(all == true || i == toMatch) {
                if(action == null) {
                    // iterate through all colors and name the device
                    System.out.println("Testing eXtreme Feedback Device: ["+toMatch+"] "+ibsi.getComponentId() + ":" + ibsi.getIndicatorId());
                    System.out.println(ibsi.toString());
                    // invoke the device...
                    indicate(StatusAction.SUCCESS, ibsi, true);
                    indicate(StatusAction.WARNING, ibsi, true);
                    indicate(StatusAction.BUILDING, ibsi, true);
                    indicate(StatusAction.FAILURE, ibsi, true);
                    indicate(StatusAction.OFF, ibsi, true);
                } else {
                    // only show one specific status action
                    System.out.println("indicating " + action + " on eXtreme Feedback Device: "+toMatch);
                    ibsi.indicate(StatusAction.get(action));
                }
                // the match is relevant, no matter where we are
                match = true;
                if(!all){
                    // prevent the break out of the loop in case we iterate through all
View Full Code Here

        Iterator iter = indicators.iterator();
        int i = -1;
        while(iter.hasNext()){
            i++;
           
            IBuildStatusIndicator ibsi = (IBuildStatusIndicator) iter.next();
            System.out.println("eXtreme Feedback Device : ["+i+"] "+ibsi.getComponentId() + ":" + ibsi.getIndicatorId());
        }
        if(i<0){
            System.out.println("No eXtreme Feedback Device found." );
        }
        return null;
View Full Code Here

        StringsCompleter delegate = new StringsCompleter();
        Iterator iter = indicators.iterator();
        int i = -1;
        while(iter.hasNext()){
            i++;
            IBuildStatusIndicator ibsi = (IBuildStatusIndicator) iter.next();
            // we only need the id for this one
            delegate.getStrings().add(String.valueOf(i));
        }
        return delegate.complete(buffer, cursor, candidates);
    }
View Full Code Here

TOP

Related Classes of com.cibuddy.core.build.indicator.IBuildStatusIndicator

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.