editorListener.handlers
Class ServiceChecker

java.lang.Object
  extended by editorListener.handlers.ServiceChecker

public class ServiceChecker
extends java.lang.Object

This singleton class makes sure all of the services implemented are running. It can be subclassed.

Version:
3/8/2009
Author:
Matthew Harward

Method Summary
 void clearAllServices()
          Clears services in use.
static ServiceChecker getInstance()
           
 void restartAllServices()
          This method attempts to start all required services.
 boolean servicesRunning()
           
static void start()
          A convenience method for getting and starting all services.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ServiceChecker getInstance()

servicesRunning

public boolean servicesRunning()
Returns:
true if all services are running, otherwise false.

restartAllServices

public void restartAllServices()
This method attempts to start all required services.


clearAllServices

public void clearAllServices()
Clears services in use. This method makes no promise to clear all dispatch services in use.


start

public static void start()
A convenience method for getting and starting all services.