Class DistributedSystemUtils
java.lang.Object
org.springframework.data.gemfire.util.SpringExtensions
org.springframework.data.gemfire.util.DistributedSystemUtils
- Direct Known Subclasses:
CacheUtils
DistributedSystemUtils is an abstract utility class for working with the GemFire DistributedSystem.
- Since:
- 1.7.0
- See Also:
-
GemFireCache
DistributedSystem
InternalDistributedSystem
DistributionLocator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.util.SpringExtensions
SpringExtensions.OrderedBeanWrapper<T>, SpringExtensions.ValueReturningThrowableOperation<T>, SpringExtensions.VoidReturningThrowableOperation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Properties
configureDurableClient
(Properties gemfireProperties, String durableClientId, Integer durableClientTimeout) static <T extends org.apache.geode.distributed.DistributedSystem>
Tstatic <T extends org.apache.geode.distributed.DistributedSystem>
TgetDistributedSystem
(org.apache.geode.cache.GemFireCache gemfireCache) static <T extends org.apache.geode.distributed.Locator>
Tstatic boolean
isConnected
(org.apache.geode.distributed.DistributedSystem distributedSystem) static boolean
isNotConnected
(org.apache.geode.distributed.DistributedSystem distributedSystem) Methods inherited from class org.springframework.data.gemfire.util.SpringExtensions
addDependsOn, areNotNull, defaultIfEmpty, defaultIfEmpty, defaultIfNull, defaultIfNull, dereferenceBean, equalsIgnoreNull, getBeansOfTypeOrdered, getBeansOfTypeOrdered, getOrder, getOrderedStreamOfBeansByType, getPropertyValue, isMatchingBean, nullOrEquals, nullSafeEquals, nullSafeName, nullSafeSimpleName, nullSafeType, nullSafeType, requireObject, requireObject, safeDoOperation, safeDoOperation, safeGetValue, safeGetValue, safeGetValue, safeGetValue, safeRunOperation, safeRunOperation, setPropertyReference, setPropertyValue
-
Field Details
-
DEFAULT_CACHE_SERVER_PORT
public static final int DEFAULT_CACHE_SERVER_PORT- See Also:
-
DEFAULT_LOCATOR_PORT
public static final int DEFAULT_LOCATOR_PORT- See Also:
-
DURABLE_CLIENT_ID_PROPERTY_NAME
-
DURABLE_CLIENT_TIMEOUT_PROPERTY_NAME
-
GEMFIRE_PREFIX
- See Also:
-
NAME_PROPERTY_NAME
-
-
Constructor Details
-
DistributedSystemUtils
public DistributedSystemUtils()
-
-
Method Details
-
configureDurableClient
@NonNull public static Properties configureDurableClient(@NonNull Properties gemfireProperties, @Nullable String durableClientId, @Nullable Integer durableClientTimeout) -
isConnected
public static boolean isConnected(@Nullable org.apache.geode.distributed.DistributedSystem distributedSystem) -
isNotConnected
public static boolean isNotConnected(@Nullable org.apache.geode.distributed.DistributedSystem distributedSystem) -
getDistributedSystem
@Nullable public static <T extends org.apache.geode.distributed.DistributedSystem> T getDistributedSystem() -
getDistributedSystem
@Nullable public static <T extends org.apache.geode.distributed.DistributedSystem> T getDistributedSystem(org.apache.geode.cache.GemFireCache gemfireCache) -
getLocator
@Nullable public static <T extends org.apache.geode.distributed.Locator> T getLocator()
-