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

com.gemstone.gemfire.internal.statistics.DummyStatistics 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.internal.statistics;

import com.gemstone.gemfire.StatisticDescriptor;
import com.gemstone.gemfire.Statistics;
import com.gemstone.gemfire.StatisticsType;

/**
 * @author Kirk Lund
 * @since 7.0
 */
public class DummyStatistics implements Statistics {

  @Override
  public void close() {
  }

  @Override
  public int nameToId(String name) {
    return 0;
  }
  
  @Override
  public StatisticDescriptor nameToDescriptor(String name) {
    return null;
  }
  
  @Override
  public long getUniqueId() {
    return 0;
  }

  @Override
  public StatisticsType getType() {
    return null;
  }

  @Override
  public String getTextId() {
    return null;
  }

  @Override
  public long getNumericId() {
    return 0;
  }

  @Override
  public boolean isAtomic() {
    return false;
  }

  @Override
  public boolean isClosed() {
    return false;
  }

  @Override
  public void setInt(int id, int value) {
  }

  @Override
  public void setInt(String name, int value) {
  }

  @Override
  public void setInt(StatisticDescriptor descriptor, int value) {
  }

  @Override
  public void setLong(int id, long value) {
  }

  @Override
  public void setLong(StatisticDescriptor descriptor, long value) {
  }

  @Override
  public void setLong(String name, long value) {
  }

  @Override
  public void setDouble(int id, double value) {
  }

  @Override
  public void setDouble(StatisticDescriptor descriptor, double value) {
  }

  @Override
  public void setDouble(String name, double value) {
  }

  @Override
  public int getInt(int id) {
    return 0;
  }

  @Override
  public int getInt(StatisticDescriptor descriptor) {
    return 0;
  }

  @Override
  public int getInt(String name) {
    return 0;
  }

  @Override
  public long getLong(int id) {
    return 0;
  }

  @Override
  public long getLong(StatisticDescriptor descriptor) {
    return 0;
  }

  @Override
  public long getLong(String name) {
    return 0;
  }

  @Override
  public double getDouble(int id) {
    return 0;
  }

  @Override
  public double getDouble(StatisticDescriptor descriptor) {
    return 0;
  }

  @Override
  public double getDouble(String name) {
    return 0;
  }

  @Override
  public Number get(StatisticDescriptor descriptor) {
    return null;
  }

  @Override
  public Number get(String name) {
    return null;
  }

  @Override
  public long getRawBits(StatisticDescriptor descriptor) {
    return 0;
  }

  @Override
  public long getRawBits(String name) {
    return 0;
  }

  @Override
  public void incInt(int id, int delta) {
  }

  @Override
  public void incInt(StatisticDescriptor descriptor, int delta) {
  }

  @Override
  public void incInt(String name, int delta) {
  }

  @Override
  public void incLong(int id, long delta) {
  }

  @Override
  public void incLong(StatisticDescriptor descriptor, long delta) {
  }

  @Override
  public void incLong(String name, long delta) {
  }

  @Override
  public void incDouble(int id, double delta) {
  }

  @Override
  public void incDouble(StatisticDescriptor descriptor, double delta) {
  }

  @Override
  public void incDouble(String name, double delta) {
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy