You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ch...@apache.org on 2013/11/04 21:11:26 UTC
svn commit: r1538748 -
/uima/sandbox/uima-ducc/trunk/uima-ducc-cli/src/main/java/org/apache/uima/ducc/cli/AServicePing.java
Author: challngr
Date: Mon Nov 4 20:11:25 2013
New Revision: 1538748
URL: http://svn.apache.org/r1538748
Log:
UIMA-3405 New methods to support more intelligent service monitoring.
Modified:
uima/sandbox/uima-ducc/trunk/uima-ducc-cli/src/main/java/org/apache/uima/ducc/cli/AServicePing.java
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-cli/src/main/java/org/apache/uima/ducc/cli/AServicePing.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-cli/src/main/java/org/apache/uima/ducc/cli/AServicePing.java?rev=1538748&r1=1538747&r2=1538748&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-cli/src/main/java/org/apache/uima/ducc/cli/AServicePing.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-cli/src/main/java/org/apache/uima/ducc/cli/AServicePing.java Mon Nov 4 20:11:25 2013
@@ -26,6 +26,11 @@ import org.apache.uima.ducc.common.IServ
public abstract class AServicePing
{
+
+ int implementors = 0;
+ int references = 0;
+ int runErrors = 0;
+
/**
* Called by the ping driver, to pass in useful things the pinger may want.
* @param arguments This is passed in from the service specification's
@@ -49,4 +54,44 @@ public abstract class AServicePing
*/
public abstract IServiceStatistics getStatistics();
+ public int countAdditions()
+ {
+ return 0;
+ }
+
+ public int countDeletions()
+ {
+ return 0;
+ }
+
+ public int countImplementors()
+ {
+ return implementors;
+ }
+
+ public int countReferences()
+ {
+ return references;
+ }
+
+ public void setImplementors(int imp)
+ {
+ this.implementors = imp;
+ }
+
+ public void setReferences(int ref)
+ {
+ this.references = ref;
+ }
+
+ public void setRunErrors(int e)
+ {
+ this.runErrors = e;
+ }
+
+ public boolean isExcessiveErrors()
+ {
+ return false;
+ }
+
}