fr.paris5.shaman.insight.server.rmi
Class ShutdownServiceImpl

fr.paris5.shaman.insight.component.AbstractExposedService
  |
  +--fr.paris5.shaman.insight.server.rmi.ShutdownServiceImpl
All Implemented Interfaces:
ExposedService, InsightConfigurationConstants, java.rmi.Remote, java.io.Serializable, ShutdownService, SystemConfigurationConstants

public class ShutdownServiceImpl
extends AbstractExposedService
implements ShutdownService

Implementation of ShutdownService.

Version:
$Id: ShutdownServiceImpl.java,v 1.1 2002/06/18 12:23:12 caillette Exp $
Author:
Laurent Caillette
See Also:
Serialized Form

Fields inherited from class fr.paris5.shaman.insight.component.AbstractExposedService
iContext, insightManager, isRMIServer, logManager, port, portFactoryParamTypes, portParamTypes, ref, rmiIdentifier
 
Fields inherited from interface fr.paris5.shaman.insight.service.ShutdownService
ROLE
 
Fields inherited from interface fr.paris5.shaman.system.SystemConfigurationConstants
BASEDIRURL_ATTRIBUTE, DEFAULTHOSTNAME, EMPTYSYSTEM_RESOURCE, HOSTNAME_ATTRIBUTE, PORT_ATTRIBUTE, RUNSTYLE_ATTRIBUTE, SYSTEMCONFIGURATION_DEFAULT_RESOURCE
 
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
ShutdownServiceImpl()
           
ShutdownServiceImpl(int port)
           
 
Method Summary
 boolean shutdown(long delay)
          Attempts to terminate hosting VM after a given delay.
 
Methods inherited from class fr.paris5.shaman.insight.component.AbstractExposedService
clone, compose, configure, contextualize, dispose, doCompose, doConfigure, doContextualize, doDispose, doInitialize, equals, exportObject, exportObject, exportObject, getInsightManager, getLogManager, getRef, hashCode, initialize, readObject, reexport, setLogKitManager, toString, writeObject
 

Constructor Detail

ShutdownServiceImpl

public ShutdownServiceImpl()

ShutdownServiceImpl

public ShutdownServiceImpl(int port)
                    throws java.rmi.RemoteException
Method Detail

shutdown

public boolean shutdown(long delay)
                 throws java.rmi.RemoteException
Description copied from interface: ShutdownService
Attempts to terminate hosting VM after a given delay.
Specified by:
shutdown in interface ShutdownService
Following copied from interface: fr.paris5.shaman.insight.service.ShutdownService
Parameters:
delay - Delay in milliseconds before shutdown.
Returns:
if the shutdown request was accepted, false otherwise.
Throws:
java.rmi.RemoteException -  


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