Interface horb.orb.Restartable
All Packages Class Hierarchy This Package Previous Next Index
Interface horb.orb.Restartable
- public interface Restartable
- extends Object
Restartable object.
Typical usage:
FileIOCI file = new FileIOCI(new HorbURL("file:///foo.fof"));
Restartable object = file.load();
object.restart();
// the object works here
// if you want to save it again...
object.shutdown();
file.save(object);
A foffile saved like the above can be run by the fofrun command.
- See Also:
- FileIOCI
-
restart()
- restart a revived object.
-
shutdown()
- this method is called before saving the object.
restart
public abstract void restart() throws HORBException, IOException
- restart a revived object. this method is called after
loading the object. Do work in this context.
shutdown
public abstract void shutdown() throws HORBException, IOException
- this method is called before saving the object. Various
shutdown operations should be performed in this method.
All Packages Class Hierarchy This Package Previous Next Index