|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.j_spaces.jca.JSInteraction
com.j_spaces.jca.GSInteraction
public class GSInteraction
JCA Interaction Enhanced Class - contain extended JavaSpaces methods
| Field Summary |
|---|
| Fields inherited from class com.j_spaces.jca.JSInteraction |
|---|
CLEAN_OPERATION, CLEAR_OPERATION, COUNT_OPERATION, EXCEPTIONTYPE_REMOTEEXCEPTION, EXCEPTIONTYPE_TX, INSTANCE_COUNT_OPERATION, NOTIFY_OPERATION, READ_OPERATION, SNAPSHOT_OPERATION, TAKE_OPERATION, WRITE_OPERATION |
| Method Summary | |
|---|---|
IMap |
getCache()
Returns the interface to IMap. |
int |
instanceCount(String clazz)
Returns class instance count. |
void |
ping()
Checks whether the space is alive and accessible. |
Object[] |
readMultiple(Object template,
boolean isTx,
int maxEntries)
Reads all the pojos matching the specified template from this space. |
Object[] |
readMultiple(Object template,
int maxEntries)
Reads all the pojos matching the specified template from this space. |
void |
setSecurityContext(SecurityContext sc)
Set Security Context. |
Object[] |
takeMultiple(Object template,
boolean isTx,
int maxEntries)
Takes all the pojos matching the specified template from this space. |
Object[] |
takeMultiple(Object template,
int maxEntries)
Takes all the pojos matching the specified template from this space. |
LeaseContext |
update(Object pojo,
boolean isTx,
long timeout)
Deprecated. Use instead #update(Entry, Entry, long, long)
(@link #update(Entry, long, long) } |
Object |
update(Object updatedEntry,
boolean isTx,
long lease,
long timeout)
Updates the first entry matching the specified template, if found and there is no transaction conflict. |
LeaseContext |
update(Object pojo,
long timeout)
Deprecated. Use instead #update(Entry, Entry, long, long)
(@link #update(Entry, long, long) } |
Object |
update(Object updatedEntry,
long lease,
long timeout)
Updates the first pojo matching the specified template, if found and there is no transaction conflict. |
Object |
update(Object template,
Object newObject,
boolean isTx,
long lease,
long timeout)
Updates the first pojo matching the specified template, if found and there is no transaction conflict. |
Object |
update(Object template,
Object newPojo,
long lease,
long timeout)
Updates the first pojo matching the specified template, if found and there is no transaction conflict. |
Object[] |
updateMultiple(Object[] pojos,
boolean isTx,
long[] leases)
Performs batch update for the specified pojos |
Object[] |
updateMultiple(Object[] pojos,
long[] leases)
Performs batch update for the specified pojos |
LeaseContext[] |
writeMultiple(Object[] pojos,
boolean isTx,
long timeout)
Writes the specified pojos to this space. |
LeaseContext[] |
writeMultiple(Object[] pojos,
long timeout)
Writes the specified pojos to this space. |
| Methods inherited from class com.j_spaces.jca.JSInteraction |
|---|
clean, clear, clear, clearWarnings, close, count, count, execute, execute, getConnection, getSpaceAdmin, getSpaceURL, getWarnings, isSecured, notify, read, read, readIfExists, readIfExists, snapshot, take, take, takeIfExists, takeIfExists, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Object[] readMultiple(Object template,
int maxEntries)
throws ResourceException
template - the template to use for matching.maxEntries - a limit on the number of pojos to be read. Use
Integer.MAX_VALUE for the maximum value.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Object[] readMultiple(Object template,
boolean isTx,
int maxEntries)
throws ResourceException
template - the template to use for matching.isTx - true indicates method to be done under transaction. false - without transcationmaxEntries - a limit on the number of pojos to be read. Use
Integer.MAX_VALUE for the maximum value.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public LeaseContext[] writeMultiple(Object[] pojos,
long timeout)
throws ResourceException
pojos - the pojos to write.timeout - the requested lease time, in milliseconds
TransactionException
java.rmi.ResourceException
ResourceException
public LeaseContext[] writeMultiple(Object[] pojos,
boolean isTx,
long timeout)
throws ResourceException
pojos - the pojos to write.isTx - true indicates method to be done under transaction. false - without transactiontimeout - the requested lease time, in milliseconds
TransactionException
java.rmi.ResourceException
ResourceException
public Object[] takeMultiple(Object template,
int maxEntries)
throws ResourceException
template - the template to use for matching.maxEntries - a limit on the number of pojos to be taken. Use
Integer.MAX_VALUE for the maximum value.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Object[] takeMultiple(Object template,
boolean isTx,
int maxEntries)
throws ResourceException
template - the template to use for matching.isTx - true indicates method to be done under transaction. false - without transcationmaxEntries - a limit on the number of pojos to be taken. Use
Integer.MAX_VALUE for the maximum value.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Object update(Object template,
Object newPojo,
long lease,
long timeout)
throws ResourceException
template - the template to use for matching.newEntry - the new value of the pojo.lease - the lease time of the new pojotimeout - the timeout to wait for available pojo
null is returned.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Object update(Object template,
Object newObject,
boolean isTx,
long lease,
long timeout)
throws ResourceException
template - the template to use for matching.newEntry - the new value of the pojo.isTx - true indicates method to be done under transaction. false - without transcationlease - the lease time of the new pojotimeout - the timeout to wait for available pojo
null is returned.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public LeaseContext update(Object pojo,
long timeout)
throws ResourceException
#update(Entry, Entry, long, long)
(@link #update(Entry, long, long) }
Object - to updatetimeout - - The lease timeout of the new pojo
null is returned.
TransactionException
UnusableEntryException
ResourceException
public LeaseContext update(Object pojo,
boolean isTx,
long timeout)
throws ResourceException
#update(Entry, Entry, long, long)
(@link #update(Entry, long, long) }
pojo - to updateisTx - true indicates method to be done under transaction. false - without transcationtimeout - - The lease timeout of the new pojo
null is returned.
TransactionException
UnusableEntryException
ResourceException
public Object update(Object updatedEntry,
long lease,
long timeout)
throws ResourceException
updatedEntry - the updated pojo.lease - the lease time of the new pojotimeout - the timeout to wait for available pojo
null is returned.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Object update(Object updatedEntry,
boolean isTx,
long lease,
long timeout)
throws ResourceException
updatedEntry - the updated pojo.lease - the lease time of the new pojotimeout - the timeout to wait for available pojo
null is returned.
TransactionException
UnusableEntryException
java.rmi.ResourceException
ResourceException
public Object[] updateMultiple(Object[] pojos,
long[] leases)
throws ResourceException
pojos - array of updated pojosleases - array of new leases for updated pojos
ResourceException
public Object[] updateMultiple(Object[] pojos,
boolean isTx,
long[] leases)
throws ResourceException
pojos - array of updated pojosisTx - true indicates method to be done under transaction. false - without transcationleases - array of new leases for updated pojos
ResourceException
public int instanceCount(String clazz)
throws ResourceException
clazz - Class Name
ResourceException
public void ping()
throws ResourceException
ResourceException
public IMap getCache()
throws ResourceException
ResourceException
public void setSecurityContext(SecurityContext sc)
throws ResourceException
sc - The Security Context object.
ResourceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||