Examples of gc()


Examples of com.ponysdk.ui.terminal.ui.PTObject.gc()

            final PTObject unRegisterObject = unRegisterObject(instruction.getObjectID());
            if (unRegisterObject == null) {
                log.info("Cannot GC an garbaged object #" + instruction.getObjectID());
                return;
            }
            unRegisterObject.gc(this);
        } else if (TYPE.KEY_.UPDATE.equals(type)) {
            final PTObject ptObject = objectByID.get(instruction.getObjectID());
            if (ptObject == null) {
                log.info("Cannot update an garbaged object #" + instruction.getObjectID());
                return;
View Full Code Here

Examples of com.sun.enterprise.ee.synchronization.cleaner.Cleaner.gc()

            _logger.log(Level.FINE, "synchronization.tran_commit");

            // cleans the dirs if synchronization is successful
            if (_tx.isCommited()) {
                Cleaner ac = new GroupRequestCleaner(_mediators);
                ac.gc();
            }
        }
    }

    /**
 
View Full Code Here

Examples of com.sun.enterprise.ee.synchronization.cleaner.GroupRequestCleaner.gc()

            _logger.log(Level.FINE, "synchronization.tran_commit");

            // cleans the dirs if synchronization is successful
            if (_tx.isCommited()) {
                Cleaner ac = new GroupRequestCleaner(_mediators);
                ac.gc();
            }
        }
    }

    /**
 
View Full Code Here

Examples of java.lang.management.MemoryMXBean.gc()

        Introspector.flushCaches();
        LogFactory.releaseAll();

        // invoke the garbage collector
        out.println(MSG.getMsg(AgentI18NResourceKeys.GC_INVOKE));
        memoryMxBean.gc();

        printGlobalMemoryUsage(out, memoryMxBean);
        return;
    }
View Full Code Here

Examples of java.lang.management.MemoryMXBean.gc()

    @Override
    public boolean dispatch(KeyEvent evt, ApplicationWindow window) {
        MemoryMXBean memory = ManagementFactory.getMemoryMXBean();
        System.out.println("*** Before GC ***");
        reportStatus(memory);
        memory.gc();
        System.out.println();
        System.out.println("*** After GC ***");
        reportStatus(memory);
        return false;
    }
View Full Code Here

Examples of org.apache.bookkeeper.bookie.GarbageCollector.gc()

        final GarbageCollector garbageCollector =
                new ScanAndCompareGarbageCollector(getLedgerManager(), activeLedgers);
        Thread gcThread = new Thread() {
            @Override
            public void run() {
                garbageCollector.gc(new GarbageCollector.GarbageCleaner() {
                    boolean paused = false;
                    @Override
                    public void clean(long ledgerId) {
                        if (!paused) {
                            inGcProgress.countDown();
View Full Code Here

Examples of org.apache.bookkeeper.bookie.GarbageCollector.gc()

                    LOG.info("Cleaned {}", ledgerId);
                    cleaned.add(ledgerId);
                }
            };

        garbageCollector.gc(cleaner);
        assertNull("Should have cleaned nothing", cleaned.poll());

        long last = createdLedgers.last();
        removeLedger(last);
        garbageCollector.gc(cleaner);
View Full Code Here

Examples of org.apache.bookkeeper.bookie.GarbageCollector.gc()

        garbageCollector.gc(cleaner);
        assertNull("Should have cleaned nothing", cleaned.poll());

        long last = createdLedgers.last();
        removeLedger(last);
        garbageCollector.gc(cleaner);
        assertNotNull("Should have cleaned something", cleaned.peek());
        assertEquals("Should have cleaned last ledger" + last, (long)last, (long)cleaned.poll());

        long first = createdLedgers.first();
        removeLedger(first);
View Full Code Here

Examples of org.apache.bookkeeper.bookie.GarbageCollector.gc()

        assertNotNull("Should have cleaned something", cleaned.peek());
        assertEquals("Should have cleaned last ledger" + last, (long)last, (long)cleaned.poll());

        long first = createdLedgers.first();
        removeLedger(first);
        garbageCollector.gc(cleaner);
        assertNotNull("Should have cleaned something", cleaned.peek());
        assertEquals("Should have cleaned first ledger" + first, (long)first, (long)cleaned.poll());
    }

    @Test(timeout=60000)
View Full Code Here

Examples of org.apache.bookkeeper.bookie.GarbageCollector.gc()

            scannedLedgers.addAll(ledgerRange.getLedgers());
        }

        assertEquals(createdLedgers, scannedLedgers);

        garbageCollector.gc(cleaner);
        assertTrue("Should have cleaned nothing", cleaned.isEmpty());

        long first = createdLedgers.first();
        removeLedger(first);
        garbageCollector.gc(cleaner);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.