ozone core API

org.ozoneDB.core
Class ServerComponent

java.lang.Object
  |
  +--org.ozoneDB.core.ServerComponent
Direct Known Subclasses:
AdminManager, ClassManager, GarbageCollector, KeyGenerator, TransactionManager, UserManager, WizardStore

public abstract class ServerComponent
extends java.lang.Object

Base class for all componente of the ozone core.

ServerComponent basically provides method to start/stop the component and to check the internal state of the component. Each component has to properly call the setChanged() method in this regard.

Version:
$Revision: 1.1 $Date: 2001/12/18 10:31:30 $
Author:
SMB

Field Summary
protected  Env env
           
private  boolean hasChanged
           
 
Constructor Summary
ServerComponent(Env env)
           
 
Method Summary
 void clearChanged()
           
 boolean hasChanged()
           
abstract  void save()
          Save the internal state in the state to the server state properties.
 void setChanged()
           
abstract  void shutdown()
           
abstract  void startup()
          Start up and load the internal state from the server state properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

env

protected transient Env env

hasChanged

private boolean hasChanged
Constructor Detail

ServerComponent

public ServerComponent(Env env)
Method Detail

setChanged

public void setChanged()

hasChanged

public boolean hasChanged()

clearChanged

public void clearChanged()

startup

public abstract void startup()
                      throws java.lang.Exception
Start up and load the internal state from the server state properties.

java.lang.Exception

shutdown

public abstract void shutdown()
                       throws java.lang.Exception
java.lang.Exception

save

public abstract void save()
                   throws java.lang.Exception
Save the internal state in the state to the server state properties.

java.lang.Exception

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.