|
GigaSpaces XAP 7.1 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()
Checks the write mode. |
boolean |
isOptimisticLockingEnabled()
Returns status of Optimistic Lock protocol. |
boolean |
isSecured()
Returns an indication : is this space secured. |
boolean |
isStartedWithinGSC()
Returns true if the space started within a GSC. |
void |
setDefaultTransaction(net.jini.core.transaction.Transaction transaction)
Sets default transaction to use in case that null parameter is used as transaction parameter with JavaSpace methods. |
void |
setFifo(boolean enabled)
Deprecated. Use setReadModifiers() with ReadModifiers.FIFO instead. |
void |
setNOWriteLeaseMode(boolean noWriteLeaseMode)
If set to true, Lease object will not return from
write/writeMultiple operations. |
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
boolean isStartedWithinGSC()
throws RemoteException
RemoteExceptionvoid setOptimisticLocking(boolean enabled)
enabled - true enable Optimistic Lock protocol,
false disable.SpaceVersion,
IMetaDataEntryboolean isOptimisticLockingEnabled()
true Optimistic Lock enabled, otherwise false.SpaceVersion,
IMetaDataEntry@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()void setNOWriteLeaseMode(boolean noWriteLeaseMode)
true, Lease object will not return from
write/writeMultiple operations.
SpaceFinder:
SpaceFinder.find("jini://localhost/myContainer/mySpace?noWriteLease")
noWriteLeaseMode - write mode.SpaceURLboolean isNOWriteLeaseMode()
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)void setDefaultTransaction(net.jini.core.transaction.Transaction transaction)
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 7.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||