Class DistributedSystemUtils

java.lang.Object
org.springframework.data.gemfire.util.SpringExtensions
org.springframework.data.gemfire.util.DistributedSystemUtils
Direct Known Subclasses:
CacheUtils

public abstract class DistributedSystemUtils extends SpringExtensions
DistributedSystemUtils is an abstract utility class for working with the GemFire DistributedSystem.
Since:
1.7.0
See Also:
  • GemFireCache
  • DistributedSystem
  • InternalDistributedSystem
  • DistributionLocator
  • 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

      public static final String DURABLE_CLIENT_ID_PROPERTY_NAME
    • DURABLE_CLIENT_TIMEOUT_PROPERTY_NAME

      public static final String DURABLE_CLIENT_TIMEOUT_PROPERTY_NAME
    • GEMFIRE_PREFIX

      public static final String GEMFIRE_PREFIX
      See Also:
    • NAME_PROPERTY_NAME

      public static final String 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()