@Override public DependencyResolver resolver() { return dataSource.neoStoreDataSource.getDependencyResolver(); }
public ProcedureGDBFacadeSPI( DataSourceModule sourceModule, DependencyResolver resolver, CoreAPIAvailabilityGuard availability, ThrowingFunction<URL,URL,URLAccessValidationError> urlValidator, SecurityContext securityContext, ThreadToStatementContextBridge threadToTransactionBridge ) { this.databaseLayout = sourceModule.neoStoreDataSource.getDatabaseLayout(); this.sourceModule = sourceModule; this.resolver = resolver; this.availability = availability; this.urlValidator = urlValidator; this.securityContext = securityContext; this.threadToTransactionBridge = threadToTransactionBridge; }
private InternalTransaction beginDefaultTransaction() { return service.beginTransaction( KernelTransaction.Type.implicit, AUTH_DISABLED ); } }
@Override public IndexUpdater newUpdater( IndexUpdateMode mode ) { return wrap( actual.newUpdater( mode ) ); }
@Override public void dumpDiagnostics( final NeoStoreDataSource source, DiagnosticsPhase phase, Logger logger ) { if ( applicable( phase ) ) { logger.log( message ); dump( source, logger ); } }
private void shutdownAnyRunning() { if ( dataSource != null ) { dataSource.stop(); } }
@Override public AutoIndexing autoIndexing() { return dataSource.neoStoreDataSource.getAutoIndexing(); }
private static void generateTransactionsAndRotateWithCheckpoint( GraphDatabaseAPI database, int logFilesToGenerate ) throws IOException { generateTransactionsAndRotate( database, logFilesToGenerate, true ); }
private static StoreLockException storeLockException( String message, Exception e ) { String help = "Please ensure no other process is using this database, and that the directory is writable " + "(required even for read-only access)"; return new StoreLockException( message + ". " + help, e ); }
@Override public DbmsOperations dbmsOperations() { return graph.getDbmsOperations(); }
/** * Hook that must be called before there is an HA mode switch (eg master/slave switch), * i.e. after state has changed to pending and before state is about to change to the new target state. * This must only be called when the database is otherwise inaccessible. */ public void beforeModeSwitch() { clearTransactions(); }
public InwardKernel getKernel() { return kernelModule.kernelAPI(); }
public NeoStoreFileListing getNeoStoreFileListing() { return kernelModule.fileListing(); }
@Override public void writeStartEntry( int masterId, int authorId, long timeWritten, long latestCommittedTxWhenStarted, byte[] additionalHeaderData ) throws IOException { writeLogEntryHeader( TX_START, channel ); } }
@Override public Lifecycle newInstance( KernelContext context, Dependencies dependencies ) { return new DummyExtension( dependencies ); } }
private IndexUpdater wrap( IndexUpdater actual ) { return new UpdateCapturingIndexUpdater( actual, updates ); }
@Override public DatabaseLayout databaseLayout() { return dataSource.neoStoreDataSource.getDatabaseLayout(); }
private InternalTransaction beginCustomTransaction( long customTimeout ) { return service.beginTransaction( KernelTransaction.Type.implicit, AUTH_DISABLED, customTimeout, TimeUnit.MILLISECONDS ); }
@Override public AutoIndexing autoIndexing() { return sourceModule.neoStoreDataSource.getAutoIndexing(); }
private static void generateTransactionsAndRotate( GraphDatabaseAPI database, int logFilesToGenerate ) throws IOException { generateTransactionsAndRotate( database, logFilesToGenerate, false ); }