org.apache.uima.ducc.cli
Class AServicePing

java.lang.Object
  extended by org.apache.uima.ducc.cli.AServicePing

public abstract class AServicePing
extends Object

Abstraction for service pinger.


Constructor Summary
AServicePing()
           
 
Method Summary
 int countAdditions()
           
 int countDeletions()
           
 int countImplementors()
           
 int countReferences()
           
 int getRunFailures()
           
abstract  IServiceStatistics getStatistics()
          Returns the object with application-derived health and statistics.
abstract  void init(String arguments, String endpoint)
          Called by the ping driver, to pass in useful things the pinger may want.
 boolean isExcessiveFailures()
           
 void setImplementors(int imp)
           
 void setReferences(int ref)
           
 void setRunFailures(int e)
           
abstract  void stop()
          Stop is called by the ping wrapper when it is being killed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AServicePing

public AServicePing()
Method Detail

init

public abstract void init(String arguments,
                          String endpoint)
                   throws Exception
Called by the ping driver, to pass in useful things the pinger may want.

Parameters:
arguments - This is passed in from the service specification's service_ping_arguments string.
endpoint - This is the name of the service endpoint, as passed in at service registration.
Throws:
Exception

stop

public abstract void stop()
Stop is called by the ping wrapper when it is being killed. Implementors may optionally override this method with conenction shutdown code.


getStatistics

public abstract IServiceStatistics getStatistics()
Returns the object with application-derived health and statistics.

Returns:
This object contains the informaton the service manager and web server require for correct management and display of the service.

countAdditions

public int countAdditions()

countDeletions

public int countDeletions()

countImplementors

public int countImplementors()

countReferences

public int countReferences()

setImplementors

public void setImplementors(int imp)

setReferences

public void setReferences(int ref)

setRunFailures

public void setRunFailures(int e)

getRunFailures

public int getRunFailures()

isExcessiveFailures

public boolean isExcessiveFailures()


Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.