Package com.qspin.qtaste.datacollection.collection

Examples of com.qspin.qtaste.datacollection.collection.Cache


        try {
            final long beginTime_ms = System.currentTimeMillis(); // begin time
            long elapsedTime_ms = 0; // total elapsed time
            final long checkTimeInterval_ms = 100; // check every 100 ms

            Cache cache = CacheImpl.getInstance();

            LinkedList<Object> currentValues = new LinkedList<Object>();
            String mismatchVariableName = null;
            Object mismatchVariableValue = null;
            Object mismatchVariableExpectedValue = null;

            do {
                // Get current values and check if they match the expected values
                currentValues.clear();
                Set<Map.Entry<String, Object>> list = expectedValues.entrySet();
                Iterator<Map.Entry<String, Object>> i = list.iterator();
                boolean allVariablesMatch = true;
                while (i.hasNext()) {
                    Map.Entry<String, Object> entry = i.next();
                    String key = entry.getKey();
                    Object expected = entry.getValue();

                    // get current value and store it
                    Object currentValue;
                    try {
                        currentValue = cache.getLast(key).getValue();
                    } catch (QTasteTestFailException e) {
                        currentValue = null;
                    }
                    currentValues.add(currentValue);
View Full Code Here


    public void start() {
        //logger.info("AbstractPusher has been started");
        assert !running;
        interrupted = false;

        Cache cache = CacheImpl.getInstance();

        iCacheValues = hash.getByInsertionTime();
        cache.clear();
        // TODO: only clear data from simulated CU

        startTimestamp = cache.getClearHistoryTimestamp();

        broadcastTill(hash.getClearHistoryTimestamp(), false);      
        thread.start();
    }
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.datacollection.collection.Cache

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.