uk.org.iscream.cms.server.core
Class Core

java.lang.Object
  |
  +--uk.org.iscream.cms.server.core.Core
All Implemented Interfaces:
Component

public class Core
extends Object
implements Component

The main class for the CORE of the I-Scream system. This class is the component for CORE I-Scream services namely the Logger and the ConfigurationManager. It registers and starts them, at which point it essentially finishs its role and the started services continue to serve requests from the I-Scream system.

Version:
$Id: Core.java,v 1.28 2003/02/05 16:43:47 tdb Exp $
Author:
$Author: tdb $

Field Summary
private  Logger _logger
          This holds a reference to the system logger that is being used.
private  String _name
          This is the friendly identifier of the component this class is running in.
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
Core()
           
 
Method Summary
 boolean depCheck()
          Does a dependency check.
 void start()
          This method starts the CORE Currently the args are passed direct to the ORB, so any ORB paramaters could go there.
 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

_name

private String _name
This is the friendly identifier of the component this class is running in. eg, a Filter may be called "filter1", If this class does not have an owning component, a name from the configuration can be placed here. This name could also be changed to null for utility classes.


_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

Constructor Detail

Core

public Core()
Method Detail

start

public void start()
           throws ComponentStartException
This method starts the CORE Currently the args are passed direct to the ORB, so any ORB paramaters could go there.

Specified by:
start in interface Component
ComponentStartException

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.NameFormat 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.