Package com.j_spaces.core
Interface IJSpace
- All Superinterfaces:
IPojoSpace
- All Known Subinterfaces:
IDirectSpaceProxy,ISpaceProxy
- All Known Implementing Classes:
AbstractDirectSpaceProxy,AbstractSpaceCacheContainer,AbstractSpaceProxy,LocalCacheContainer,LocalViewContainer,SpaceProxyImpl
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Since 16.2 - use GigaSpaceTypeManager#unregisterTypeDescriptor method insteadgetAdmin()Returns the admin object to the remote part of this space.returns itself in case of a direct proxy or the real proxy in case of a local cache or a view.Returns theSpaceURLobject which was used as the argument forSpaceFinder.find(SpaceURL)while looking for the space.getName()Returns the name of this space.intGets the proxy ReadModifiers.Returns the uniqueUuidof this space instance.intGets the proxyUpdateModifiers.getURL()Returns theSpaceURLinstance which was used to initialize the space.booleanChecks whether proxy is connected to embedded or remote space.booleanisFifo()Deprecated.booleanReturns status of Optimistic Lock protocol.booleanReturns an indication : is this space secured.booleanDeprecated.Since 8.0 - This method is reserved for internal usage.voidping()Checks whether the space is alive and accessible.voidsetFifo(boolean enabled) Deprecated.voidsetOptimisticLocking(boolean enabled) Enable/Disable Optimistic Lock protocol.intsetReadModifiers(int readModifiers) Sets the read mode modifiers for proxy level.intsetUpdateModifiers(int newModifiers) Sets the update mode modifiers for proxy level.Methods inherited from interface com.gigaspaces.client.IPojoSpace
clear, clear, count, count, read, read, readIfExists, readIfExists, readMultiple, readMultiple, snapshot, take, take, takeIfExists, takeMultiple, takeMultiple, update, update, updateMultiple, updateMultiple, write, write, writeMultiple, writeMultiple, writeMultiple
-
Field Details
-
NO_WAIT
static final long NO_WAITWait for no time at all. This is used as a timeout value in various read and take calls.- See Also:
-
IPojoSpace.read(java.lang.Object, net.jini.core.transaction.Transaction, long)IPojoSpace.readIfExists(java.lang.Object, net.jini.core.transaction.Transaction, long)IPojoSpace.take(java.lang.Object, net.jini.core.transaction.Transaction, long)IPojoSpace.takeIfExists(java.lang.Object, net.jini.core.transaction.Transaction, long)- Constant Field Values
-
-
Method Details
-
getName
String getName()Returns the name of this space. -
getContainerName
String getContainerName() -
getFinderURL
SpaceURL getFinderURL()Returns theSpaceURLobject which was used as the argument forSpaceFinder.find(SpaceURL)while looking for the space. If a client uses thisSpaceURLwhen it calls toSpaceFinder.find(SpaceURL)it should be able to find that space. Notice: TheSpaceURLreturned when calling getURL() is different since in that case it returns theSpaceURLused to initialize the space (a java:// protocol to start an embedded space).- Returns:
SpaceURLobject which can be used to find the space proxy while callingSpaceFinder.find(SpaceURL)
-
getURL
SpaceURL getURL()Returns theSpaceURLinstance which was used to initialize the space. -
getReferentUuid
Uuid getReferentUuid()Returns the uniqueUuidof this space instance. -
isStartedWithinGSC
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.Returnstrueif this proxy FIFO enabled, otherwisefalse. -
setFifo
Deprecated.Sets FIFO mode for proxy. -
getAdmin
Returns the admin object to the remote part of this space.// get a list of classes and the number of entries of each classIRemoteJSpaceAdminremoteAdmin = (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
Checks whether the space is alive and accessible.- Throws:
RemoteException- when space was unreachable
-
dropClass
Deprecated.Since 16.2 - use GigaSpaceTypeManager#unregisterTypeDescriptor method insteadDrops 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()
-