|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJSpace
Notice: Since 7.0 this API is internal and subject to changes in future versions - Use GigaSpace
instead.
GigaSpace
Field Summary | |
---|---|
static long |
NO_WAIT
Wait for no time at all. |
Method Summary | |
---|---|
void |
clean()
Deprecated. Since 8.0.2. The processing unit instance that contain this space instance should be restarted instead, or if the entire space was meant to be cleaned, the entire processing unit should be undeployed and redeployed. Using this method is strongly not recommended because it will not invoke any space mode change events registered components and it is not a cluster wide operation. |
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. |
IJSpaceContainer |
getContainer()
Deprecated. Since 8.0 - This method is reserved for internal usage. |
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. |
com.j_spaces.core.IStubHandler |
getStubHandler()
Deprecated. Since 8.0 - This method is reserved for internal usage. |
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 |
isNOWriteLeaseMode()
Deprecated. Since 8.0 - Use UpdateModifiers.NO_RETURN_VALUE instead. |
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 |
setNOWriteLeaseMode(boolean noWriteLeaseMode)
Deprecated. Since 8.0 - Use UpdateModifiers.NO_RETURN_VALUE instead. |
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. |
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 Detail |
---|
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 ValuesMethod Detail |
---|
String getName()
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)
SpaceURL getURL()
SpaceURL
instance which was used to initialize the space.
Uuid getReferentUuid()
Uuid
of this space instance.
@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)
@Deprecated boolean isNOWriteLeaseMode()
UpdateModifiers.NO_RETURN_VALUE
instead.
@Deprecated void setNOWriteLeaseMode(boolean noWriteLeaseMode)
UpdateModifiers.NO_RETURN_VALUE
instead.
true
, Lease
object will not return from
write
/writeMultiple
operations.
SpaceFinder
:
SpaceFinder.find("jini://localhost/myContainer/mySpace?noWriteLease")
noWriteLeaseMode
- write mode.SpaceURL
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 occurs@Deprecated IJSpaceContainer getContainer()
@Deprecated com.j_spaces.core.IStubHandler getStubHandler()
void ping() throws RemoteException
RemoteException
- when space was unreachable@Deprecated void clean() throws RemoteException
serverAdmin.clean();
RemoteException
- if a communication error occursvoid 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)
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |