package com.capgemini.reports.database.javabean;

import java.io.Serializable;
import java.sql.Timestamp;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/** Persisted object in table MEM_MONITOR. **/
@Getter
@Setter
@ToString
public class DbMemMonitor implements Serializable, IPersistedObject {

    /** Required by serialization. **/
    private static final long serialVersionUID = 1L;

    /** Unique identifier recommended for using all features from Hibernate. **/
    private Long id;

    /** Current date when the trace has been saved in database. **/
    private Timestamp monitorDate;

    /** Global amount of reserved memory. **/
    private Double totalMemory;

    /** Maximum amount of memory which could be reserved. **/
    private Double maxMemory;

    /** Current amount of free memory. **/
    private Double freeMemory;

    /** Current amount of used memory. **/
    private Double usedMemory;

    /** Percent of memory used compared to maximum limit. **/
    private Double maxPercent;
}
