Package org.apache.sling.replication.queue

Examples of org.apache.sling.replication.queue.ReplicationQueueException


                log.info("status of job {} is {}", job.getId(), job.getJobState());
            } else {
                itemStatus.setItemState(ItemState.DROPPED);
            }
        } catch (Exception e) {
            throw new ReplicationQueueException("unable to retrieve the queue status", e);
        }
        return itemStatus;
    }
View Full Code Here


                    log.warn("item {} moved to the error queue", firstItem);

                    ReplicationQueue errorQueue = queueProvider.getQueue(agent, ERROR_QUEUE_NAME);
                    if (!errorQueue.add(firstItem)) {
                        log.error("failed to move item {} the queue {}", firstItem, errorQueue);
                        throw new ReplicationQueueException("could not move an item to the error queue");
                    }
                }
                log.warn("item {} dropped from the default queue", firstItem);
                defaultQueue.remove(firstItem.getId());
            }
View Full Code Here

        ReplicationQueueItem queueItem = getItem(replicationPackage);
        ReplicationQueue queue = getQueue(agentName, queueItem, queueProvider);
        if (queue != null) {
            return queue.add(queueItem);
        } else {
            throw new ReplicationQueueException("could not get a queue for agent " + agentName);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.replication.queue.ReplicationQueueException

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.