Gemfire JavaDocs
Package org.apache.geode.admin
Interface GemFireHealth
-
@Deprecated public interface GemFireHealth
Deprecated.as of 7.0 use themanagement
package insteadProvides information about the aggregate health of the members of a GemFire distributed system ("components"). ThegetHealth
method provides an indication of the overall health. Health is expressed as one of three levels:GOOD_HEALTH
,OKAY_HEALTH
, andPOOR_HEALTH
. ThegetDiagnosis
method provides a more detailed explanation of the cause of ill health.The aggregate health of the GemFire component is evaluated every so often and if certain criteria are met, then the overall health of the component changes accordingly. If any of the components is in
OKAY_HEALTH
, then the overall health isOKAY_HEALTH
. If any of the components is inPOOR_HEALTH
, then the overall health isPOOR_HEALTH
.- Since:
- GemFire 3.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
GemFireHealth.Health
Deprecated.An enumerated type for the health of GemFire.
-
Field Summary
Fields Modifier and Type Field Description static GemFireHealth.Health
GOOD_HEALTH
Deprecated.An indicator that the GemFire components are healthy.static GemFireHealth.Health
OKAY_HEALTH
Deprecated.An indicator that one or more GemFire components is slightly unhealthy.static GemFireHealth.Health
POOR_HEALTH
Deprecated.An indicator that one or more GemFire components is unhealthy.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.Closes this health monitor and releases all resources associated with it.GemFireHealthConfig
getDefaultGemFireHealthConfig()
Deprecated.Returns theGemFireHealthConfig
for GemFire components whose configurations are not overridden on a per-host basis.java.lang.String
getDiagnosis()
Deprecated.Returns a message that provides a description of the cause of a component's ill health.DistributedSystemHealthConfig
getDistributedSystemHealthConfig()
Deprecated.Returns the configuration for determining the health of the distributed system itself.GemFireHealthConfig
getGemFireHealthConfig(java.lang.String hostName)
Deprecated.Returns theGemFireHealthConfig
for GemFire components that reside on a given host.GemFireHealth.Health
getHealth()
Deprecated.Returns an indicator of the overall health of the GemFire components.boolean
isClosed()
Deprecated.Returns whether or not thisGemFireHealth
is closed.void
resetHealth()
Deprecated.Resets the overall health of the GemFire components toGOOD_HEALTH
.void
setDefaultGemFireHealthConfig(GemFireHealthConfig config)
Deprecated.Sets theGemFireHealthConfig
for GemFire components whose configurations are not overridden on a per-host basis.void
setDistributedSystemHealthConfig(DistributedSystemHealthConfig config)
Deprecated.Sets the configuration for determining the health of the distributed system itself.void
setGemFireHealthConfig(java.lang.String hostName, GemFireHealthConfig config)
Deprecated.Sets theGemFireHealthConfig
for GemFire components that reside on a given host.
-
-
-
Field Detail
-
GOOD_HEALTH
@Immutable static final GemFireHealth.Health GOOD_HEALTH
Deprecated.An indicator that the GemFire components are healthy.- See Also:
getHealth()
-
OKAY_HEALTH
@Immutable static final GemFireHealth.Health OKAY_HEALTH
Deprecated.An indicator that one or more GemFire components is slightly unhealthy. The problem may or may not require configuration changes and may not necessarily lead to poorer component health.- See Also:
getHealth()
-
POOR_HEALTH
@Immutable static final GemFireHealth.Health POOR_HEALTH
Deprecated.An indicator that one or more GemFire components is unhealthy. While it may be possible for the components to recover on their own, it is likely that they will have to be restarted.- See Also:
getHealth()
-
-
Method Detail
-
getHealth
GemFireHealth.Health getHealth()
Deprecated.Returns an indicator of the overall health of the GemFire components.- Returns:
- an indicator of the overall health of the GemFire components
- See Also:
GOOD_HEALTH
,OKAY_HEALTH
,POOR_HEALTH
-
resetHealth
void resetHealth()
Deprecated.Resets the overall health of the GemFire components toGOOD_HEALTH
. This operation should be invoked when the operator has determined that warnings about the components's health do not need to be regarded.
-
getDiagnosis
java.lang.String getDiagnosis()
Deprecated.Returns a message that provides a description of the cause of a component's ill health.- Returns:
- a message that provides a description of the cause of a component's ill health
-
getDistributedSystemHealthConfig
DistributedSystemHealthConfig getDistributedSystemHealthConfig()
Deprecated.Returns the configuration for determining the health of the distributed system itself.- Returns:
- the configuration for determining the health of the distributed system itself
-
setDistributedSystemHealthConfig
void setDistributedSystemHealthConfig(DistributedSystemHealthConfig config)
Deprecated.Sets the configuration for determining the health of the distributed system itself.- Parameters:
config
- the configuration for determining the health of the distributed system itself
-
getDefaultGemFireHealthConfig
GemFireHealthConfig getDefaultGemFireHealthConfig()
Deprecated.Returns theGemFireHealthConfig
for GemFire components whose configurations are not overridden on a per-host basis. Note that changes made to the returnedGemFireHealthConfig
will not take effect untilsetDefaultGemFireHealthConfig(org.apache.geode.admin.GemFireHealthConfig)
is invoked.- Returns:
- the
GemFireHealthConfig
for GemFire components whose configurations are not overridden on a per-host basis
-
setDefaultGemFireHealthConfig
void setDefaultGemFireHealthConfig(GemFireHealthConfig config)
Deprecated.Sets theGemFireHealthConfig
for GemFire components whose configurations are not overridden on a per-host basis.- Parameters:
config
- theGemFireHealthConfig
for GemFire components whose configurations are not overridden on a per-host basis- Throws:
java.lang.IllegalArgumentException
- Ifconfig
specifies the config for a host
-
getGemFireHealthConfig
GemFireHealthConfig getGemFireHealthConfig(java.lang.String hostName)
Deprecated.Returns theGemFireHealthConfig
for GemFire components that reside on a given host. This configuration will override the default configuration.- Parameters:
hostName
- The canonical name of the host.- Returns:
- the
GemFireHealthConfig
for GemFire components that reside on a given host
-
setGemFireHealthConfig
void setGemFireHealthConfig(java.lang.String hostName, GemFireHealthConfig config)
Deprecated.Sets theGemFireHealthConfig
for GemFire components that reside on a given host. This configuration will override the default configuration. Note that changes made to the returnedGemFireHealthConfig
will not take effect untilsetDefaultGemFireHealthConfig(org.apache.geode.admin.GemFireHealthConfig)
is invoked.- Parameters:
hostName
- The canonical name of the host.config
- theGemFireHealthConfig
to set- Throws:
java.lang.IllegalArgumentException
- If hosthostName
does not exist or if there are no GemFire components running on that host or ifconfig
does not configure hosthostName
.
-
close
void close()
Deprecated.Closes this health monitor and releases all resources associated with it.
-
-