com.alachisoft.ncache.common.monitoring.MetricsException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
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;
}
}