Class ClusterAvailableConfiguration.AbstractCloudPlatformAvailableCondition
java.lang.Object
org.springframework.geode.config.annotation.ClusterAwareConfiguration.ClusterAwareCondition
org.springframework.geode.config.annotation.ClusterAvailableConfiguration.AbstractCloudPlatformAvailableCondition
- All Implemented Interfaces:
org.springframework.context.annotation.Condition
- Direct Known Subclasses:
ClusterAvailableConfiguration.CloudFoundryClusterAvailableCondition
,ClusterAvailableConfiguration.KubernetesClusterAvailableCondition
- Enclosing class:
- ClusterAvailableConfiguration
protected abstract static class ClusterAvailableConfiguration.AbstractCloudPlatformAvailableCondition
extends ClusterAwareConfiguration.ClusterAwareCondition
-
Field Summary
Fields inherited from class org.springframework.geode.config.annotation.ClusterAwareConfiguration.ClusterAwareCondition
RUNTIME_ENVIRONMENT_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureTopology
(org.springframework.core.env.Environment environment, org.springframework.data.gemfire.support.ConnectionEndpointList connectionEndpoints, int connectionCount) protected abstract String
protected String
Returns aString
containing a description of the runtime environment.protected abstract boolean
isCloudPlatformActive
(org.springframework.core.env.Environment environment) protected boolean
protected boolean
isMatchingStrictOrLoggable
(boolean match, boolean strictMatch) protected void
logConnectedRuntimeEnvironment
(org.slf4j.Logger logger) protected void
logUnconnectedRuntimeEnvironment
(org.slf4j.Logger logger) final boolean
matches
(org.springframework.context.annotation.ConditionContext conditionContext, org.springframework.core.type.AnnotatedTypeMetadata typeMetadata) Methods inherited from class org.springframework.geode.config.annotation.ClusterAwareConfiguration.ClusterAwareCondition
close, connect, countConnections, doCachedMatch, doMatch, failOnStrictMatchAndNoMatches, getConfiguredConnectionEndpoints, getConnectionEndpoints, getDefaultConnectionEndpoints, getLogger, getPooledConnectionEndpoints, getPoolsFromApacheGeode, isAvailable, isConnected, isConnected, isNotConnected, isStrictMatch, isStrictMatchAndNoMatches, logConnectedRuntimeEnvironment, logRuntimeEnvironment, newSocket, newSocket, registerApplicationListener, reset, set, wasClusterAvailabilityEvaluated
-
Constructor Details
-
AbstractCloudPlatformAvailableCondition
protected AbstractCloudPlatformAvailableCondition()
-
-
Method Details
-
getCloudPlatformName
-
getRuntimeEnvironmentName
Description copied from class:ClusterAwareConfiguration.ClusterAwareCondition
Returns aString
containing a description of the runtime environment.- Overrides:
getRuntimeEnvironmentName
in classClusterAwareConfiguration.ClusterAwareCondition
- Returns:
- a
String
containing a description of the runtime environment.
-
isCloudPlatformActive
protected abstract boolean isCloudPlatformActive(@NonNull org.springframework.core.env.Environment environment) -
isInfoLoggingEnabled
protected boolean isInfoLoggingEnabled() -
isMatchingStrictOrLoggable
protected boolean isMatchingStrictOrLoggable(boolean match, boolean strictMatch) -
matches
public final boolean matches(@NonNull org.springframework.context.annotation.ConditionContext conditionContext, @NonNull org.springframework.core.type.AnnotatedTypeMetadata typeMetadata) Description copied from class:ClusterAwareConfiguration.ClusterAwareCondition
- Specified by:
matches
in interfaceorg.springframework.context.annotation.Condition
- Overrides:
matches
in classClusterAwareConfiguration.ClusterAwareCondition
-
logConnectedRuntimeEnvironment
protected void logConnectedRuntimeEnvironment(@NonNull org.slf4j.Logger logger) - Overrides:
logConnectedRuntimeEnvironment
in classClusterAwareConfiguration.ClusterAwareCondition
-
logUnconnectedRuntimeEnvironment
protected void logUnconnectedRuntimeEnvironment(@NonNull org.slf4j.Logger logger) - Overrides:
logUnconnectedRuntimeEnvironment
in classClusterAwareConfiguration.ClusterAwareCondition
-
configureTopology
protected void configureTopology(@NonNull org.springframework.core.env.Environment environment, @NonNull org.springframework.data.gemfire.support.ConnectionEndpointList connectionEndpoints, int connectionCount) - Overrides:
configureTopology
in classClusterAwareConfiguration.ClusterAwareCondition
-