[LOG4J2-1175]
Add getters for classes in
org.apache.logging.log4j.core.appender.rolling.action

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/48e97936
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/48e97936
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/48e97936

Branch: refs/heads/master
Commit: 48e979368b7a5a49bafa7ce49ab00f2a66ccf799
Parents: b80adfd
Author: ggregory <ggreg...@apache.org>
Authored: Fri Oct 23 18:26:55 2015 -0700
Committer: ggregory <ggreg...@apache.org>
Committed: Fri Oct 23 18:26:55 2015 -0700

----------------------------------------------------------------------
 .../appender/rolling/action/AbstractAction.java     |  5 +++++
 .../rolling/action/CommonsCompressAction.java       | 16 ++++++++++++++++
 .../appender/rolling/action/CompositeAction.java    |  9 +++++++++
 .../appender/rolling/action/GzCompressAction.java   | 12 ++++++++++++
 .../appender/rolling/action/ZipCompressAction.java  | 16 ++++++++++++++++
 5 files changed, 58 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/48e97936/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractAction.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractAction.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractAction.java
index c766032..633d4bc 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractAction.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/AbstractAction.java
@@ -91,6 +91,10 @@ public abstract class AbstractAction implements Action {
         return complete;
     }
 
+    public boolean isInterrupted() {
+        return interrupted;
+    }
+
     /**
      * Captures exception.
      *
@@ -98,4 +102,5 @@ public abstract class AbstractAction implements Action {
      */
     protected void reportException(final Exception ex) {
     }
+
 }

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/48e97936/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/CommonsCompressAction.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/CommonsCompressAction.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/CommonsCompressAction.java
index b5a9610..de1fed0 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/CommonsCompressAction.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/CommonsCompressAction.java
@@ -131,4 +131,20 @@ public final class CommonsCompressAction extends 
AbstractAction {
         return CommonsCompressAction.class.getSimpleName() + '[' + source + " 
to " + destination //
                 + ", deleteSource=" + deleteSource + ']';
     }
+
+    public String getName() {
+        return name;
+    }
+
+    public File getSource() {
+        return source;
+    }
+
+    public File getDestination() {
+        return destination;
+    }
+
+    public boolean isDeleteSource() {
+        return deleteSource;
+    }
 }

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/48e97936/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/CompositeAction.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/CompositeAction.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/CompositeAction.java
index 9312d2d..5637144 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/CompositeAction.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/CompositeAction.java
@@ -25,6 +25,7 @@ import java.util.List;
  * A group of Actions to be executed in sequence.
  */
 public class CompositeAction extends AbstractAction {
+    
     /**
      * Actions to perform.
      */
@@ -103,4 +104,12 @@ public class CompositeAction extends AbstractAction {
     public String toString() {
         return CompositeAction.class.getSimpleName() + 
Arrays.toString(actions);
     }
+
+    public Action[] getActions() {
+        return actions;
+    }
+
+    public boolean isStopOnError() {
+        return stopOnError;
+    }
 }

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/48e97936/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/GzCompressAction.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/GzCompressAction.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/GzCompressAction.java
index 61fb987..785f6d5 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/GzCompressAction.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/GzCompressAction.java
@@ -124,4 +124,16 @@ public final class GzCompressAction extends AbstractAction 
{
         return GzCompressAction.class.getSimpleName() + '[' + source + " to " 
+ destination //
                 + ", deleteSource=" + deleteSource + ']';
     }
+
+    public File getSource() {
+        return source;
+    }
+
+    public File getDestination() {
+        return destination;
+    }
+
+    public boolean isDeleteSource() {
+        return deleteSource;
+    }
 }

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/48e97936/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/ZipCompressAction.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/ZipCompressAction.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/ZipCompressAction.java
index d7acf8c..8ac9b4b 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/ZipCompressAction.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/ZipCompressAction.java
@@ -135,4 +135,20 @@ public final class ZipCompressAction extends 
AbstractAction {
         return ZipCompressAction.class.getSimpleName() + '[' + source + " to " 
+ destination //
                 + ", level=" + level + ", deleteSource=" + deleteSource + ']';
     }
+
+    public File getSource() {
+        return source;
+    }
+
+    public File getDestination() {
+        return destination;
+    }
+
+    public boolean isDeleteSource() {
+        return deleteSource;
+    }
+
+    public int getLevel() {
+        return level;
+    }
 }

Reply via email to