com.att.nsa.metrics.impl.CdmConstant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of saToolkit Show documentation
Show all versions of saToolkit Show documentation
Library of code used in various service assurance systems
/*******************************************************************************
* Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
*******************************************************************************/
package com.att.nsa.metrics.impl;
public class CdmConstant extends CdmSimpleMetric
{
public CdmConstant ( long constant, String desc )
{
fDescription = desc;
fConstant = constant;
}
public String getUnits ()
{
return fDescription;
}
public synchronized long getValue ()
{
return fConstant;
}
@Override
public String getRawValueString ()
{
return "" + getValue();
}
@Override
public Number getRawValue ()
{
return getValue();
}
@Override
public synchronized String summarize ()
{
return "" + fConstant + " " + fDescription;
}
@Override
public synchronized void reset ()
{
fConstant = 0;
}
private final String fDescription;
private long fConstant;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy