Package org.openspaces.core.util
Class SpaceUtils
java.lang.Object
org.openspaces.core.util.SpaceUtils
A set of
IJSpace utilites.- Author:
- kimchy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IJSpacegetClusterMemberSpace(IJSpace space) Returns a proxy space to the specified space name.static booleanisRemoteProtocol(IJSpace space) Returnstrueif the Space uses a remote protocol.static booleanisSameSpace(IJSpace space1, IJSpace space2) static StringspaceUrlProperty(String propertyName)
-
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
Returnstrueif the Space uses a remote protocol. -
spaceUrlProperty
-
isSameSpace
public static boolean isSameSpace(IJSpace space1, IJSpace space2) throws org.springframework.dao.DataAccessException - Throws:
org.springframework.dao.DataAccessException
-