Examples of purge()


Examples of org.apache.cxf.systest.ws.util.MessageFlow.purge()

        mf.purgePartialResponses();
       
        expectedActions = new String[] {RMConstants.getCreateSequenceResponseAction()};
        mf.verifyActions(expectedActions, false);
       
        mf.purge();
        assertEquals(0, outRecorder.getOutboundMessages().size());
        assertEquals(0, inRecorder.getInboundMessages().size());

        // allow resends to kick in
        // await multiple of 3 resends to avoid shutting down server
View Full Code Here

Examples of org.apache.cxf.systest.ws.util.MessageFlow.purge()

        expectedActions = new String[] {RMConstants.getCreateSequenceResponseAction(),
                                        GREETME_RESPONSE_ACTION,
                                        GREETME_RESPONSE_ACTION};
        mf.verifyActions(expectedActions, false);
        mf.verifyMessageNumbers(new String[] {null, "1", "2"}, false);
        mf.purge();
       

        // one standalone acknowledgement should have been sent from the client and one
        // should have been received from the server
  
View Full Code Here

Examples of org.apache.derby.impl.io.vfmem.DataStore.purge()

        // TODO: Should we check if the database is booted / active?
        synchronized (DATABASES) {
            DataStore store = (DataStore)DATABASES.remove(dbName);
            if (store != null) {
                // Delete everything.
                store.purge();
                return true;
            }
            return false;
        }
    }
View Full Code Here

Examples of org.apache.geronimo.console.jmsmanager.helper.JMSMessageHelper.purge()

        if (purgeStr != null) {
            String physicalName = actionRequest.getParameter(PHYSICAL_NAME);
            String resourceAdapterModuleName = actionRequest.getParameter(RESOURCE_ADAPTER_MODULE_NAME);
            JMSMessageHelper helper = JMSMessageHelperFactory.getMessageHelper(actionRequest, resourceAdapterModuleName);
            try {
                helper.purge(actionRequest, JMSDestinationInfo.create(actionRequest));
            } catch (Exception e) {
                portlet.addErrorMessage(actionRequest, portlet.getLocalizedString(actionRequest, "activemq.errorMsg04", physicalName), e.getMessage());
                logger.error("Fail to purge message destination " + physicalName, e);
            }
        }
View Full Code Here

Examples of org.apache.geronimo.console.jmsmanager.helper.JMSMessageHelper.purge()

        if (purgeStr != null) {
            String physicalName = actionRequest.getParameter(PHYSICAL_NAME);
            String resourceAdapterModuleName = actionRequest.getParameter(RESOURCE_ADAPTER_MODULE_NAME);
            JMSMessageHelper helper = JMSMessageHelperFactory.getMessageHelper(actionRequest, resourceAdapterModuleName);
            try {
                helper.purge(actionRequest, JMSDestinationInfo.create(actionRequest));
            } catch (Exception e) {
                portlet.addErrorMessage(actionRequest, portlet.getLocalizedString(actionRequest, "activemq.errorMsg04", physicalName), e.getMessage());
                logger.error("Fail to purge message destination " + physicalName, e);
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.Revision.RevisionComparator.purge()

        assertEquals(-1, comp.compare(r1c2, r1c1));
        assertEquals(-1, comp.compare(r2c2, r2c1));
        assertEquals(1, comp.compare(r3c2, r3c1));
       
        // get rid of old timestamps
        comp.purge(0x10);
        assertEquals(
                "1:\n r120-0-1:r20-0-0 r130-0-1:r30-0-0\n" +
                "2:\n r300-0-2:r30-0-0\n", comp.toString());
        comp.purge(0x20);
        assertEquals(
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.Revision.RevisionComparator.purge()

        assertEquals(-1, comp.compare(r1c2, r1c1));
        assertEquals(-1, comp.compare(r2c2, r2c1));
        assertEquals(1, comp.compare(r3c2, r3c1));

        // get rid of old timestamps
        comp.purge(0x10);
        assertEquals(
                "1:\n r120-0-1:r20-0-0 r130-0-1:r30-0-0\n" +
                "2:\n r300-0-2:r30-0-0\n", comp.toString());
        comp.purge(0x20);
        assertEquals(
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.Revision.RevisionComparator.purge()

        // get rid of old timestamps
        comp.purge(0x10);
        assertEquals(
                "1:\n r120-0-1:r20-0-0 r130-0-1:r30-0-0\n" +
                "2:\n r300-0-2:r30-0-0\n", comp.toString());
        comp.purge(0x20);
        assertEquals(
                "1:\n r130-0-1:r30-0-0\n" +
                "2:\n r300-0-2:r30-0-0\n", comp.toString());

        // update an entry
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.document.Revision.RevisionComparator.purge()

        comp.add(new Revision(0x301, 1, 2), new Revision(0x30, 0, 0));
        assertEquals(
                "1:\n r130-0-1:r30-0-0\n" +
                "2:\n r301-1-2:r30-0-0\n", comp.toString());

        comp.purge(0x30);
        assertEquals("", comp.toString());

    }

    @Test
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.mongomk.Revision.RevisionComparator.purge()

            // happened before the latest revisions of other cluster nodes
            revisionComparator.add(r, headSeen);
            // the head revision is after other revisions
            headRevision = Revision.newRevision(clusterId);
        }
        revisionComparator.purge(Revision.getCurrentTimestamp() - REMEMBER_REVISION_ORDER_MILLIS);
    }

    private void backgroundSplit() {
        for (Iterator<String> it = splitCandidates.keySet().iterator(); it.hasNext();) {
            String id = it.next();
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.