package com.mini.capi.model.info;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@Builder  // 生成构建者模式代码
public class ProcessInfo implements Serializable {
    private long pid;

    private Long uptime;

    private Long usedHeapMemory;

    private Long maxHeapMemory;

    private List<String> jvmArgs;

    public ProcessInfo(long pid, Long uptime, Long usedHeapMemory, Long maxHeapMemory, List<String> jvmArgs) {
        this.pid = pid;
        this.uptime = uptime;
        this.usedHeapMemory = usedHeapMemory;
        this.maxHeapMemory = maxHeapMemory;
        this.jvmArgs = jvmArgs;
    }

}
