uk.org.iscream.cms.server.componentmanager
Class ComponentManager

java.lang.Object
  |
  +--uk.org.iscream.cms.server.componentmanager.ComponentManager

public class ComponentManager
extends Object

The component manager is the starting point for all server side components of the iscream system. It loads its initial system configuration from the default properties file, it then starts all the iscream components as specified in the default.properties under uk.org.iscream.cms.server.ComponentList

Version:
$Id: ComponentManager.java,v 1.43 2003/05/05 22:05:09 tdb Exp $
Author:
$Author: tdb $

Field Summary
private static LinkedList _componentsToStart
           
private static int _startTimeout
           
static int DEFAULT_COMPONENT_START_TIMEOUT
          The default time to wait before retrying component.
static String DEFAULTPROPERTIES
          The default location of the properties file for the system
static String REVISION
          The current CVS revision of this class
static String toString
          The toString() of this class As it won't be instatiated, this is needed.
 
Constructor Summary
ComponentManager()
           
 
Method Summary
static void main(String[] args)
          The main method which starts the components as listed in the default.properties file.
private static void startUp()
          Starts the components as obtained from the configuration.
static void usage()
          A simple method to print the usage of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

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

See Also:
Constant Field Values

toString

public static final String toString
The toString() of this class As it won't be instatiated, this is needed. Not also that we pass a null as the class name (as we are static)


DEFAULTPROPERTIES

public static final String DEFAULTPROPERTIES
The default location of the properties file for the system

See Also:
Constant Field Values

DEFAULT_COMPONENT_START_TIMEOUT

public static final int DEFAULT_COMPONENT_START_TIMEOUT
The default time to wait before retrying component.

See Also:
Constant Field Values

_componentsToStart

private static LinkedList _componentsToStart

_startTimeout

private static int _startTimeout
Constructor Detail

ComponentManager

public ComponentManager()
Method Detail

main

public static void main(String[] args)
The main method which starts the components as listed in the default.properties file.

Parameters:
args - the command line arguments

startUp

private static void startUp()
Starts the components as obtained from the configuration. This method calls the start() methods on all the components. If a component fails to start due to a CORBA communication problem, then it catches this and tries to start it again according to uk.org.iscream.cms.server.ComponentTimeout time. If the server dies and CORBA connections are lost, this method is called again.


usage

public static void usage()
A simple method to print the usage of this class. It never returns, but instead exits to the system with a value 1, to indicate the system did not start properly.



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