GigaSpaces XAP 8.0 API

org.openspaces.core.util
Class SpaceUtils

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

public abstract class SpaceUtils
extends Object

A set of IJSpace utilites.

Author:
kimchy

Constructor Summary
SpaceUtils()
           
 
Method Summary
static IJSpace getClusterMemberSpace(IJSpace space)
          Returns a proxy space to the specified space name.
static boolean isRemoteProtocol(IJSpace space)
          Returns true if the Space uses a remote protocol.
static boolean isRemoteProtocol(SpaceURL spaceUrl)
          Returns true if the url points at a remote protocol.
static boolean isRemoteProtocol(String spaceUrl)
          Returns true if the url points at a remote protocol.
static boolean isSameSpace(IJSpace space1, IJSpace space2)
           
static String spaceUrlProperty(String propertyName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceUtils

public SpaceUtils()
Method Detail

getClusterMemberSpace

public static IJSpace getClusterMemberSpace(IJSpace space)
                                     throws 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:
DataAccessException

isRemoteProtocol

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


isRemoteProtocol

public static boolean isRemoteProtocol(SpaceURL spaceUrl)
Returns true if the url points at a remote protocol. A remote protocol is either a jini or a rmi protocol.


isRemoteProtocol

public static boolean isRemoteProtocol(String spaceUrl)
Returns true if the url points at a remote protocol.


spaceUrlProperty

public static String spaceUrlProperty(String propertyName)

isSameSpace

public static boolean isSameSpace(IJSpace space1,
                                  IJSpace space2)
                           throws DataAccessException
Throws:
DataAccessException

GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.