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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureTopology(org.springframework.core.env.Environment environment, org.springframework.data.gemfire.support.ConnectionEndpointList connectionEndpoints, int connectionCount) protected abstract Stringprotected StringReturns aStringcontaining a description of the runtime environment.protected abstract booleanisCloudPlatformActive(org.springframework.core.env.Environment environment) protected booleanprotected booleanisMatchingStrictOrLoggable(boolean match, boolean strictMatch) protected voidlogConnectedRuntimeEnvironment(org.slf4j.Logger logger) protected voidlogUnconnectedRuntimeEnvironment(org.slf4j.Logger logger) final booleanmatches(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.ClusterAwareConditionReturns aStringcontaining a description of the runtime environment.- Overrides:
getRuntimeEnvironmentNamein classClusterAwareConfiguration.ClusterAwareCondition- Returns:
- a
Stringcontaining 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) - Specified by:
matchesin interfaceorg.springframework.context.annotation.Condition- Overrides:
matchesin classClusterAwareConfiguration.ClusterAwareCondition
-
logConnectedRuntimeEnvironment
protected void logConnectedRuntimeEnvironment(@NonNull org.slf4j.Logger logger) - Overrides:
logConnectedRuntimeEnvironmentin classClusterAwareConfiguration.ClusterAwareCondition
-
logUnconnectedRuntimeEnvironment
protected void logUnconnectedRuntimeEnvironment(@NonNull org.slf4j.Logger logger) - Overrides:
logUnconnectedRuntimeEnvironmentin classClusterAwareConfiguration.ClusterAwareCondition
-
configureTopology
protected void configureTopology(@NonNull org.springframework.core.env.Environment environment, @NonNull org.springframework.data.gemfire.support.ConnectionEndpointList connectionEndpoints, int connectionCount) - Overrides:
configureTopologyin classClusterAwareConfiguration.ClusterAwareCondition
-