Ejemplo n.º 1
0
 /// <summary>
 /// Gets Java thread names.
 /// </summary>
 private string[] GetJavaThreadNames()
 {
     return(Ignite.GetCompute()
            .ExecuteJavaTask <string[]>("org.apache.ignite.platform.PlatformThreadNamesTask", null)
            .Where(x => !x.StartsWith("pub-#") && !x.StartsWith("jvm-"))
            .OrderBy(x => x)
            .ToArray());
 }
Ejemplo n.º 2
0
        public async Task TestComputeExecuteAsyncContinuation()
        {
            await Ignite.GetCompute().ExecuteAsync(new StringLengthEmptyTask(), "abc");

            StringAssert.StartsWith("Thread-", TestUtilsJni.GetJavaThreadName());
        }
Ejemplo n.º 3
0
        public async Task TestComputeRunAsyncContinuation()
        {
            await Ignite.GetCompute().RunAsync(new ComputeAction());

            StringAssert.StartsWith("Thread-", TestUtilsJni.GetJavaThreadName());
        }