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

com.gemstone.gemfire.admin.MemberHealthConfig Maven / Gradle / Ivy

The 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.admin;

/**
 * Provides configuration information relating to the health of a
 * member of a GemFire distributed system.
 *
 * 

* * If any of the following criteria is true, then a member is * considered to be in {@link GemFireHealth#OKAY_HEALTH OKAY_HEALTH}. * *

    * *
  • The size of the {@linkplain #getMaxVMProcessSize VM process} is * too large.
  • * *
  • There are too many {@linkplain #getMaxMessageQueueSize enqueued} * incoming/outgoing messages.
  • * *
  • Too many message sends {@link #getMaxReplyTimeouts timeout} * while waiting for a reply.
  • * *
* * If any of the following criteria is true, then a member is * considered to be in {@link GemFireHealth#POOR_HEALTH POOR_HEALTH}. * *
    * *
* * @author David Whitlock * * @since 3.5 * @deprecated as of 7.0 use the {@link com.gemstone.gemfire.management} package instead * */ public interface MemberHealthConfig { /** The default maximum VM process size (in megabytes) of a health * member of the distributed system. The default value is 1000. */ public static final long DEFAULT_MAX_VM_PROCESS_SIZE = 1000; /** The default maximum number of enqueued incoming or outgoing * messages that a healthy member of a distributed system can have. * The default value is 1000. */ public static final long DEFAULT_MAX_MESSAGE_QUEUE_SIZE = 1000; /** The default maximum number of message reply timeouts that can * occur in a given health monitoring interval. The default value * is zero. */ public static final long DEFAULT_MAX_REPLY_TIMEOUTS = 0; /** The default maximum multicast retransmission ratio. The default * value is 0.20 (twenty percent of messages retransmitted) */ public static final double DEFAULT_MAX_RETRANSMISSION_RATIO = 0.20; /////////////////////// Instance Methods /////////////////////// /** * Returns the maximum VM process size (in megabytes) of a healthy * member of the distributed system. * * @see #DEFAULT_MAX_VM_PROCESS_SIZE */ public long getMaxVMProcessSize(); /** * Sets the maximum VM process size (in megabytes) of a healthy * member of the distributed system. * * @see #getMaxVMProcessSize */ public void setMaxVMProcessSize(long size); /** * Returns the maximum number of enqueued incoming or outgoing * messages that a healthy member of a distributed system can have. * * @see #DEFAULT_MAX_MESSAGE_QUEUE_SIZE */ public long getMaxMessageQueueSize(); /** * Sets the maximum number of enqueued incoming or outgoing * messages that a healthy member of a distributed system can have. * * @see #getMaxMessageQueueSize */ public void setMaxMessageQueueSize(long maxMessageQueueSize); /** * Returns the maximum number message replies that can timeout in a * healthy member. * * @see #DEFAULT_MAX_REPLY_TIMEOUTS */ public long getMaxReplyTimeouts(); /** * Sets the maximum number message replies that can timeout in a * healthy member. * * @see #getMaxReplyTimeouts */ public void setMaxReplyTimeouts(long maxReplyTimeouts); /** * Returns the maximum ratio of multicast retransmissions / total multicast * messages. Retransmissions are requestor-specific (i.e., unicast), so * a single lost message may result in multiple retransmissions.

* A high retransmission ratio may indicate * poor network conditions requiring reduced flow-control settings, * a udp-fragment-size setting that is too high. * @see #DEFAULT_MAX_RETRANSMISSION_RATIO */ public double getMaxRetransmissionRatio(); /** * Sets the maximum ratio of multicast retransmissions / total multicast * messages. * @see #getMaxRetransmissionRatio */ public void setMaxRetransmissionRatio(double ratio); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy