org.astrogrid.acr.builtin
Interface Shutdown


public interface Shutdown

AR Service: Halts the Astro Runtime

Service Name
builtin.shutdown

Method Summary
 void addShutdownListener(ShutdownListener l)
          register a listener for shutdown events
 void halt()
          Bring the AstroRuntime to a graceful halt.
 void reallyHalt()
          Bring the AstroRuntime to a graceful halt, ignoring any objections from clients.
 void removeShutdownListener(ShutdownListener l)
          remove a previously registered listener.
 

Method Detail

halt

void halt()
Bring the AstroRuntime to a graceful halt.

Notes:
notifies all listeners, and if there's any objections displays a prompt for the user to acknowledge then calls Shutdown.reallyHalt()
See Also:
ShutdownListener.lastChance()

reallyHalt

void reallyHalt()
Bring the AstroRuntime to a graceful halt, ignoring any objections from clients. still notifies all listeners that the system is shutting down

Warnings:
Use this method with care - prefer Shutdown.halt() when there's a chance that the ACR has other clients
See Also:
ShutdownListener.halting()

addShutdownListener

void addShutdownListener(ShutdownListener l)
register a listener for shutdown events

Parameters:
l -

removeShutdownListener

void removeShutdownListener(ShutdownListener l)
remove a previously registered listener.

Parameters:
l -


Copyright © 2002-2010 AstroGrid. All Rights Reserved.