Package org.apache.sling.replication.trigger.impl

Examples of org.apache.sling.replication.trigger.impl.ScheduledReplicationTrigger


        } else if (TRIGGER_SCHEDULED_EVENT.equals(factory)) {
            String action = PropertiesUtil.toString(properties.get(TRIGGER_SCHEDULED_EVENT_PROPERTY_ACTION), ReplicationActionType.POLL.name());
            String path = PropertiesUtil.toString(properties.get(TRIGGER_SCHEDULED_EVENT_PROPERTY_PATH), "/");
            int interval = PropertiesUtil.toInteger(properties.get(TRIGGER_SCHEDULED_EVENT_PROPERTY_SECONDS), 30);

            return new ScheduledReplicationTrigger(action, path, interval, scheduler);
        } else if (TRIGGER_REPLICATION_EVENT.equals(factory)) {
            String path = PropertiesUtil.toString(properties.get(TRIGGER_REPLICATION_EVENT_PROPERTY_PATH), null);

            return new ChainReplicateReplicationTrigger(path, bundleContext);
        } else if (TRIGGER_JCR_EVENT.equals(factory)) {
View Full Code Here

TOP

Related Classes of org.apache.sling.replication.trigger.impl.ScheduledReplicationTrigger

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.