org.neo4j.kernel.impl.proc.Procedures.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中org.neo4j.kernel.impl.proc.Procedures.<init>()方法的一些代码示例,展示了Procedures.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Procedures.<init>()方法的具体详情如下:
包路径:org.neo4j.kernel.impl.proc.Procedures
类名称:Procedures
方法名:<init>

Procedures.<init>介绍

[英]Used by testing.
[中]用于测试。

代码示例

代码示例来源:origin: neo4j/neo4j

TestKernelTransaction( CommitTrackingMonitor monitor )
{
  super( Config.defaults(), mock( StatementOperationParts.class ), mock( SchemaWriteGuard.class ), new TransactionHooks(),
      mock( ConstraintIndexCreator.class ), new Procedures(), TransactionHeaderInformationFactory.DEFAULT, mock( TransactionCommitProcess.class ),
      monitor, mock( AuxiliaryTransactionStateManager.class ), mock( Pool.class ), Clocks.fakeClock(),
      new AtomicReference<>( CpuClock.NOT_AVAILABLE ), new AtomicReference<>( HeapAllocation.NOT_AVAILABLE ), TransactionTracer.NULL,
      LockTracer.NONE, PageCursorTracerSupplier.NULL, mock( StorageEngine.class, RETURNS_MOCKS ), new CanWrite(), AutoIndexing.UNSUPPORTED,
      mock( ExplicitIndexStore.class ), EmptyVersionContextSupplier.EMPTY, ON_HEAP, new StandardConstraintSemantics(), mock( SchemaState.class ),
      mock( IndexingService.class ), mockedTokenHolders(), new Dependencies() );
  this.monitor = monitor;
}

代码示例来源:origin: neo4j/neo4j

private static KernelTransactions createTransactions( StorageEngine storageEngine,
    TransactionCommitProcess commitProcess, TransactionIdStore transactionIdStore, Tracers tracers,
    StatementLocksFactory statementLocksFactory, StatementOperationParts statementOperations,
    SystemNanoClock clock, AvailabilityGuard databaseAvailabilityGuard )
{
  return new KernelTransactions( Config.defaults(), statementLocksFactory, null, statementOperations,
      null, DEFAULT, commitProcess, mock( AuxiliaryTransactionStateManager.class ), new TransactionHooks(),
      mock( TransactionMonitor.class ), databaseAvailabilityGuard, tracers, storageEngine, new Procedures(), transactionIdStore, clock,
      new AtomicReference<>( CpuClock.NOT_AVAILABLE ), new AtomicReference<>( HeapAllocation.NOT_AVAILABLE ),
      new CanWrite(),
      AutoIndexing.UNSUPPORTED,
      mock( ExplicitIndexStore.class ), EmptyVersionContextSupplier.EMPTY, ON_HEAP,
      mock( ConstraintSemantics.class ), mock( SchemaState.class ),
      mock( IndexingProvidersService.class), mockedTokenHolders(), DEFAULT_DATABASE_NAME, new Dependencies() );
}

代码示例来源:origin: neo4j/neo4j

private static TestKernelTransactions createTestTransactions( StorageEngine storageEngine,
    TransactionCommitProcess commitProcess, TransactionIdStore transactionIdStore, Tracers tracers,
    StatementLocksFactory statementLocksFactory, StatementOperationParts statementOperations,
    SystemNanoClock clock, AvailabilityGuard databaseAvailabilityGuard )
{
  return new TestKernelTransactions( statementLocksFactory, null, statementOperations, null, DEFAULT, commitProcess,
      mock( AuxiliaryTransactionStateManager.class ), new TransactionHooks(),
      mock( TransactionMonitor.class ), databaseAvailabilityGuard, tracers, storageEngine, new Procedures(), transactionIdStore, clock,
      new CanWrite(), AutoIndexing.UNSUPPORTED, EmptyVersionContextSupplier.EMPTY, mockedTokenHolders(), new Dependencies() );
}

代码示例来源:origin: neo4j/neo4j

static Instances kernelTransactionWithInternals( LoginContext loginContext )
{
  TransactionHeaderInformation headerInformation = new TransactionHeaderInformation( -1, -1, new byte[0] );
  TransactionHeaderInformationFactory headerInformationFactory = mock( TransactionHeaderInformationFactory.class );
  when( headerInformationFactory.create() ).thenReturn( headerInformation );
  StorageEngine storageEngine = mock( StorageEngine.class );
  StorageReader storageReader = mock( StorageReader.class );
  when( storageEngine.newReader() ).thenReturn( storageReader );
  KernelTransactionImplementation transaction =
      new KernelTransactionImplementation( Config.defaults(), mock( StatementOperationParts.class ), mock( SchemaWriteGuard.class ),
          new TransactionHooks(), mock( ConstraintIndexCreator.class ), new Procedures(), headerInformationFactory,
          mock( TransactionRepresentationCommitProcess.class ), mock( TransactionMonitor.class ), mock( AuxiliaryTransactionStateManager.class ),
          mock( Pool.class ), Clocks.systemClock(), new AtomicReference<>( CpuClock.NOT_AVAILABLE ),
          new AtomicReference<>( HeapAllocation.NOT_AVAILABLE ), NULL, LockTracer.NONE, PageCursorTracerSupplier.NULL, storageEngine,
          new CanWrite(), AutoIndexing.UNSUPPORTED, mock( ExplicitIndexStore.class ), EmptyVersionContextSupplier.EMPTY, ON_HEAP,
          new StandardConstraintSemantics(), mock( SchemaState.class ), mock( IndexingService.class ), mockedTokenHolders(), new Dependencies() );
  StatementLocks statementLocks = new SimpleStatementLocks( new NoOpClient() );
  transaction.initialize( 0, 0, statementLocks, KernelTransaction.Type.implicit,
      loginContext.authorize( s -> -1, GraphDatabaseSettings.DEFAULT_DATABASE_NAME ), 0L, 1L );
  return new Instances( transaction );
}

代码示例来源:origin: neo4j/neo4j

new Procedures( facade, new SpecialBuiltInProcedures( Version.getNeo4jVersion(), platform.databaseInfo.edition.toString() ), pluginDir,
        internalLog, procedureConfig );
platform.life.add( procedures );

代码示例来源:origin: org.neo4j/neo4j

new Procedures( facade, new SpecialBuiltInProcedures( Version.getNeo4jVersion(), platform.databaseInfo.edition.toString() ), pluginDir,
        internalLog, procedureConfig );
platform.life.add( procedures );

相关文章