You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:29:22 UTC

[sling-org-apache-sling-distribution-api] 06/11: SLING-5047: specific request state for failed executions vs non existing agents

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.distribution.api-0.1.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-api.git

commit 4559f3aaedcd79d8af860a1284aa2cf945f9550f
Author: Marius Petria <mp...@apache.org>
AuthorDate: Mon Sep 21 09:00:02 2015 +0000

    SLING-5047: specific request state for failed executions vs non existing agents
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/distribution/api@1704238 13f79535-47bb-0310-9956-ffa450edef68
---
 .../sling/distribution/DistributionRequestState.java      | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/distribution/DistributionRequestState.java b/src/main/java/org/apache/sling/distribution/DistributionRequestState.java
index 68da98d..0390242 100644
--- a/src/main/java/org/apache/sling/distribution/DistributionRequestState.java
+++ b/src/main/java/org/apache/sling/distribution/DistributionRequestState.java
@@ -18,6 +18,8 @@
  */
 package org.apache.sling.distribution;
 
+import aQute.bnd.annotation.ProviderType;
+
 /**
  * The different states a {@link org.apache.sling.distribution.DistributionRequest} can have during its lifecycle.
  * Allowed transitions of {@link org.apache.sling.distribution.DistributionRequestState} for a certain
@@ -31,6 +33,7 @@ package org.apache.sling.distribution;
  * will only results in {@code #DISTRIBUTED} or {@code #DROPPED} {@link org.apache.sling.distribution.DistributionRequestState}s
  * while requests executed asynchronously can result in any of {@code #DISTRIBUTED}, {@code #DROPPED} or {@code #ACCEPTED} states.
  */
+@ProviderType
 public enum DistributionRequestState {
 
     /**
@@ -40,13 +43,19 @@ public enum DistributionRequestState {
     DISTRIBUTED,
 
     /**
-     * The request has been dropped and the content could not be successfully
-     * distributed from the source to target instance, this means the request
-     * execution failed during one of: creation, queueing, transport, persistence.
+     * The request has been dropped and the content was not distributed from the source to target instance,
+     * because no distribution agent was found to serve it.
      */
     DROPPED,
 
     /**
+     * The request has been dropped and the content could not be successfully
+     * distributed from the source to target instance because the request
+     * execution failed during one of the phases: creation, queueing, transport, persistence.
+     */
+    FAILED,
+
+    /**
      * The request has been accepted, as a consequence the content to be distributed
      * has been created and queued (and it will be eventually processed asynchronously).
      */

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.