|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.impl.nioneo.store.CommonAbstractStore
org.neo4j.kernel.impl.nioneo.store.AbstractStore
org.neo4j.kernel.impl.nioneo.store.NeoStore
public class NeoStore
This class contains the references to the "NodeStore,RelationshipStore, PropertyStore and RelationshipTypeStore". NeoStore doesn't actually "store" anything but extends the AbstractStore for the "type and version" validation performed in there.
| Field Summary | |
|---|---|
static String |
DEFAULT_NAME
|
static String |
TYPE_DESCRIPTOR
|
| Fields inherited from class org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore |
|---|
ALL_STORES_VERSION, logger, storageFileName, UNKNOWN_VERSION |
| Constructor Summary | |
|---|---|
NeoStore(Map<?,?> config)
|
|
| Method Summary | |
|---|---|
protected void |
checkVersion()
|
protected void |
closeStorage()
Closes the node,relationship,property and relationship type stores. |
static void |
createStore(String fileName,
Map<?,?> config)
Creates the neo,node,relationship,property and relationship type stores. |
void |
flushAll()
|
List<WindowPoolStats> |
getAllWindowPoolStats()
|
long |
getCreationTime()
|
IdGeneratorFactory |
getIdGeneratorFactory()
|
long |
getLastCommittedTx()
|
NodeStore |
getNodeStore()
Returns the node store. |
PropertyStore |
getPropertyStore()
Returns the property store. |
long |
getRandomNumber()
|
int |
getRecordSize()
Returns the fixed size of each record in this store. |
int |
getRelationshipGrabSize()
|
RelationshipStore |
getRelationshipStore()
The relationship store. |
RelationshipTypeStore |
getRelationshipTypeStore()
Returns the relationship type store. |
StoreId |
getStoreId()
|
long |
getStoreVersion()
|
static long |
getStoreVersion(String storeDir)
|
TxHook |
getTxHook()
|
String |
getTypeDescriptor()
Returns the type and version that identifies this store. |
long |
getVersion()
|
long |
incrementVersion()
|
protected void |
initStorage()
Called from the constructor after the end header has been checked. |
boolean |
isStoreOk()
|
void |
logIdUsage(StringLogger msgLog)
|
static void |
logIdUsage(StringLogger logger,
Store store)
|
void |
logVersions(StringLogger msgLog)
|
static void |
main(String[] args)
|
void |
makeStoreOk()
If store is not ok a call to this method will rebuild the IdGenerator used by this store and if successful mark it as
ok. |
void |
rebuildIdGenerators()
|
void |
setCreationTime(long time)
|
void |
setLastCommittedTx(long txId)
|
void |
setRandomNumber(long nr)
|
void |
setRecoveredStatus(boolean status)
|
void |
setStoreVersion(long version)
|
void |
setVersion(long version)
|
static long |
setVersion(String storeDir,
long version)
Sets the version for the given neostore file in storeDir. |
void |
updateIdGenerators()
|
static String |
versionLongToString(long storeVersion)
|
static long |
versionStringToLong(String storeVersion)
|
| Methods inherited from class org.neo4j.kernel.impl.nioneo.store.AbstractStore |
|---|
createEmptyStore, figureOutHighestIdInUse, getEffectiveRecordSize, isRecordInUse, readAndVerifyBlockSize, rebuildIdGenerator, setHighId, verifyFileSizeAndTruncate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_DESCRIPTOR
public static final String DEFAULT_NAME
| Constructor Detail |
|---|
public NeoStore(Map<?,?> config)
| Method Detail |
|---|
protected void checkVersion()
checkVersion in class CommonAbstractStoreprotected void initStorage()
CommonAbstractStorepersistence windows and other resources that
are needed by overriding this implementation.
This default implementation does nothing.
initStorage in class CommonAbstractStoreprotected void closeStorage()
closeStorage in class CommonAbstractStorepublic void flushAll()
flushAll in class CommonAbstractStorepublic String getTypeDescriptor()
CommonAbstractStore
getTypeDescriptor in class CommonAbstractStorepublic IdGeneratorFactory getIdGeneratorFactory()
public int getRecordSize()
AbstractStore
getRecordSize in class AbstractStorepublic TxHook getTxHook()
public static void createStore(String fileName,
Map<?,?> config)
fileName - The name of storeconfig - Map of configuration parameters
public static long setVersion(String storeDir,
long version)
storeDir.
storeDir - the store dir to locate the neostore file in.version - the version to set.
public static long getStoreVersion(String storeDir)
public StoreId getStoreId()
public long getCreationTime()
public void setCreationTime(long time)
public long getRandomNumber()
public void setRandomNumber(long nr)
public void setRecoveredStatus(boolean status)
public long getVersion()
public void setVersion(long version)
public void setLastCommittedTx(long txId)
public long getLastCommittedTx()
public long incrementVersion()
public long getStoreVersion()
public void setStoreVersion(long version)
public NodeStore getNodeStore()
public RelationshipStore getRelationshipStore()
public RelationshipTypeStore getRelationshipTypeStore()
public PropertyStore getPropertyStore()
public void makeStoreOk()
CommonAbstractStoreIdGenerator used by this store and if successful mark it as
ok.
makeStoreOk in class CommonAbstractStorepublic void rebuildIdGenerators()
rebuildIdGenerators in class CommonAbstractStorepublic void updateIdGenerators()
public int getRelationshipGrabSize()
public List<WindowPoolStats> getAllWindowPoolStats()
getAllWindowPoolStats in class AbstractStorepublic boolean isStoreOk()
public void logVersions(StringLogger msgLog)
logVersions in class CommonAbstractStorepublic void logIdUsage(StringLogger msgLog)
public static void logIdUsage(StringLogger logger,
Store store)
public static long versionStringToLong(String storeVersion)
public static String versionLongToString(long storeVersion)
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||