com.gigaspaces.cluster.activeelection
Class InactiveSpaceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.rmi.RemoteException
                  extended by com.gigaspaces.cluster.activeelection.InactiveSpaceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ElectionInProcessException

public class InactiveSpaceException
extends RemoteException

This exception thrown when attempting to access an inactive space which runs as a backup of primary space. As long as the the primary space is alive, clients cannot access the backup space directly to performance space operation. When using clustered proxy, the operation will be transparently routed to the active primary space. The getPrimarySpaceName() method return the primary space name the user should access.

Note: Prior to GigaSpaces 5.2 com.j_spaces.core.SpaceStandbyException was used to indicate client access to space running in backup mode.

See Also:
SpaceMode, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
InactiveSpaceException(String inActiveSpaceMemberName, String primarySpaceMemberName)
          Constructor.
 
Method Summary
 String getInActiveSpaceName()
           
 String getPrimarySpaceName()
           
 
Methods inherited from class java.rmi.RemoteException
getCause, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InactiveSpaceException

public InactiveSpaceException(String inActiveSpaceMemberName,
                              String primarySpaceMemberName)
Constructor.

Parameters:
inActiveSpaceMemberName - the backup-only space name.
primarySpaceMemberName - the alive primary space of this backup.
Method Detail

getPrimarySpaceName

public String getPrimarySpaceName()
Returns:
the primary space of this backup or null if this space undergoing election process.

getInActiveSpaceName

public String getInActiveSpaceName()
Returns:
the inactive space name.