Examples of purge()


Examples of org.hibernate.search.FullTextSession.purge()

    org.hibernate.Query hibQuery = s.createFullTextQuery( query, Clock.class, Book.class );
    List results = hibQuery.list();
    assertEquals("incorrect test record", 1, results.size());
    assertEquals("incorrect test record", 1, ((Clock)results.get( 0 )).getId().intValue());

    s.purge( Clock.class, ((Clock)results.get( 0 )).getId());

    tx.commit();

    tx = s.beginTransaction();
View Full Code Here

Examples of org.hibernate.search.jpa.FullTextEntityManager.purge()

            old.setEnded(ended);
            old.setStatus(STATUS_MODIFIED);
           
            // HibernateSearchのFulTextEntityManagerを用意。修正済みのものはインデックスから削除する by masuda-sensei
            final FullTextEntityManager fullTextEntityManager = Search.getFullTextEntityManager(em);
            fullTextEntityManager.purge(DocumentModel.class, parentPk);
           
            // 関連するモジュールとイメージに同じ処理を実行する
            Collection oldModules = em.createQuery("from ModuleModel m where m.document.id = :id")
            .setParameter("id", parentPk).getResultList();
            for (Iterator iter = oldModules.iterator(); iter.hasNext(); ) {
View Full Code Here

Examples of org.jboss.byteman.rule.Rule.purge()

            int count = transformed.size();
            for (int i =  0; i < count; i++) {
                Transform transform = transformed.get(i);
                Rule rule = transform.getRule();
                if (rule != null) {
                    rule.purge();
                }
            }
        }
    }
   
View Full Code Here

Examples of org.jgroups.util.RetransmitTable.purge()

            Message msg=table.remove(i);
            assert msg.getObject().equals("hello-" + i);
        }
        System.out.println("table after removal of seqno 60: " + table);

        table.purge(50);
        System.out.println("now triggering a resize() by addition of seqno=120");
        addAndGet(table, 120, "120");
       
    }
View Full Code Here

Examples of org.jgroups.util.RetransmitTable.purge()

            Message msg=table.remove(i);
            assert msg.getObject().equals("hello-" + i);
        }
        System.out.println("table after removal of seqno 15: " + table);

        table.purge(15);
        System.out.println("now triggering a resize() by addition of seqno=55");
        addAndGet(table, 55, "hello-55");

        // now we have elements 40-49 in row 1 and 55 in row 2:
        List<String> list=new ArrayList<String>(20);
View Full Code Here

Examples of org.jgroups.util.RetransmitTable.purge()

        assert table.size() == 50;
        assert table.capacity() == 50;
        assert table.getHighestPurged() == 0;
        assert table.getHighest() == 49;

        table.purge(43);
        addAndGet(table, 52, "hello-52");
        assert table.get(43) == null;

        for(long i=44; i < 50; i++) {
            Message msg=table.get(i);
View Full Code Here

Examples of org.jgroups.util.RetransmitTable.purge()

    public static void testMove() {
        RetransmitTable table=new RetransmitTable(3, 10, 0);
        for(long i=0; i < 50; i++)
            addAndGet(table, i, "hello-" + i);
        table.purge(49);
        assert table.isEmpty();
        addAndGet(table, 50, "50");
        assert table.size() == 1;
        assert table.capacity() == 50;
    }
View Full Code Here

Examples of org.jgroups.util.RetransmitTable.purge()

        System.out.println("table (before remove):\n" + table.dump());
        for(long seqno=0; seqno <= 22; seqno++)
            table.remove(seqno);

        System.out.println("\ntable (after remove 22, before purge):\n" + table.dump());
        table.purge(22);
        System.out.println("\ntable: (after purge 22):\n" + table.dump());
        assert table.size() == 2 + seqnos.length;
    }

View Full Code Here

Examples of org.jgroups.util.RetransmitTable.purge()

    public void testCompact() {
        RetransmitTable table=new RetransmitTable(3, 10, 0);
        for(long i=0; i < 80; i++)
            addAndGet(table, i, "hello-" + i);
        assert table.size() == 80;
        table.purge(59);
        assert table.size() == 20;
        table.compact();
        assert table.size() == 20;
        assert table.capacity() == 40;
    }
View Full Code Here

Examples of org.rhq.core.clientapi.agent.bundle.BundleAgentService.purge()

                // get a connection to the agent and tell it to purge the bundle from the file system
                Subject overlord = subjectManager.getOverlord();
                AgentClient agentClient = agentManager.getAgentClient(overlord, resourceDeploy.getResource().getId());
                BundleAgentService bundleAgentService = agentClient.getBundleAgentService();
                BundlePurgeRequest request = new BundlePurgeRequest(resourceDeploy);
                BundlePurgeResponse results = bundleAgentService.purge(request);
                if (!results.isSuccess()) {
                    String errorMessage = results.getErrorMessage();
                    failedToPurge.put(resourceDeploy, errorMessage);
                }
            } catch (Exception e) {
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.