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

com.alachisoft.ncache.common.monitoring.MetricsException Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
package com.alachisoft.ncache.common.monitoring;

import com.alachisoft.ncache.runtime.util.NCDateTime;

import java.util.Date;

public class MetricsException
{
    private int privateErrorCode;
    public final int getErrorCode()
    {
        return privateErrorCode;
    }
    public final void setErrorCode(int value)
    {
        privateErrorCode = value;
    }
    private java.util.Date privateTimeStamp = new java.util.Date(0);
    public final java.util.Date getTimeStamp()
    {
        return privateTimeStamp;
    }
    public final void setTimeStamp(java.util.Date value)
    {
        privateTimeStamp = value;
    }
    private java.util.Date privateLastLogTime = new java.util.Date(0);
    public final java.util.Date getLastLogTime()
    {
        return privateLastLogTime;
    }
    public final void setLastLogTime(java.util.Date value)
    {
        privateLastLogTime = value;
    }
    private Exception privateException;
    public final Exception getException()
    {
        return privateException;
    }
    public final void setException(Exception value)
    {
        privateException = value;
    }

    public final boolean CompareAndUpdateifRequired()
    {
        if (((NCDateTime.getUTCNow()).compareTo(getLastLogTime())) >= 60)
        {
            return true;
        }
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy