uk.org.iscream.cms.server.client
Class ClientMain

java.lang.Object
  extended by uk.org.iscream.cms.server.client.ClientMain
All Implemented Interfaces:
Component

public class ClientMain
extends Object
implements Component

A startup component for the Local Clients. This class starts the CORBA client used for alerting purposes. It reads data using the ClientServant from CORBA calls by the i-scream client interface. This data is then used by the MonitorManager to pass to Monitors. Monitors then analyse the data and raise alerts if needed, these are passed to the Alerters, which send out alerts. They are looked after by the AlerterManager.

Version:
$Id: ClientMain.java,v 1.26 2004/08/01 10:40:40 tdb Exp $
Author:
$Author: tdb $

Field Summary
static Queue _alerterQueue
          A queue for the alerter manager
private  Logger _logger
          This holds a reference to the system logger that is being used.
static Queue _monitorQueue
          A queue for the monitor manager
private  ReferenceManager _refman
          A reference to the reference manager in use
static String NAME
          The friendly name for this component, used by all related classes.
static String REVISION
          The current CVS revision of this class
 
Constructor Summary
ClientMain()
           
 
Method Summary
 boolean depCheck()
          Does a dependency check.
 void start()
          This starts the Local Client component.
 String toString()
          Overrides the Object.toString() method to provide clean logging (every class should have this).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
The current CVS revision of this class

See Also:
Constant Field Values

NAME

public static final String NAME
The friendly name for this component, used by all related classes.

See Also:
Constant Field Values

_logger

private Logger _logger
This holds a reference to the system logger that is being used.


_refman

private ReferenceManager _refman
A reference to the reference manager in use


_alerterQueue

public static Queue _alerterQueue
A queue for the alerter manager


_monitorQueue

public static Queue _monitorQueue
A queue for the monitor manager

Constructor Detail

ClientMain

public ClientMain()
Method Detail

start

public void start()
           throws ComponentStartException
This starts the Local Client component. This starts the ClientServant, the MonitorManager and the AlerterManager, aswell as initialising any queues and obtaining any initial configuration.

Specified by:
start in interface Component
Throws:
ComponentStartException - if the component fails to start

depCheck

public boolean depCheck()
Does a dependency check. Used mainly at startup to see if the required dependencies (components) are up and running.

Specified by:
depCheck in interface Component
Returns:
a boolean value, true if the depdencies are satisfied

toString

public String toString()
Overrides the Object.toString() method to provide clean logging (every class should have this). This uses the uk.org.iscream.cms.util.FormatName class to format the toString()

Overrides:
toString in class Object
Returns:
the name of this class and its CVS revision


Copyright © 2000-2003 i-scream. All Rights Reserved.