com.gemstone.gemfire.admin.internal.CacheHealthConfigImpl 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.admin.internal;
import com.gemstone.gemfire.admin.*;
/**
* The implementation of CacheHealthConfig
*
* @author David Whitlock
*
* @since 3.5
*/
public abstract class CacheHealthConfigImpl
extends MemberHealthConfigImpl implements CacheHealthConfig {
/** The maximum number of milliseconds a
* netSearch
operation can take before the cache member
* is considered to be unhealthy. */
private long maxNetSearchTime = DEFAULT_MAX_NET_SEARCH_TIME;
/** The maximum mumber of milliseconds a cache
* load
operation can take before the cache member is
* considered to be unhealthy. */
private long maxLoadTime = DEFAULT_MAX_LOAD_TIME;
/** The minimum hit ratio of a healthy cache member. */
private double minHitRatio = DEFAULT_MIN_HIT_RATIO;
/** The maximum number of entries in the event delivery queue
* of a healthy cache member. */
private long maxEventQueueSize = DEFAULT_MAX_EVENT_QUEUE_SIZE;
/////////////////////// Constructors ///////////////////////
/**
* Creates a new CacheHealthConfigImpl
with the default
* configuration.
*/
CacheHealthConfigImpl() {
}
////////////////////// Instance Methods /////////////////////
public long getMaxNetSearchTime() {
return this.maxNetSearchTime;
}
public void setMaxNetSearchTime(long maxNetSearchTime) {
this.maxNetSearchTime = maxNetSearchTime;
}
public long getMaxLoadTime() {
return this.maxLoadTime;
}
public void setMaxLoadTime(long maxLoadTime) {
this.maxLoadTime = maxLoadTime;
}
public double getMinHitRatio() {
return this.minHitRatio;
}
public void setMinHitRatio(double minHitRatio) {
this.minHitRatio = minHitRatio;
}
public long getMaxEventQueueSize() {
return this.maxEventQueueSize;
}
public void setMaxEventQueueSize(long maxEventQueueSize) {
this.maxEventQueueSize = maxEventQueueSize;
}
}