fr.paris5.shaman.insight.service
Interface ShutdownService

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
ShutdownServiceImpl

public interface ShutdownService
extends java.rmi.Remote

Allows to shutdown the application remotely.

Warning : exposing this service could be considered as a potential security leak, allowing very easy DOS attacks. It should only be used if the Insight server is running behind a firewall.

Warning : when Insight services are ran "standalone" (e.g. in a Cocoon servlet) calling this service will cause the servlet container to exit.

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

Field Summary
static java.lang.String ROLE
           
 
Method Summary
 boolean shutdown(long delay)
          Attempts to terminate hosting VM after a given delay.
 

Field Detail

ROLE

public static final java.lang.String ROLE
Method Detail

shutdown

public boolean shutdown(long delay)
                 throws java.rmi.RemoteException
Attempts to terminate hosting VM after a given delay.
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.