fr.paris5.shaman.insight.client
Class AdministrationClient

java.lang.Object
  |
  +--fr.paris5.shaman.insight.client.AdministrationClient

public class AdministrationClient
extends java.lang.Object

Simple client connecting to an InsightManager for performing an administrative task (ping / shutdown).

Exits with -1 when a cli-arg inconsistency was found.

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

Field Summary
protected static int HELP_OPT
           
static java.lang.String INSIGHTCONF_COMMAND
           
protected static int INSIGHTCONF_OPT
           
protected static org.apache.avalon.excalibur.cli.CLOptionDescriptor[] options
           
static java.lang.String PING_COMMAND
           
protected static int PING_OPT
           
static java.lang.String SHUTDOWN_COMMAND
           
protected static int SHUTDOWN_OPT
           
 
Constructor Summary
AdministrationClient(java.lang.String[] args)
           
 
Method Summary
 void executeCommand()
           
 void finish()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHUTDOWN_COMMAND

public static final java.lang.String SHUTDOWN_COMMAND

PING_COMMAND

public static final java.lang.String PING_COMMAND

INSIGHTCONF_COMMAND

public static final java.lang.String INSIGHTCONF_COMMAND

HELP_OPT

protected static final int HELP_OPT

INSIGHTCONF_OPT

protected static final int INSIGHTCONF_OPT

SHUTDOWN_OPT

protected static final int SHUTDOWN_OPT

PING_OPT

protected static final int PING_OPT

options

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

AdministrationClient

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

executeCommand

public void executeCommand()
                    throws org.apache.avalon.framework.component.ComponentException,
                           java.rmi.RemoteException

finish

public void finish()

main

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


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