fr.paris5.shaman.insight.server
Class InsightServer

java.lang.Object
  |
  +--fr.paris5.shaman.insight.server.InsightServer
All Implemented Interfaces:
InsightConfigurationConstants

public class InsightServer
extends java.lang.Object
implements InsightConfigurationConstants

Insight RMI server. Reads a configuration file, and instantiates services from it using an InsightManager.

The server performs a self-test based on PingService. First the component must be present in the internally-instancied InsightManager, then it should be able to ping the server.

The server runs until the process is killed, or the ShutdownService is used. Then the InsightManager is disposed cleanly.

Version:
$Id: InsightServer.java,v 1.1 2002/06/18 12:23:12 caillette Exp $
Author:
Laurent Caillette

Field Summary
protected static int HELP_OPT
           
protected static int INSIGHTCONF_OPT
           
private  java.net.URL insightConfigurationURL
           
private  InsightManager insightManager
           
protected static int LOGKITCONF_OPT
           
private  java.net.URL logkitConfigurationURL
           
private  org.apache.avalon.excalibur.logger.DefaultLogKitManager logKitManager
           
protected static org.apache.avalon.excalibur.cli.CLOptionDescriptor[] options
           
 
Fields inherited from interface fr.paris5.shaman.insight.component.InsightConfigurationConstants
CLASS_ATTRIBUTE, COMMANDLOGS_ELEMENT, DEFAULT_PREVALENCEBASE_DIR, DIR_ELEMENT, EXPOSEDAS_ATTRIBUTE, LOGKITCONFIGURATION_DEFAULT_RESOURCE, PERSISTING_ATTRIBUTE, ROLE_ATTRIBUTE, SNAPSHOTDIR_ELEMENT, SYSTEMCONFIGURATIONURL_ATTRIBUTE
 
Constructor Summary
InsightServer(java.lang.String[] args)
           
 
Method Summary
private  void activateInsightManager()
           
private  void activateLogger()
           
private  void checkPingServiceLocallyAvailable()
           
private  void defaultOptionsFallback()
           
static void main(java.lang.String[] args)
           
private  void parseOptions(java.lang.String[] args)
           
private static void printUsage()
           
private  void selfPing()
           
private  void shutdown()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

insightConfigurationURL

private java.net.URL insightConfigurationURL

logkitConfigurationURL

private java.net.URL logkitConfigurationURL

logKitManager

private org.apache.avalon.excalibur.logger.DefaultLogKitManager logKitManager

insightManager

private InsightManager insightManager

HELP_OPT

protected static final int HELP_OPT

INSIGHTCONF_OPT

protected static final int INSIGHTCONF_OPT

LOGKITCONF_OPT

protected static final int LOGKITCONF_OPT

options

protected static final org.apache.avalon.excalibur.cli.CLOptionDescriptor[] options
Constructor Detail

InsightServer

public InsightServer(java.lang.String[] args)
              throws java.lang.Exception
Method Detail

defaultOptionsFallback

private void defaultOptionsFallback()

activateLogger

private void activateLogger()
                     throws java.lang.Exception

activateInsightManager

private void activateInsightManager()
                             throws java.lang.Exception

checkPingServiceLocallyAvailable

private void checkPingServiceLocallyAvailable()
                                       throws java.lang.Exception

selfPing

private void selfPing()
               throws java.lang.Exception

shutdown

private void shutdown()

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception

parseOptions

private void parseOptions(java.lang.String[] args)
                   throws java.lang.Exception

printUsage

private static void printUsage()


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.