All Methods
zio package

context

zio
Class ZioShutdown

java.lang.Object
  extended byzio.ZioShutdown

public class ZioShutdown
extends java.lang.Object

Use this class to alter the zio package's shutdown behavior. This class contains two methods:

Make a subclass and override these methods if you want different behavior. THEN you have to pass an instantiation of your subclass to Zio.registerShutdown().


Constructor Summary
ZioShutdown()
           
 
Method Summary
protected  void cleanupAction()
          Defines cleanup for a normal stop with Zio.stop().
protected  void errorAction(java.lang.String message, java.lang.Exception e)
          Defines error action for Zio.abort() and any IOExceptions raised in the zio package's code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZioShutdown

public ZioShutdown()
Method Detail

cleanupAction

protected void cleanupAction()
Defines cleanup for a normal stop with Zio.stop(). Currently this method does nothing. See the class documentation.


errorAction

protected void errorAction(java.lang.String message,
                           java.lang.Exception e)
Defines error action for Zio.abort() and any IOExceptions raised in the zio package's code. Currently this action writes a message to the console and does a System.exit. See the class documentation.

Parameters:
message - an error message
e - the generating exception or null

author
context