public EventLogRepository(ISerializer serializer, ICassandraCluster cassandraCluster, IRtqSettings rtqSettings, IMinTicksHolder minTicksHolder) { this.serializer = serializer; this.minTicksHolder = minTicksHolder; cfConnection = cassandraCluster.RetrieveColumnFamilyConnection(rtqSettings.QueueKeyspace, ColumnFamilyName); }
public EventStorage( ColumnFamilyFullName columnFamilyFullName, IEventLogPointerCreator eventLogPointerCreator, ICassandraCluster cassandraCluster, ISerializer serializer) { this.eventLogPointerCreator = eventLogPointerCreator; this.serializer = serializer; columnFamilyConnection = cassandraCluster.RetrieveColumnFamilyConnection(columnFamilyFullName.KeyspaceName, columnFamilyFullName.ColumnFamilyName); }
public EventLoggerAdditionalInfoRepository( ICassandraCluster cassandraCluster, ISerializer serializer, IRemoteLockCreator remoteLockCreator, ColumnFamilyFullName additionalInfoColumnFamily, ColumnFamilyFullName eventLogColumnFamily) { this.eventLogColumnFamily = eventLogColumnFamily; this.serializer = serializer; this.remoteLockCreator = remoteLockCreator; columnFamilyConnection = cassandraCluster.RetrieveColumnFamilyConnection(additionalInfoColumnFamily.KeyspaceName, additionalInfoColumnFamily.ColumnFamilyName); }
public TestCounterRepository(ILog log, ICassandraCluster cassandraCluster, ISerializer serializer, IGlobalTime globalTime, IRtqSettings rtqSettings) { this.serializer = serializer; this.globalTime = globalTime; var keyspaceName = rtqSettings.QueueKeyspace; cfConnection = cassandraCluster.RetrieveColumnFamilyConnection(keyspaceName, ColumnFamilyName); var remoteLockImplementationSettings = CassandraRemoteLockImplementationSettings.Default(keyspaceName, RtqColumnFamilyRegistry.LocksColumnFamilyName); var remoteLockImplementation = new CassandraRemoteLockImplementation(cassandraCluster, serializer, remoteLockImplementationSettings); remoteLockCreator = new RemoteLocker(remoteLockImplementation, new RemoteLockerMetrics(keyspaceName), log); }
public EventLogger( ICassandraCluster cassandraCluster, ISerializer serializer, ColumnFamilyFullName eventLogColumnFamily, IEventLogPointerCreator eventLogPointerCreator, Func <IQueueRaker> createQueueRaker, IEventLoggerAdditionalInfoRepository eventLoggerAdditionalInfoRepository, IEventLogProfiler profiler, ILog logger) { this.serializer = serializer; this.eventLogPointerCreator = eventLogPointerCreator; this.createQueueRaker = createQueueRaker; this.eventLoggerAdditionalInfoRepository = eventLoggerAdditionalInfoRepository; this.profiler = profiler; this.logger = logger; columnFamilyConnection = cassandraCluster.RetrieveColumnFamilyConnection(eventLogColumnFamily.KeyspaceName, eventLogColumnFamily.ColumnFamilyName); }
public GlobalTimeProxy(ICassandraCluster cassandraCluster, IRtqSettings rtqSettings) { var maxTicksCfConnection = cassandraCluster.RetrieveColumnFamilyConnection(rtqSettings.QueueKeyspace, ColumnFamilyName); globalTime = new GlobalTime(maxTicksCfConnection); }
public TestTaskLogger(ICassandraCluster cassandraCluster, IRtqSettings rtqSettings) { cfConnection = cassandraCluster.RetrieveColumnFamilyConnection(rtqSettings.QueueKeyspace, ColumnFamilyName); }
public RtqMinTicksHolder(ICassandraCluster cassandraCluster, IRtqSettings rtqSettings) { var minTicksCfConnection = cassandraCluster.RetrieveColumnFamilyConnection(rtqSettings.QueueKeyspace, ColumnFamilyName); minTicksHolder = new MinTicksHolder(minTicksCfConnection); }