Beispiel #1
0
        /// <summary>
        ///     Executes a shell command on a given host.
        /// </summary>
        /// <param name="appId">Endeca Application ID which an operation will belong to when started.</param>
        /// <param name="hostId">Host's ID which to execute a shell command on.</param>
        /// <param name="cmd">A shell command text.</param>
        /// <returns>A string token used to determine an operation status.</returns>
        public string ShellCmd(string appId, string hostId, string cmd)
        {
            var param = new RunShellType {
                applicationID = appId, hostID = hostId, cmd = cmd
            };

            return(utilSvc.startShell(param));
        }
 /// <summary>
 ///     Executes a shell command on a given host.
 /// </summary>
 /// <param name="appId">Endeca Application ID which an operation will belong to when started.</param>
 /// <param name="hostId">Host's ID which to execute a shell command on.</param>
 /// <param name="cmd">A shell command text.</param>
 /// <returns>A string token used to determine an operation status.</returns>
 public string ShellCmd(string appId, string hostId, string cmd)
 {
     var param = new RunShellType {applicationID = appId, hostID = hostId, cmd = cmd};
     return utilSvc.startShell(param);
 }
 /// <remarks/>
 public void startShellAsync(RunShellType startShellInput)
 {
     this.startShellAsync(startShellInput, null);
 }
 /// <remarks/>
 public void startShellAsync(RunShellType startShellInput, object userState)
 {
     if ((this.startShellOperationCompleted == null))
     {
         this.startShellOperationCompleted = new System.Threading.SendOrPostCallback(this.OnstartShellOperationCompleted);
     }
     this.InvokeAsync("startShell", new object[] {
                 startShellInput}, this.startShellOperationCompleted, userState);
 }
 /// <remarks/>
 public System.IAsyncResult BeginstartShell(RunShellType startShellInput, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("startShell", new object[] {
                 startShellInput}, callback, asyncState);
 }