Author: challngr Date: Wed Feb 5 13:21:20 2014 New Revision: 1564764 URL: http://svn.apache.org/r1564764 Log: UIMA-3405 Dump obsolete code.
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-sm/src/main/java/org/apache/uima/ducc/sm/Ping.java uima/sandbox/uima-ducc/trunk/uima-ducc-sm/src/main/java/org/apache/uima/ducc/sm/ServicePingMain.java Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-sm/src/main/java/org/apache/uima/ducc/sm/Ping.java URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-sm/src/main/java/org/apache/uima/ducc/sm/Ping.java?rev=1564764&r1=1564763&r2=1564764&view=diff ============================================================================== --- uima/sandbox/uima-ducc/trunk/uima-ducc-sm/src/main/java/org/apache/uima/ducc/sm/Ping.java (original) +++ uima/sandbox/uima-ducc/trunk/uima-ducc-sm/src/main/java/org/apache/uima/ducc/sm/Ping.java Wed Feb 5 13:21:20 2014 @@ -30,9 +30,9 @@ class Ping { private static final long serialVersionUID = 1L; boolean quit = false; - int instances= 0; - int references = 0; - int runFailures = 0; +// int instances= 0; +// int references = 0; +// int runFailures = 0; Properties smState; public Ping(boolean quit, Properties props) @@ -41,17 +41,17 @@ class Ping this.smState = props; } - public Ping(boolean quit, int instances, int references, int runFailures) - { - this.quit = quit; - this.instances= instances; - this.references = references; - this.runFailures = runFailures; - } +// public Ping(boolean quit, int instances, int references, int runFailures) +// { +// this.quit = quit; +// this.instances= instances; +// this.references = references; +// this.runFailures = runFailures; +// } public boolean isQuit() { return quit; } - public int getInstances() { return instances; } - public int getReferences() { return references; } - public int getRunFailures() { return runFailures; } +// public int getInstances() { return instances; } +// public int getReferences() { return references; } +// public int getRunFailures() { return runFailures; } public Properties getSmState () { return smState; } } Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-sm/src/main/java/org/apache/uima/ducc/sm/ServicePingMain.java URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-sm/src/main/java/org/apache/uima/ducc/sm/ServicePingMain.java?rev=1564764&r1=1564763&r2=1564764&view=diff ============================================================================== --- uima/sandbox/uima-ducc/trunk/uima-ducc-sm/src/main/java/org/apache/uima/ducc/sm/ServicePingMain.java (original) +++ uima/sandbox/uima-ducc/trunk/uima-ducc-sm/src/main/java/org/apache/uima/ducc/sm/ServicePingMain.java Wed Feb 5 13:21:20 2014 @@ -252,8 +252,10 @@ public class ServicePingMain try { ping = (Ping) ois.readObject(); if ( debug ) { - print("Implementors:", ping.getInstances()); - print("References:" , ping.getReferences()); + print("Total instances:" , ping.getSmState().getProperty("total-instances")); + print("Active instances:", ping.getSmState().getProperty("active-instances")); + print("References:" , ping.getSmState().getProperty("references")); + print("Run Failures:" , ping.getSmState().getProperty("runfailures")); } } catch (IOException e) { handleError(custom, e);