org.neo4j.kernel.impl.persistence
Class IdGeneratorModule

java.lang.Object
  extended by org.neo4j.kernel.impl.persistence.IdGeneratorModule

public class IdGeneratorModule
extends Object

This class represents the IdGenerator module. It receives lifecycle events from the module framework and supports configuration of the IdGenerator.

Generally, configuration of the IdGenerator must be done before the first invocation of the start() method. This is because the IdGenerator does not currently support the modular start/stop/reload operations and there is no way to guarantee consistent behavior if the IdGenerator is not halted during reconfiguration.

See Also:
IdGenerator

Constructor Summary
IdGeneratorModule(EntityIdGenerator idGenerator)
           
 
Method Summary
 void destroy()
           
 EntityIdGenerator getIdGenerator()
           
 String getModuleName()
           
 void init()
           
 void reload()
           
 void setPersistenceSourceInstance(PersistenceSource source)
           
 void start()
           
 void stop()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdGeneratorModule

public IdGeneratorModule(EntityIdGenerator idGenerator)
Method Detail

getIdGenerator

public EntityIdGenerator getIdGenerator()

init

public void init()

start

public void start()

reload

public void reload()

stop

public void stop()

destroy

public void destroy()

getModuleName

public String getModuleName()

setPersistenceSourceInstance

public void setPersistenceSourceInstance(PersistenceSource source)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.