|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.HighlyAvailableGraphDatabase
public class HighlyAvailableGraphDatabase
| Nested Class Summary | |
|---|---|
static class |
HighlyAvailableGraphDatabase.BranchedDataPolicy
|
static interface |
HighlyAvailableGraphDatabase.Configuration
|
| Field Summary | |
|---|---|
protected HighlyAvailableGraphDatabase.Configuration |
configuration
|
static String |
COPY_FROM_MASTER_TEMP
|
protected org.neo4j.kernel.impl.nioneo.store.StoreId |
storeId
|
protected org.neo4j.com.StoreIdGetter |
storeIdGetter
|
| Constructor Summary | |
|---|---|
HighlyAvailableGraphDatabase(String storeDir,
Map<String,String> config)
Will instantiate its own ZooKeeper broker |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String COPY_FROM_MASTER_TEMP
protected volatile org.neo4j.kernel.impl.nioneo.store.StoreId storeId
protected final org.neo4j.com.StoreIdGetter storeIdGetter
protected HighlyAvailableGraphDatabase.Configuration configuration
| Constructor Detail |
|---|
public HighlyAvailableGraphDatabase(String storeDir,
Map<String,String> config)
| Method Detail |
|---|
public Node createNode()
GraphDatabaseService
createNode in interface GraphDatabaseServicepublic Node getNodeById(long id)
GraphDatabaseService
getNodeById in interface GraphDatabaseServiceid - the id of the node
id if foundpublic Node getReferenceNode()
GraphDatabaseService
getReferenceNode in interface GraphDatabaseServicepublic Iterable<Node> getAllNodes()
GraphDatabaseService
getAllNodes in interface GraphDatabaseServicepublic Iterable<RelationshipType> getRelationshipTypes()
GraphDatabaseServicenode.createRelationshipTo(...). Note that this method is guaranteed to
return all known relationship types, but it does not guarantee that it
won't return more than that (e.g. it can return "historic"
relationship types that no longer have any relationships in the node
space).
getRelationshipTypes in interface GraphDatabaseServicepublic Relationship getRelationshipById(long id)
GraphDatabaseService
getRelationshipById in interface GraphDatabaseServiceid - the id of the relationship
id if foundpublic IndexManager index()
GraphDatabaseServiceIndexManager paired with this graph database service
and is the entry point for managing indexes coupled with this database.
index in interface GraphDatabaseServiceIndexManager for this database.public Transaction beginTx()
GraphDatabaseService
beginTx in interface GraphDatabaseServicepublic void shutdown()
GraphDatabaseService
shutdown in interface GraphDatabaseServicepublic org.neo4j.kernel.impl.core.NodeManager getNodeManager()
getNodeManager in interface GraphDatabaseSPIpublic org.neo4j.kernel.impl.core.LockReleaser getLockReleaser()
getLockReleaser in interface GraphDatabaseSPIpublic org.neo4j.kernel.impl.transaction.LockManager getLockManager()
getLockManager in interface GraphDatabaseSPIpublic org.neo4j.kernel.impl.transaction.XaDataSourceManager getXaDataSourceManager()
getXaDataSourceManager in interface GraphDatabaseSPIpublic TransactionManager getTxManager()
getTxManager in interface GraphDatabaseSPIpublic DiagnosticsManager getDiagnosticsManager()
getDiagnosticsManager in interface GraphDatabaseSPIpublic org.neo4j.kernel.impl.util.StringLogger getMessageLog()
getMessageLog in interface GraphDatabaseSPIpublic org.neo4j.kernel.impl.core.RelationshipTypeHolder getRelationshipTypeHolder()
getRelationshipTypeHolder in interface GraphDatabaseSPIpublic IdGeneratorFactory getIdGeneratorFactory()
getIdGeneratorFactory in interface GraphDatabaseSPIpublic org.neo4j.com.StoreIdGetter getStoreIdGetter()
public KernelData getKernelData()
getKernelData in interface GraphDatabaseSPIpublic <T> T getSingleManagementBean(Class<T> type)
getSingleManagementBean in interface GraphDatabaseSPIprotected void start()
public Broker getBroker()
public void pullUpdates()
public <T> Collection<T> getManagementBeans(Class<T> type)
getManagementBeans in interface GraphDatabaseSPIpublic final <T> T getManagementBean(Class<T> type)
public String toString()
toString in class Objectprotected void reevaluateMyself(org.neo4j.kernel.impl.nioneo.store.StoreId storeId)
public TransactionBuilder tx()
tx in interface GraphDatabaseSPIpublic void internalShutdown(boolean rotateLogs)
protected void close()
public KernelEventHandler registerKernelEventHandler(KernelEventHandler handler)
GraphDatabaseServicehandler as a handler for kernel events which
are generated from different places in the lifecycle of the kernel.
To guarantee proper behaviour the handler should be registered right
after the graph database has been started. If the specified handler
instance has already been registered this method will do nothing.
registerKernelEventHandler in interface GraphDatabaseServicehandler - the handler to receive events about different states
in the kernel lifecycle.
public <T> TransactionEventHandler<T> registerTransactionEventHandler(TransactionEventHandler<T> handler)
GraphDatabaseServicehandler as a handler for transaction events which
are generated from different places in the lifecycle of each
transaction. To guarantee that the handler gets all events properly
it shouldn't be registered when the application is running (i.e. in the
middle of one or more transactions). If the specified handler instance
has already been registered this method will do nothing.
registerTransactionEventHandler in interface GraphDatabaseServiceT - the type of state object used in the handler, see more
documentation about it at TransactionEventHandler.handler - the handler to receive events about different states
in transaction lifecycles.
public KernelEventHandler unregisterKernelEventHandler(KernelEventHandler handler)
GraphDatabaseServicehandler from the list of kernel event handlers.
If handler hasn't been registered with
GraphDatabaseService.registerKernelEventHandler(KernelEventHandler) prior to calling
this method an IllegalStateException will be thrown.
After a successful call to this method the handler will no
longer receive any kernel events.
unregisterKernelEventHandler in interface GraphDatabaseServicehandler - the handler to receive events about different states
in the kernel lifecycle.
public <T> TransactionEventHandler<T> unregisterTransactionEventHandler(TransactionEventHandler<T> handler)
GraphDatabaseServicehandler from the list of transaction event handlers.
If handler hasn't been registered with
GraphDatabaseService.registerTransactionEventHandler(TransactionEventHandler) prior
to calling this method an IllegalStateException will be thrown.
After a successful call to this method the handler will no
longer receive any transaction events.
unregisterTransactionEventHandler in interface GraphDatabaseServiceT - the type of state object used in the handler, see more
documentation about it at TransactionEventHandler.handler - the handler to receive events about different states
in transaction lifecycles.
public MasterServer getMasterServerIfMaster()
protected int getMachineId()
public boolean isMaster()
protected Broker createBroker()
protected ClusterClient createClusterClient()
public String getStoreDir()
getStoreDir in interface GraphDatabaseSPIpublic org.neo4j.kernel.impl.core.KernelPanicEventGenerator getKernelPanicGenerator()
getKernelPanicGenerator in interface GraphDatabaseSPIpublic org.neo4j.kernel.impl.persistence.PersistenceSource getPersistenceSource()
getPersistenceSource in interface GraphDatabaseSPI
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||