|
GigaSpaces XAP 8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProxyAdmin
This interface contains all the administrative methods that the proxy provides to control the proxy.
Usage:
IPojoSpace
space = (IPojoSpace)SpaceFinder.find(spaceUrl);
IProxyAdmin proxyAdmin = space.getProxyAdmin()
;
The code examples on each method assumes the above usage.
IPojoSpace.getProxyAdmin()
,
IRemoteJSpaceAdmin
Method Summary | |
---|---|
SpaceURL |
getFinderURL()
Returns the SpaceURL object which was used as the argument for SpaceFinder.find(SpaceURL)
while looking for the space. |
int |
getReadModifiers()
Gets the proxy ReadModifiers. |
int |
getUpdateModifiers()
Gets the proxyUpdateModifiers. |
boolean |
isFifo()
Deprecated. Use getReadModifiers() with ReadModifiers.FIFO instead. |
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 |
setDefaultTransaction(Transaction transaction)
Deprecated. Since 8.0 - Use GigaSpace transactions instead. |
void |
setFifo(boolean enabled)
Deprecated. Use setReadModifiers() with ReadModifiers.FIFO instead. |
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. |
void |
setSecurityContext(com.j_spaces.core.SecurityContext context)
Deprecated. since 7.0.1 |
int |
setUpdateModifiers(int newModifiers)
Sets the update mode modifiers for proxy level. |
Method Detail |
---|
@Deprecated void setSecurityContext(com.j_spaces.core.SecurityContext context) throws SecurityException, RemoteException
SecurityContext
which holds the username and password for authentication.
This method is deprecated as of 7.0.1, and security credentials should be passed using
the GigaSpace configurer constructs.
context
- the SecurityContext to be used for authentication against a secured space.
SecurityException
- if authentication failed for any reason.
RemoteException
- if a communication error occursboolean isSecured()
DefaultSecurityFilter
@Deprecated boolean isStartedWithinGSC() throws RemoteException
RemoteException
void setOptimisticLocking(boolean enabled)
enabled
- true
enable Optimistic Lock protocol,
false
disable.SpaceVersion
boolean isOptimisticLockingEnabled()
true
Optimistic Lock enabled, otherwise false
.SpaceVersion
@Deprecated void setFifo(boolean enabled)
enabled
- if true
this proxy FIFO enabled, otherwise false
.SpaceClass.fifoSupport()
@Deprecated boolean isFifo()
true
if this proxy FIFO enabled, otherwise false
.
true
if this proxy FIFO enabled, otherwise false
.SpaceClass.fifoSupport()
@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
@Deprecated boolean isNOWriteLeaseMode()
UpdateModifiers.NO_RETURN_VALUE
instead.
true
if do not return Lease object after write, otherwise false
.setNOWriteLeaseMode(boolean)
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)
int setUpdateModifiers(int newModifiers)
newModifiers
- new values for modifiers
Values are defined in
UpdateModifiers
.
old value
of modifiers.IPojoSpace.update(Object, Transaction, long, long, int)
,
IPojoSpace.update(Object, Transaction, long, long, int)
int getUpdateModifiers()
UpdateModifiers
class.
UPDATE_ONLY
.
value
of modifiers.IPojoSpace.update(Object, Transaction, long, long, int)
,
IPojoSpace.update(Object, Transaction, long, long, int)
int setReadModifiers(int readModifiers)
ReadModifiers.REPEATABLE_READ
readModifiers
- new values for modifiers
Values are defined in ReadModifiers
.
old value
of modifiers.ReadModifiers
,
IPojoSpace.read(Object, Transaction, long, int)
,
IJSpace.readIfExists(net.jini.core.entry.Entry, Transaction, long, int)
int getReadModifiers()
ReadModifiers
.
value
of modifiers.IPojoSpace.read(Object, Transaction, long, int)
,
IJSpace.readIfExists(net.jini.core.entry.Entry, Transaction, long, int)
@Deprecated void setDefaultTransaction(Transaction transaction)
GigaSpace
transactions instead.
null
otherwise the TransactionException
will be thrown on the next space operation call.
proxyAdmin.setDefaultTransaction( txn);
space.write( entry1, null, Lease.FOREVER );
space.write( entry2, null, Lease.FOREVER );
txn.commit();
proxyAdmin.setDefaultTransaction( null);
Note: This function is unsupported when using it in conjunction with local cache.
transaction
- the default transaction.
|
GigaSpaces XAP 8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |