public async Task Invoke() { var cfg = new IgniteConfiguration { JvmOptions = new[] { //"-Xms256m", $"-Xmx{maxOnHeap}m", "-XX:+AlwaysPreTouch", "-XX:+UseG1GC", "-XX:+ScavengeBeforeFullGC", "-XX:+DisableExplicitGC", $"-XX:MaxDirectMemorySize={maxOffHeap}m" }, DiscoverySpi = new Apache.Ignite.Core.Discovery.Tcp.TcpDiscoverySpi { IpFinder = new TcpDiscoveryStaticIpFinder { Endpoints = new[] { $"{ClusterNode.Address}:{(ClusterNode.Port != 0 ? ClusterNode.Port : DEFAULT_PORT)}" } }, } }; Ignition.ClientMode = true; using (var client = Ignition.Start(cfg)) { foreach (var fileInfo in SourceFiles) { OnFileOpen?.Invoke(this, fileInfo); using (var device = new FastPcapFileReaderDevice(fileInfo.FullName)) { await ProcessFile(client, fileInfo, device); } OnFileCompleted?.Invoke(this, fileInfo); } } }
public async Task Invoke() { var cfg = new IgniteClientConfiguration { Host = ClusterNode.Address.ToString(), Port = ClusterNode.Port != 0 ? ClusterNode.Port : DEFAULT_PORT, }; using (var client = Ignition.StartClient(cfg)) { foreach (var fileInfo in SourceFiles) { OnFileOpen?.Invoke(this, fileInfo); using (var device = new FastPcapFileReaderDevice(fileInfo.FullName)) { await ProcessFile(client, fileInfo, device); } OnFileCompleted?.Invoke(this, fileInfo); } } }