You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2010/06/29 16:06:54 UTC
svn commit: r958975 -
/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/LocalCache.java
Author: cwiklik
Date: Tue Jun 29 14:06:54 2010
New Revision: 958975
URL: http://svn.apache.org/viewvc?rev=958975&view=rev
Log:
UIMA-1820 overloaded dumpContents() to enable dumping of output to stdout
Modified:
uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/LocalCache.java
Modified: uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/LocalCache.java
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/LocalCache.java?rev=958975&r1=958974&r2=958975&view=diff
==============================================================================
--- uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/LocalCache.java (original)
+++ uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/LocalCache.java Tue Jun 29 14:06:54 2010
@@ -84,8 +84,10 @@ public class LocalCache extends Concurre
}
return parentCasReferenceId;
}
-
- public synchronized void dumpContents() {
+ public void dumpContents() {
+ dumpContents(false);
+ }
+ public synchronized void dumpContents(boolean dump2Stdout) {
int count = 0;
if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {
StringBuffer sb = new StringBuffer("\n");
@@ -113,6 +115,9 @@ public class LocalCache extends Concurre
UIMAFramework.getLogger(CLASS_NAME).logrb(Level.FINEST, CLASS_NAME.getName(), "dumpContents",
UIMAEE_Constants.JMS_LOG_RESOURCE_BUNDLE, "UIMAEE_show_cache_entry_key__FINEST",
new Object[] { controller.getComponentName(), count, sb.toString() });
+ if ( dump2Stdout ) {
+ System.out.println(sb.toString());
+ }
sb.setLength(0);
} else if (UIMAFramework.getLogger().isLoggable(Level.FINE)) {
int inFinalState = 0;