|
All Methods zio package context |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zio.ZioShutdown
Use this class to alter the zio package's shutdown behavior. This class contains two methods:
cleanupAction()
called by Zio.stop()
errorAction()
called by Zio.abort()
and
when there is an IOException in the zio package's code.
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 |
public ZioShutdown()
Method Detail |
protected void cleanupAction()
Zio.stop()
.
Currently this method does nothing. See the class
documentation.
protected void errorAction(java.lang.String message, java.lang.Exception e)
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.
message
- an error messagee
- the generating exception or null
|
author context |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |