Class SpaceUtils

java.lang.Object
org.openspaces.core.util.SpaceUtils

public abstract class SpaceUtils extends Object
A set of IJSpace utilites.
Author:
kimchy
  • Constructor Details

    • SpaceUtils

      public SpaceUtils()
  • Method Details

    • getClusterMemberSpace

      public static IJSpace getClusterMemberSpace(IJSpace space) throws org.springframework.dao.DataAccessException
      Returns a proxy space to the specified space name. In case of clustered proxy to a space, will return an acutal cluster member proxy (i.e. not cluster aware). If the proxy does not point to a clusered space, will return the same space.
      Parameters:
      space - The space to get the cluster member space from.
      Returns:
      A cluster member of the specified space
      Throws:
      org.springframework.dao.DataAccessException
    • isRemoteProtocol

      public static boolean isRemoteProtocol(IJSpace space)
      Returns true if the Space uses a remote protocol.
    • spaceUrlProperty

      public static String spaceUrlProperty(String propertyName)
    • isSameSpace

      public static boolean isSameSpace(IJSpace space1, IJSpace space2) throws org.springframework.dao.DataAccessException
      Throws:
      org.springframework.dao.DataAccessException