com.gemstone.gemfire.cache.query.CqServiceStatistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gemfire-core Show documentation
Show all versions of gemfire-core Show documentation
SnappyData store based off Pivotal GemFireXD
/*
* 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.cache.query;
/**
* This class provides methods to get aggregate statistical information
* about the CQs of a client.
*
* @since 5.5
* @author anil
*/
public interface CqServiceStatistics {
/**
* Get the number of CQs currently active.
* Active CQs are those which are executing (in running state).
* @return long number of CQs
*/
public long numCqsActive();
/**
* Get the total number of CQs created. This is a cumulative number.
* @return long number of CQs created.
*/
public long numCqsCreated();
/**
* Get the total number of closed CQs. This is a cumulative number.
* @return long number of CQs closed.
*/
public long numCqsClosed();
/**
* Get the number of stopped CQs currently.
* @return number of CQs stopped.
*/
public long numCqsStopped();
/**
* Get number of CQs that are currently active or stopped.
* The CQs included in this number are either running or stopped (suspended).
* Closed CQs are not included.
* @return long number of CQs on client.
*/
public long numCqsOnClient();
/**
* Get number of CQs on the given region. Active CQs and stopped CQs on this region
* are included and closed CQs are not included.
* @param regionFullPath
* @return long number of CQs on the region.
*/
public long numCqsOnRegion(String regionFullPath);
}