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

com.gemstone.gemfire.StatisticDescriptor Maven / Gradle / Ivy

There is a newer version: 2.0-BETA
Show newest version
/*
 * Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you
 * may not use this file except in compliance with the License. You
 * may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * permissions and limitations under the License. See accompanying
 * LICENSE file.
 */
package com.gemstone.gemfire;

//import com.gemstone.gemfire.internal.Assert;
//import com.gemstone.gemfire.internal.FieldInfo;

/**
 * Describes an individual statistic whose value is updated by an
 * application and may be archived by GemFire.  These descriptions are
 * gathered together in a {@link StatisticsType}.
 *
 * 

* To get an instance of this interface use an instance of * {@link StatisticsFactory}. *

* StatisticDescriptors are naturally ordered by their name. * * @author David Whitlock * @author Darrel Schneider * * @since 3.0 */ public interface StatisticDescriptor extends Comparable { //////////////////// Instance Methods //////////////////// /** * Returns the id of this statistic in a {@link StatisticsType * statistics type}. The id is initialized when its statistics * type is created. * * @throws IllegalStateException * The id has not been initialized yet */ public int getId(); /** * Returns the name of this statistic */ public String getName(); /** * Returns a description of this statistic */ public String getDescription(); /** * Returns the type of this statistic */ public Class getType(); /** * Returns true if this statistic is a counter; false if its a gauge. * Counter statistics have values that always increase. * Gauge statistics have unconstrained values. */ public boolean isCounter(); /** * Returns true if a larger statistic value indicates better performance. */ public boolean isLargerBetter(); /** * Returns the unit in which this statistic is measured */ public String getUnit(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy