Package org.apache.jackrabbit.core.cluster.SimpleEventListener

Examples of org.apache.jackrabbit.core.cluster.SimpleEventListener.UpdateEvent


        events.add(createEventState(n1, Event.NODE_ADDED, "{}n1"));
        events.add(createEventState(p1, n1, Event.PROPERTY_ADDED));
        events.add(createEventState(p2, n2, Event.PROPERTY_REMOVED));
        events.add(createEventState(n3, Event.NODE_REMOVED, "{}n3"));

        return new UpdateEvent(changes, events, System.currentTimeMillis(), "user-data");
    }
View Full Code Here


    /**
     * Test producing and consuming an update.
     * @throws Exception
     */
    public void testUpdateOperation() throws Exception {
        UpdateEvent update = factory.createUpdateOperation();

        UpdateEventChannel channel = master.createUpdateChannel(DEFAULT_WORKSPACE);
        channel.updateCreated(update);
        channel.updatePrepared(update);
        channel.updateCommitted(update, null);
View Full Code Here

        events.add(createEventState(n1, Event.NODE_ADDED, "{}n1", session));
        events.add(createEventState(p1, n1, Event.PROPERTY_ADDED, session));
        events.add(createEventState(p2, n2, Event.PROPERTY_REMOVED, session));
        events.add(createEventState(n3, Event.NODE_REMOVED, "{}n3", session));

        return new UpdateEvent(changes, events, System.currentTimeMillis(), "user-data");
    }
View Full Code Here

        events.add(createEventState(n1, Event.NODE_ADDED, "{}n1", s));
        events.add(createEventState(p1, n1, Event.PROPERTY_ADDED, s));
        events.add(createEventState(p2, n2, Event.PROPERTY_REMOVED, s));
        events.add(createEventState(n3, Event.NODE_REMOVED, "{}n3", s));

        return new UpdateEvent(changes, events, System.currentTimeMillis(), "user-data");
    }
View Full Code Here

    /**
     * Test producing and consuming an update.
     * @throws Exception
     */
    public void testUpdateOperation() throws Exception {
        UpdateEvent update = factory.createUpdateOperation();

        UpdateEventChannel channel = master.createUpdateChannel(DEFAULT_WORKSPACE);
        channel.updateCreated(update);
        channel.updatePrepared(update);
        channel.updateCommitted(update, null);
View Full Code Here

        events.add(createEventState(n1, Event.NODE_ADDED, "{}n1"));
        events.add(createEventState(p1, n1, Event.PROPERTY_ADDED));
        events.add(createEventState(p2, n2, Event.PROPERTY_REMOVED));
        events.add(createEventState(n3, Event.NODE_REMOVED, "{}n3"));

        return new UpdateEvent(changes, events, System.currentTimeMillis(), "user-data");
    }
View Full Code Here

        events.add(createEventState(n1, Event.NODE_ADDED, "{}n1", session));
        events.add(createEventState(p1, n1, Event.PROPERTY_ADDED, session));
        events.add(createEventState(p2, n2, Event.PROPERTY_REMOVED, session));
        events.add(createEventState(n3, Event.NODE_REMOVED, "{}n3", session));

        return new UpdateEvent(changes, events, System.currentTimeMillis(), "user-data");
    }
View Full Code Here

        events.add(createEventState(n1, Event.NODE_ADDED, "{}n1", s));
        events.add(createEventState(p1, n1, Event.PROPERTY_ADDED, s));
        events.add(createEventState(p2, n2, Event.PROPERTY_REMOVED, s));
        events.add(createEventState(n3, Event.NODE_REMOVED, "{}n3", s));

        return new UpdateEvent(changes, events, System.currentTimeMillis(), "user-data");
    }
View Full Code Here

    /**
     * Test producing and consuming an update.
     * @throws Exception
     */
    public void testUpdateOperation() throws Exception {
        UpdateEvent update = factory.createUpdateOperation();

        UpdateEventChannel channel = master.createUpdateChannel(DEFAULT_WORKSPACE);
        channel.updateCreated(update);
        channel.updatePrepared(update);
        channel.updateCommitted(update, null);
View Full Code Here

    /**
     * Test producing and consuming an update with a null userId
     */
    public void testUpdateOperationWithNullUserId() throws Exception {
        UpdateEvent update = factory.createUpdateOperationWithNullUserId();

        UpdateEventChannel channel = master.createUpdateChannel(DEFAULT_WORKSPACE);
        channel.updateCreated(update);
        channel.updatePrepared(update);
        channel.updateCommitted(update, null);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.cluster.SimpleEventListener.UpdateEvent

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.