All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scouterx.webapp.model.ProcessObject Maven / Gradle / Ivy

There is a newer version: 2.20.0
Show newest version
package scouterx.webapp.model;

import lombok.Getter;
import lombok.ToString;
import scouter.lang.value.ListValue;
import scouter.util.DateUtil;

import java.util.Map;

/**
 * @author leekyoungil ([email protected]) on 2017. 10. 14.
 */
@Getter
@ToString
public class ProcessObject {

    private int pid;
    private String user;
    private float cpu;
    private long mem;
    private long time;
    private String name;

    public ProcessObject (final Map hostTopMap, final int index) {
        this.pid = hostTopMap.get("PID").getInt(index);
        this.user = hostTopMap.get("USER").getString(index);
        this.cpu = hostTopMap.get("CPU").getFloat(index);
        this.mem = hostTopMap.get("MEM").getLong(index);
        this.time = hostTopMap.get("TIME").getLong(index);
        this.name = hostTopMap.get("NAME").getString(index);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy