Beispiel #1
0
        /// <summary>
        /// Executes given Java task on the grid projection. If task for given name has not been deployed yet,
        /// then 'taskName' will be used as task class name to auto-deploy the task.
        /// </summary>
        public T ExecuteJavaTask <T>(string taskName, object taskArg)
        {
            IgniteArgumentCheck.NotNullOrEmpty(taskName, "taskName");

            ICollection <IClusterNode> nodes = _prj.Predicate == null ? null : _prj.Nodes();

            try
            {
                T res = DoOutInOp <T>(OpExec, writer =>
                {
                    WriteTask(writer, taskName, taskArg, nodes);
                });

                return(res);
            }
            finally
            {
                _keepPortable.Value = false;
            }
        }
Beispiel #2
0
 /** <inheritdoc /> */
 public ICollection <IClusterNode> Nodes()
 {
     return(_prj.Nodes());
 }