ozone core API

org.ozoneDB.core
Class KeyGenerator

java.lang.Object
  extended byorg.ozoneDB.core.ServerComponent
      extended byorg.ozoneDB.core.KeyGenerator

public final class KeyGenerator
extends ServerComponent

Version:
$Revision: 1.5 $Date: 2002/09/18 06:54:15 $
Author:
SMB

Field Summary
private  long idBorder
           
private  long idCount
           
private  long idRange
           
 
Fields inherited from class org.ozoneDB.core.ServerComponent
env
 
Constructor Summary
KeyGenerator(Env env)
           
 
Method Summary
 long nextID()
           
 long nextID(long range)
           
 void save()
          Save the internal state in the state to the server state properties.
 void shutdown()
           
 void startup()
          Start up and load the internal state from the server state properties.
 
Methods inherited from class org.ozoneDB.core.ServerComponent
clearChanged, hasChanged, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idCount

private long idCount

idBorder

private long idBorder

idRange

private long idRange
Constructor Detail

KeyGenerator

public KeyGenerator(Env env)
Method Detail

startup

public void startup()
             throws java.lang.Exception
Description copied from class: ServerComponent
Start up and load the internal state from the server state properties.

Specified by:
startup in class ServerComponent
Throws:
java.lang.Exception

shutdown

public void shutdown()
              throws java.lang.Exception
Specified by:
shutdown in class ServerComponent
Throws:
java.lang.Exception

save

public void save()
          throws java.lang.Exception
Description copied from class: ServerComponent
Save the internal state in the state to the server state properties.

Specified by:
save in class ServerComponent
Throws:
java.lang.Exception

nextID

public long nextID()

nextID

public long nextID(long range)

ozone core API

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