public interface IJSpace extends IPojoSpace
GigaSpace
instead.GigaSpace
Modifier and Type | Field and Description |
---|---|
static long |
NO_WAIT
Wait for no time at all.
|
Modifier and Type | Method and Description |
---|---|
void |
dropClass(String className)
Drops all Class's entries and all its templates from the space.
|
Object |
getAdmin()
Returns the admin object to the remote part of this space.
|
String |
getCacheTypeName() |
String |
getContainerName() |
IDirectSpaceProxy |
getDirectProxy()
returns itself in case of a direct proxy or the real proxy in case of a local cache or a
view.
|
SpaceURL |
getFinderURL()
Returns the
SpaceURL object which was used as the argument for SpaceFinder.find(SpaceURL) while looking for the space. |
String |
getName()
Returns the name of this space.
|
int |
getReadModifiers()
Gets the proxy ReadModifiers.
|
Uuid |
getReferentUuid()
Returns the unique
Uuid of this space instance. |
int |
getUpdateModifiers()
Gets the proxyUpdateModifiers.
|
SpaceURL |
getURL()
Returns the
SpaceURL instance which was used to initialize the space. |
boolean |
isEmbedded()
Checks whether proxy is connected to embedded or remote space.
|
boolean |
isFifo()
Deprecated.
|
boolean |
isOptimisticLockingEnabled()
Returns status of Optimistic Lock protocol.
|
boolean |
isSecured()
Returns an indication : is this space secured.
|
boolean |
isStartedWithinGSC()
Deprecated.
Since 8.0 - This method is reserved for internal usage.
|
void |
ping()
Checks whether the space is alive and accessible.
|
void |
setFifo(boolean enabled)
Deprecated.
|
void |
setOptimisticLocking(boolean enabled)
Enable/Disable Optimistic Lock protocol.
|
int |
setReadModifiers(int readModifiers)
Sets the read mode modifiers for proxy level.
|
int |
setUpdateModifiers(int newModifiers)
Sets the update mode modifiers for proxy level.
|
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
static final long NO_WAIT
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 ValuesString getName()
String getContainerName()
SpaceURL getFinderURL()
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).SpaceURL
object which can be used to find the space proxy while calling
SpaceFinder.find(SpaceURL)
@Deprecated boolean isStartedWithinGSC() throws RemoteException
RemoteException
boolean isEmbedded()
boolean isSecured()
DefaultSecurityFilter
int getReadModifiers()
int setReadModifiers(int readModifiers)
int getUpdateModifiers()
int setUpdateModifiers(int newModifiers)
boolean isOptimisticLockingEnabled()
void setOptimisticLocking(boolean enabled)
@Deprecated boolean isFifo()
true
if this proxy FIFO enabled, otherwise false
.@Deprecated void setFifo(boolean enabled)
Object getAdmin() throws RemoteException
// 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;
RemoteException
- if a communication error occursIDirectSpaceProxy getDirectProxy()
void ping() throws RemoteException
RemoteException
- when space was unreachablevoid dropClass(String className) throws RemoteException, DropClassException
Message message = new Message("Hello");
Lease lease = space.write(message, null, Lease.FOREVER);
serverAdmin.dropClass( Message.class.getName());
className
- name of class to delete.DropClassException
- Failed to drop desired class.RemoteException
- if a communication error occursIPojoSpace.clear(Object, Transaction)
String getCacheTypeName()
Copyright © GigaSpaces.