Package com.zaranux.os.client.commands

Source Code of com.zaranux.os.client.commands.ps

package com.zaranux.os.client.commands;

import com.zaranux.client.api.AsyncCallback;
import com.zaranux.os.client.core.Process;

public class ps extends Command {

  @Override
  protected void execute(AsyncCallback<Boolean> callback) {
    String list = "";
    for(com.zaranux.client.api.types.Process process : systemcall.getProcesses())
    {
      Process p = (Process) process;
      list += p.getPID() + "\t" + p.getParentPID() + "\t" + p.getStartTime() + "\t" + p.getProcessName() + "\n";
    }
    System.out.println(list,callback);
  }
 
}
TOP

Related Classes of com.zaranux.os.client.commands.ps

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.