public Monitoring(string pathFolder = @".\Test", string filterFile = @"*.txt", string nameLog = "Log.txt", string pathStore = @".\Store.dat") { _resource = new MonitorResource(pathFolder, filterFile); _resource.DetectActionEvent += CatchEvent; _cancellation = new CancellationTokenSource(); _tracer = new Tracer(nameLog); _store = new VersionStore(pathStore); }
internal void Initialize(IVersionStore store) { this.versionStore = store; this.hasToRefreshClusterGrainInterfaceMap = true; this.refreshClusterGrainInterfaceMapTimer = new AsyncTaskSafeTimer( OnRefreshClusterMapTimer, null, TimeSpan.Zero, // Force to do it once right now refreshClusterMapTimeout); }
internal async Task Initialize(IVersionStore store) { this.versionStore = store; this.hasToRefreshClusterGrainInterfaceMap = true; await this.OnRefreshClusterMapTimer(null); this.refreshClusterGrainInterfaceMapTimer = this.RegisterTimer( OnRefreshClusterMapTimer, null, this.refreshClusterMapInterval, this.refreshClusterMapInterval); }
public ManagementGrain( IInternalGrainFactory internalGrainFactory, ISiloStatusOracle siloStatusOracle, GrainTypeManager grainTypeManager, IVersionStore versionStore, ILogger <ManagementGrain> logger, MembershipTableManager membershipTableManager) { this.membershipTableManager = membershipTableManager; this.internalGrainFactory = internalGrainFactory; this.siloStatusOracle = siloStatusOracle; this.grainTypeManager = grainTypeManager; this.versionStore = versionStore; this.logger = logger; }
public ManagementGrain( IInternalGrainFactory internalGrainFactory, ISiloStatusOracle siloStatusOracle, IVersionStore versionStore, ILogger <ManagementGrain> logger, MembershipTableManager membershipTableManager, IClusterManifestProvider clusterManifestProvider) { this.membershipTableManager = membershipTableManager; this.siloManifest = clusterManifestProvider.LocalGrainManifest; this.internalGrainFactory = internalGrainFactory; this.siloStatusOracle = siloStatusOracle; this.versionStore = versionStore; this.logger = logger; }
public ManagementGrain( IOptions <MultiClusterOptions> multiClusterOptions, IMultiClusterOracle multiClusterOracle, IInternalGrainFactory internalGrainFactory, ISiloStatusOracle siloStatusOracle, MembershipTableFactory membershipTableFactory, GrainTypeManager grainTypeManager, IVersionStore versionStore) { this.multiClusterOptions = multiClusterOptions.Value; this.multiClusterOracle = multiClusterOracle; this.internalGrainFactory = internalGrainFactory; this.siloStatusOracle = siloStatusOracle; this.membershipTableFactory = membershipTableFactory; this.grainTypeManager = grainTypeManager; this.versionStore = versionStore; }
public ManagementGrain( GlobalConfiguration globalConfig, IMultiClusterOracle multiClusterOracle, IInternalGrainFactory internalGrainFactory, ISiloStatusOracle siloStatusOracle, MembershipTableFactory membershipTableFactory, GrainTypeManager grainTypeManager, IVersionStore versionStore) { this.globalConfig = globalConfig; this.multiClusterOracle = multiClusterOracle; this.internalGrainFactory = internalGrainFactory; this.siloStatusOracle = siloStatusOracle; this.membershipTableFactory = membershipTableFactory; this.grainTypeManager = grainTypeManager; this.versionStore = versionStore; }
public Recovery(string pathFolder = @".\Test", string pathStore = @".\Store.dat") { _resource = new ChangeResource(pathFolder); _store = new VersionStore(pathStore); }