示例#1
0
 public ServerMessageTypeHandler(CatchupServerProtocol protocol, LogProvider logProvider)
 {
     this._protocol = protocol;
     this._log      = logProvider.getLog(this.GetType());
 }
示例#2
0
 public override Optional <ChannelHandler> SnapshotHandler(CatchupServerProtocol catchupServerProtocol)
 {
     return(Optional.ofNullable((_snapshotService != null) ? new CoreSnapshotRequestHandler(catchupServerProtocol, _snapshotService) : null));
 }
示例#3
0
 public override ChannelHandler GetIndexSnapshotRequestHandler(CatchupServerProtocol catchupServerProtocol)
 {
     return(new StoreCopyRequestHandler.GetIndexSnapshotRequestHandler(catchupServerProtocol, _dataSourceSupplier, _checkPointerService, new StoreFileStreamingProtocol(), _fs, _logProvider));
 }
示例#4
0
 public override ChannelHandler StoreListingRequestHandler(CatchupServerProtocol catchupServerProtocol)
 {
     return(new PrepareStoreCopyRequestHandler(catchupServerProtocol, _dataSourceSupplier, new PrepareStoreCopyFilesProvider(_fs)));
 }
示例#5
0
 public override ChannelHandler GetStoreIdRequestHandler(CatchupServerProtocol catchupServerProtocol)
 {
     return(new GetStoreIdRequestHandler(catchupServerProtocol, _storeIdSupplier));
 }
示例#6
0
 public override ChannelHandler TxPullRequestHandler(CatchupServerProtocol catchupServerProtocol)
 {
     return(new TxPullRequestHandler(catchupServerProtocol, _storeIdSupplier, _dataSourceAvailabilitySupplier, _dataSourceSupplier, _monitors, _logProvider));
 }