Interface IJSpace

All Superinterfaces:
IPojoSpace
All Known Subinterfaces:
IDirectSpaceProxy, ISpaceProxy
All Known Implementing Classes:
AbstractDirectSpaceProxy, AbstractSpaceCacheContainer, AbstractSpaceProxy, LocalCacheContainer, LocalViewContainer, SpaceProxyImpl

public interface IJSpace extends IPojoSpace
Notice: Since 7.0 this API is internal and subject to changes in future versions - Use GigaSpace instead.
Since:
1.0
Version:
5.1
Author:
Igor Goldenberg
See Also:
  • Field Details

  • Method Details

    • getName

      String getName()
      Returns the name of this space.
    • getContainerName

      String getContainerName()
    • getFinderURL

      SpaceURL getFinderURL()
      Returns the SpaceURL object which was used as the argument for SpaceFinder.find(SpaceURL) while looking for the space. If a client uses this SpaceURL when it calls to SpaceFinder.find(SpaceURL) it should be able to find that space. Notice: The SpaceURL returned when calling getURL() is different since in that case it returns the SpaceURL used to initialize the space (a java:// protocol to start an embedded space).
      Returns:
      SpaceURL object which can be used to find the space proxy while calling SpaceFinder.find(SpaceURL)
    • getURL

      SpaceURL getURL()
      Returns the SpaceURL instance which was used to initialize the space.
    • getReferentUuid

      Uuid getReferentUuid()
      Returns the unique Uuid of this space instance.
    • isStartedWithinGSC

      @Deprecated boolean isStartedWithinGSC() throws RemoteException
      Deprecated.
      Since 8.0 - This method is reserved for internal usage.
      Returns true if the space started within a GSC.
      Throws:
      RemoteException
    • isEmbedded

      boolean isEmbedded()
      Checks whether proxy is connected to embedded or remote space.
    • isSecured

      boolean isSecured()
      Returns an indication : is this space secured. If for this space defined Security Filter, the space will be secured.
      Returns:
      boolean true if this space secured, otherwise false.
    • getReadModifiers

      int getReadModifiers()
      Gets the proxy ReadModifiers.
    • setReadModifiers

      int setReadModifiers(int readModifiers)
      Sets the read mode modifiers for proxy level.
    • getUpdateModifiers

      int getUpdateModifiers()
      Gets the proxyUpdateModifiers.
    • setUpdateModifiers

      int setUpdateModifiers(int newModifiers)
      Sets the update mode modifiers for proxy level.
    • isOptimisticLockingEnabled

      boolean isOptimisticLockingEnabled()
      Returns status of Optimistic Lock protocol.
    • setOptimisticLocking

      void setOptimisticLocking(boolean enabled)
      Enable/Disable Optimistic Lock protocol.
    • isFifo

      @Deprecated boolean isFifo()
      Deprecated.
      Returns true if this proxy FIFO enabled, otherwise false.
    • setFifo

      @Deprecated void setFifo(boolean enabled)
      Deprecated.
      Sets FIFO mode for proxy.
    • getAdmin

      Object getAdmin() throws RemoteException
      Returns the admin object to the remote part of this space.
      
       // get a list of classes and the number of entries of each class
       IRemoteJSpaceAdmin remoteAdmin =
       (IRemoteJSpaceAdmin)serverAdmin.getAdmin();
       Object classList[] = remoteAdmin.getRuntimeInfo().m_ClassNames.toArray();
       List numOFEntries = remoteAdmin.getRuntimeInfo().m_NumOFEntries;
       
      Returns:
      the remoteAdmin object to the remote part of this space.
      Throws:
      RemoteException - if a communication error occurs
    • getDirectProxy

      IDirectSpaceProxy getDirectProxy()
      returns itself in case of a direct proxy or the real proxy in case of a local cache or a view.
      Returns:
      IDirectSpaceProxy
    • ping

      void ping() throws RemoteException
      Checks whether the space is alive and accessible.
      Throws:
      RemoteException - when space was unreachable
    • dropClass

      @Deprecated void dropClass(String className) throws RemoteException, DropClassException
      Deprecated.
      Since 16.2 - use GigaSpaceTypeManager#unregisterTypeDescriptor method instead
      Drops all Class's entries and all its templates from this Space instance. Calling this method will remove all internal metadata related to this class stored in the Space. When using persistent spaced the relevant RDBMS table will be dropped. It is the caller responsibility to ensure that no entries from this class are written to the space while this method is called. This is not a clustered operation. If you want only to delete the entries, use clear operation.
      Parameters:
      className - name of class to delete.
      Throws:
      DropClassException - Failed to drop desired class.
      RemoteException - if a communication error occurs
      See Also:
    • getCacheTypeName

      String getCacheTypeName()